|
ERF
Energy Research and Forecasting: An Atmospheric Modeling Code
|
#include <istream>#include <string>#include <AMReX_Array4.H>#include <AMReX_Gpu.H>#include <AMReX_GpuContainers.H>#include <AMReX_REAL.H>#include <AMReX_Vector.H>

Go to the source code of this file.
Classes | |
| struct | InflowProfile |
| struct | InflowLogLaw |
Functions | |
| std::string | parse_inflow_profile (std::istream &is, InflowProfile &prof) |
| void | read_inflow_profile_file (const std::string &fname, InflowProfile &prof) |
| std::string | make_log_law_inflow_profile (const InflowLogLaw &p, amrex::Real ztop, InflowProfile &prof) |
| AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::Real | inflow_profile_value (const amrex::Real *z, const amrex::Real *f, const int n, const amrex::Real zq) noexcept |
| AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::Real | height_above_ground (const amrex::Array4< const amrex::Real > &z_nd, int ilo, int ihi, int jlo, int jhi, const int k, const int klo) noexcept |
|
noexcept |
Mean height above the ground of the nodes [ilo,ihi] x [jlo,jhi] between levels k and k+1 of the terrain-fitted mesh: a cell center (two nodes in each lateral direction), an x-face (ilo == ihi) or a y-face (jlo == jhi). The ground is the same nodes on level klo. Indices are clamped to the array.
Referenced by ERFPhysBCFunct_cons::impose_inflow_profile_cons(), ERFPhysBCFunct_u::impose_inflow_profile_xvel(), and ERFPhysBCFunct_v::impose_inflow_profile_yvel().

|
noexcept |
Linear interpolation in a strictly increasing table, held constant beyond both ends.
Referenced by ERFPhysBCFunct_cons::impose_inflow_profile_cons(), ERFPhysBCFunct_u::impose_inflow_profile_xvel(), and ERFPhysBCFunct_v::impose_inflow_profile_yvel().

| std::string make_log_law_inflow_profile | ( | const InflowLogLaw & | p, |
| amrex::Real | ztop, | ||
| InflowProfile & | prof | ||
| ) |
Tabulate the log law from the ground to ztop; returns an empty string on success.
| std::string parse_inflow_profile | ( | std::istream & | is, |
| InflowProfile & | prof | ||
| ) |
Parse a profile table; returns an empty string on success, otherwise the error.
The layout of kynema-sgf's TabulatedProfile: one row per height, heights strictly increasing. A comment line whose first word is "z" names the columns (z u v w T tke, in any order; theta and k are accepted for T and tke); other comment lines are ignored. Without such a header, four columns are z u v T and five are z u v T tke. A w column is accepted and not used: the vertical velocity on the face keeps its boundary value. Heights are above the local ground.
Referenced by read_inflow_profile_file().

| void read_inflow_profile_file | ( | const std::string & | fname, |
| InflowProfile & | prof | ||
| ) |
Read a profile file, aborting with the file name on any error.
Referenced by ERF::init_inflow_profile().

