ERF
Energy Research and Forecasting: An Atmospheric Modeling Code
ERF_ActuatorSampling.H File Reference
#include <algorithm>
#include <cmath>
#include <string>
#include <vector>
#include <AMReX_Geometry.H>
#include <AMReX_MultiFab.H>
#include <AMReX_REAL.H>
#include "ERF_ActuatorDeviceBuffers.H"
Include dependency graph for ERF_ActuatorSampling.H:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  erf_actuator::ZBounds
 
class  erf_actuator::LevelHeights
 
struct  erf_actuator::ColumnCells
 
struct  erf_actuator::CoverageGrids
 

Namespaces

 erf_actuator
 

Enumerations

enum class  erf_actuator::CoverZ { erf_actuator::Reach , erf_actuator::Footprint , erf_actuator::Column }
 

Functions

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...
 
void erf_actuator::sample_velocity (const amrex::MultiFab &U, const amrex::MultiFab &V, const amrex::MultiFab &W, const amrex::MultiFab *z_phys_nd, const amrex::Geometry &geom, const std::vector< amrex::Real > &pos, std::vector< amrex::Real > &vel)
 
void erf_actuator::sample_velocity_local (const amrex::MultiFab &U, const amrex::MultiFab &V, const amrex::MultiFab &W, const amrex::MultiFab *z_phys_nd, const amrex::Geometry &geom, const std::vector< amrex::Real > &wpos, std::vector< amrex::Real > &vel, std::vector< int > &cnt, ActuatorDeviceBuffers *buffers=nullptr)
 
std::vector< amrex::Real > erf_actuator::wrap_periodic (const std::vector< amrex::Real > &pos, const amrex::Geometry &geom)
 
void erf_actuator::sample_cell_scalar (const amrex::MultiFab &mf, int comp, const amrex::MultiFab *z_phys_nd, const amrex::Geometry &geom, const std::vector< amrex::Real > &pos, std::vector< amrex::Real > &val)
 
void erf_actuator::terrain_heights (const amrex::MultiFab *z_phys_nd, const amrex::Geometry &geom, const std::vector< amrex::Real > &pos, std::vector< amrex::Real > &h)
 
ZBounds erf_actuator::mesh_z_bounds (const amrex::MultiFab &z_phys_nd, const amrex::Geometry &geom, bool over_all_ranks=true)
 
ZBounds erf_actuator::mesh_z_levels (const amrex::MultiFab &z_phys_nd, const amrex::Geometry &geom)
 
void erf_actuator::column_cell_ranges (const amrex::MultiFab &z_phys_nd, const amrex::Geometry &geom, const std::vector< amrex::Real > &pos, const std::vector< amrex::Real > &reach, ColumnCells &cells)
 
bool erf_actuator::points_covered_by (const amrex::BoxArray &ba, const amrex::Geometry &geom, const std::vector< amrex::Real > &pos, amrex::Real reach, std::string &first_outside, CoverZ z=CoverZ::Reach, const ZBounds *zb=nullptr, const ColumnCells *cells=nullptr)
 
bool erf_actuator::points_covered_by (const CoverageGrids &grids, const amrex::Geometry &geom, const std::vector< amrex::Real > &pos, amrex::Real reach, std::string &first_outside, CoverZ z=CoverZ::Reach, const ZBounds *zb=nullptr, const ColumnCells *cells=nullptr)
 
bool erf_actuator::region_touches_grids (const amrex::BoxArray &ba, const amrex::Geometry &geom, const amrex::RealBox &region, const ZBounds *zb=nullptr)