ERF
Energy Research and Forecasting: An Atmospheric Modeling Code
ERF_ActuatorSampling.cpp File Reference
#include "ERF_ActuatorSampling.H"
#include <algorithm>
#include <cmath>
#include <cstddef>
#include <array>
#include <limits>
#include <string>
#include <vector>
#include <AMReX.H>
#include <AMReX_BLProfiler.H>
#include <AMReX_Algorithm.H>
#include <AMReX_Array4.H>
#include <AMReX_Gpu.H>
#include <AMReX_MFIter.H>
#include <AMReX_ParallelDescriptor.H>
#include <AMReX_Reduce.H>
#include "ERF_ActuatorGeometry.H"
Include dependency graph for ERF_ActuatorSampling.cpp:

Classes

struct  erf_actuator::erf_detail_ActuatorSampling::ColumnWork
 

Namespaces

 erf_actuator
 
 erf_actuator::erf_detail_ActuatorSampling
 

Functions

void erf_actuator::erf_detail_ActuatorSampling::check_layout (const MultiFab &ref, const MultiFab *other, int ngrow, const std::string &what)
 
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE Real erf_actuator::erf_detail_ActuatorSampling::column_value (Array4< Real const > const &f, int dir, int i, int j, int klo, int khi, Real z, Array4< Real const > const &znd, bool has_znd, Real zlo, Real dz)
 
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE Real erf_actuator::erf_detail_ActuatorSampling::sample_component (int dir, Array4< Real const > const &f, Real x, Real y, Real z, const GpuArray< Real, AMREX_SPACEDIM > &plo, const GpuArray< Real, AMREX_SPACEDIM > &dxi, int klo, int khi, Array4< Real const > const &znd, bool has_znd, Real dz)
 
void erf_actuator::check_same_points_everywhere (int npts, const char *who)
 Abort, naming who, unless every rank passes the same number of points (one collective). More...
 
std::vector< Real > erf_actuator::wrap_periodic (const std::vector< Real > &pos, const Geometry &geom)
 
void erf_actuator::sample_velocity_local (const MultiFab &U, const MultiFab &V, const MultiFab &W, const MultiFab *z_phys_nd, const Geometry &geom, const std::vector< Real > &wpos, std::vector< Real > &vel, std::vector< int > &cnt, ActuatorDeviceBuffers *buffers)
 
void erf_actuator::sample_velocity (const MultiFab &U, const MultiFab &V, const MultiFab &W, const MultiFab *z_phys_nd, const Geometry &geom, const std::vector< Real > &pos, std::vector< Real > &vel)
 
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE Real erf_actuator::erf_detail_ActuatorSampling::centre_height (int i, int j, int k, Array4< Real const > const &znd, bool has_znd, Real zlo, Real dz)
 
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE Real erf_actuator::erf_detail_ActuatorSampling::centre_column_value (Array4< Real const > const &f, int comp, int i, int j, int klo, int khi, Real z, Array4< Real const > const &znd, bool has_znd, Real zlo, Real dz)
 
void erf_actuator::sample_cell_scalar (const MultiFab &mf, int comp, const MultiFab *z_phys_nd, const Geometry &geom, const std::vector< Real > &pos, std::vector< Real > &val)
 
void erf_actuator::terrain_heights (const MultiFab *z_phys_nd, const Geometry &geom, const std::vector< Real > &pos, std::vector< Real > &h)
 
void erf_actuator::erf_detail_ActuatorSampling::node_level_table (const MultiFab &z_phys_nd, const Geometry &geom, ZBounds &b)
 
ZBounds erf_actuator::mesh_z_bounds (const MultiFab &z_phys_nd, const Geometry &geom, bool over_all_ranks)
 
ZBounds erf_actuator::mesh_z_levels (const MultiFab &z_phys_nd, const Geometry &geom)
 
void erf_actuator::erf_detail_ActuatorSampling::horizontal_node_ranges (const Real *b, const Geometry &geom, std::array< std::vector< std::array< int, 2 >>, 2 > &ranges)
 
void erf_actuator::column_cell_ranges (const MultiFab &z_phys_nd, const Geometry &geom, const std::vector< Real > &pos, const std::vector< Real > &reach, ColumnCells &cells)
 
bool erf_actuator::points_covered_by (const BoxArray &ba, const Geometry &geom, const std::vector< Real > &pos, Real reach, std::string &first_outside, CoverZ z, const ZBounds *zb, const ColumnCells *cells)
 
bool erf_actuator::points_covered_by (const CoverageGrids &grids, const Geometry &geom, const std::vector< Real > &pos, Real reach, std::string &first_outside, CoverZ z, const ZBounds *zb, const ColumnCells *cells)
 
bool erf_actuator::region_touches_grids (const BoxArray &ba, const Geometry &geom, const RealBox &region, const ZBounds *zb)