|
ERF
Energy Research and Forecasting: An Atmospheric Modeling Code
|
#include <ERF_IndexDefines.H>#include <ERF_TerrainMetrics.H>#include <ERF_Advection.H>#include <ERF_AdvectionSrcForScalars.H>
Functions | |
| void | AdvectionSrcForRho (const Box &bx, const Array4< Real > &advectionSrc, const Array4< const Real > &rho_u, const Array4< const Real > &rho_v, const Array4< const Real > &Omega, const Array4< Real > &avg_xmom, const Array4< Real > &avg_ymom, const Array4< Real > &avg_zmom, const Array4< const Real > &ax_arr, const Array4< const Real > &ay_arr, const Array4< const Real > &az_arr, const Array4< const Real > &detJ, const GpuArray< Real, AMREX_SPACEDIM > &cellSizeInv, const Array4< const Real > &mf_mx, const Array4< const Real > &mf_my, const Array4< const Real > &mf_uy, const Array4< const Real > &mf_vx, const GpuArray< const Array4< Real >, AMREX_SPACEDIM > &flx_arr, const bool fixed_rho) |
| void | AdvectionSrcForScalars (const Box &bx, const int icomp, const int ncomp, const Array4< const Real > &avg_xmom, const Array4< const Real > &avg_ymom, const Array4< const Real > &avg_zmom, const Array4< const Real > &cell_prim, const Array4< Real > &advectionSrc, const Array4< const Real > &detJ, const GpuArray< Real, AMREX_SPACEDIM > &cellSizeInv, const Array4< const Real > &mf_mx, const Array4< const Real > &mf_my, const AdvType horiz_adv_type, const AdvType vert_adv_type, const Real horiz_upw_frac, const Real vert_upw_frac, const GpuArray< const Array4< Real >, AMREX_SPACEDIM > &flx_arr, const Box &domain, const BCRec *bc_ptr_h) |
| void AdvectionSrcForRho | ( | const Box & | bx, |
| const Array4< Real > & | advectionSrc, | ||
| const Array4< const Real > & | rho_u, | ||
| const Array4< const Real > & | rho_v, | ||
| const Array4< const Real > & | Omega, | ||
| const Array4< Real > & | avg_xmom, | ||
| const Array4< Real > & | avg_ymom, | ||
| const Array4< Real > & | avg_zmom, | ||
| const Array4< const Real > & | ax_arr, | ||
| const Array4< const Real > & | ay_arr, | ||
| const Array4< const Real > & | az_arr, | ||
| const Array4< const Real > & | detJ, | ||
| const GpuArray< Real, AMREX_SPACEDIM > & | cellSizeInv, | ||
| const Array4< const Real > & | mf_mx, | ||
| const Array4< const Real > & | mf_my, | ||
| const Array4< const Real > & | mf_uy, | ||
| const Array4< const Real > & | mf_vx, | ||
| const GpuArray< const Array4< Real >, AMREX_SPACEDIM > & | flx_arr, | ||
| const bool | fixed_rho | ||
| ) |
Function for computing the advective tendency for the density update equation This routine also constructs the time-averaged momentum fluxes used by scalar advection.
| [in] | bx | box over which the scalars are updated |
| [out] | advectionSrc | tendency for the scalar update equation |
| [in] | rho_u | x-component of momentum |
| [in] | rho_v | y-component of momentum |
| [in] | Omega | component of momentum normal to the z-coordinate surface |
| [out] | avg_xmom | x-component of time-averaged momentum defined in this routine |
| [out] | avg_ymom | y-component of time-averaged momentum defined in this routine |
| [out] | avg_zmom | z-component of time-averaged momentum defined in this routine |
| [in] | ax_arr | area fraction of x-faces |
| [in] | ay_arr | area fraction of y-faces |
| [in] | az_arr | area fraction of z-faces |
| [in] | detJ | Jacobian of the metric transformation (= 1 if use_terrain is false) |
| [in] | cellSizeInv | inverse of the grid spacing |
| [in] | mf_mx | x map factor at cell centers |
| [in] | mf_my | y map factor at cell centers |
| [in] | mf_uy | y map factor at x-faces |
| [in] | mf_vx | x map factor at y-faces |
| [out] | flx_arr | density flux arrays |
| [in] | fixed_rho | flag to zero the density tendency |

| void AdvectionSrcForScalars | ( | const Box & | bx, |
| const int | icomp, | ||
| const int | ncomp, | ||
| const Array4< const Real > & | avg_xmom, | ||
| const Array4< const Real > & | avg_ymom, | ||
| const Array4< const Real > & | avg_zmom, | ||
| const Array4< const Real > & | cell_prim, | ||
| const Array4< Real > & | advectionSrc, | ||
| const Array4< const Real > & | detJ, | ||
| const GpuArray< Real, AMREX_SPACEDIM > & | cellSizeInv, | ||
| const Array4< const Real > & | mf_mx, | ||
| const Array4< const Real > & | mf_my, | ||
| const AdvType | horiz_adv_type, | ||
| const AdvType | vert_adv_type, | ||
| const Real | horiz_upw_frac, | ||
| const Real | vert_upw_frac, | ||
| const GpuArray< const Array4< Real >, AMREX_SPACEDIM > & | flx_arr, | ||
| const Box & | domain, | ||
| const BCRec * | bc_ptr_h | ||
| ) |
Function for computing the advective tendency for scalar update equations other than density This routine has explicit expressions for all cases (terrain or not) when the horizontal and vertical spatial orders are <= 2, and calls more specialized functions when either (or both) spatial order(s) is greater than two
| [in] | bx | box over which the scalars are updated if no external boundary conditions |
| [in] | icomp | component of first scalar to be updated |
| [in] | ncomp | number of components to be updated |
| [in] | avg_xmom | x-component of time-averaged momentum defined in this routine |
| [in] | avg_ymom | y-component of time-averaged momentum defined in this routine |
| [in] | avg_zmom | z-component of time-averaged momentum defined in this routine |
| [in] | cell_prim | primitive form of scalar variables, here only potential temperature theta |
| [out] | advectionSrc | tendency for the scalar update equation |
| [in] | detJ | Jacobian of the metric transformation (= 1 if use_terrain is false) |
| [in] | cellSizeInv | inverse of the grid spacing |
| [in] | mf_mx | x map factor at cell centers |
| [in] | mf_my | y map factor at cell centers |
| [in] | horiz_adv_type | advection scheme to be used in horiz. directions for dry scalars |
| [in] | vert_adv_type | advection scheme to be used in vert. directions for dry scalars |
| [in] | horiz_upw_frac | upwinding fraction to be used in horiz. directions for dry scalars (for Blended schemes only) |
| [in] | vert_upw_frac | upwinding fraction to be used in vert. directions for dry scalars (for Blended schemes only) |
| [out] | flx_arr | scalar flux arrays |
| [in] | domain | computational domain |
| [in] | bc_ptr_h | boundary condition records on host |
