|
ERF
Energy Research and Forecasting: An Atmospheric Modeling Code
|
#include <ERF_Advection.H>
Functions | |
| void | AdvectionSrcForOpenBC_Normal (const Box &bx, const int &dir, const Array4< Real > &rhs_arr, const Array4< const Real > &vel_norm_arr, const Array4< const Real > &cell_data_arr, const GpuArray< Real, AMREX_SPACEDIM > &dxInv, const bool do_lo) |
| void | AdvectionSrcForOpenBC_Tangent_Xmom (const Box &bxx, const int &dir, const Array4< Real > &rho_u_rhs, const Array4< const Real > &u, const Array4< const Real > &rho_u, const Array4< const Real > &rho_v, const Array4< const Real > &Omega, const Array4< const Real > &ax, const Array4< const Real > &az, const Array4< const Real > &detJ, const GpuArray< Real, AMREX_SPACEDIM > &cellSizeInv, const bool do_lo) |
| void | AdvectionSrcForOpenBC_Tangent_Ymom (const Box &bxy, const int &dir, const Array4< Real > &rho_v_rhs, const Array4< const Real > &v, const Array4< const Real > &rho_u, const Array4< const Real > &rho_v, const Array4< const Real > &Omega, const Array4< const Real > &ay, const Array4< const Real > &az, const Array4< const Real > &detJ, const GpuArray< Real, AMREX_SPACEDIM > &cellSizeInv, const bool do_lo) |
| void | AdvectionSrcForOpenBC_Tangent_Zmom (const Box &bxz, const int &dir, const Array4< Real > &rho_w_rhs, const Array4< const Real > &w, const Array4< const Real > &rho_u, const Array4< const Real > &rho_v, const Array4< const Real > &Omega, const Array4< const Real > &ax, const Array4< const Real > &ay, const Array4< const Real > &az, const Array4< const Real > &detJ, const GpuArray< Real, AMREX_SPACEDIM > &cellSizeInv, const int domhi_z, const bool do_lo) |
| void | AdvectionSrcForOpenBC_Tangent_Cons (const Box &bx, const int &dir, const int &icomp, const int &ncomp, const Array4< Real > &cell_rhs, const Array4< const Real > &cell_prim, const Array4< const Real > &avg_xmom, const Array4< const Real > &avg_ymom, const Array4< const Real > &avg_zmom, const Array4< const Real > &detJ, const GpuArray< Real, AMREX_SPACEDIM > &cellSizeInv, const bool do_lo) |
| AMREX_FORCE_INLINE AMREX_GPU_HOST_DEVICE Real | AdvectionSrcForOpenBC_Tangent (const int &i, const int &j, const int &k, const int &nprim, const int &dir, const Array4< const Real > &prim_tang_arr, const Array4< const Real > &mom_norm_arr, const Real &dxInv, const bool do_lo) |
| void AdvectionSrcForOpenBC_Normal | ( | const Box & | bx, |
| const int & | dir, | ||
| const Array4< Real > & | rhs_arr, | ||
| const Array4< const Real > & | vel_norm_arr, | ||
| const Array4< const Real > & | cell_data_arr, | ||
| const GpuArray< Real, AMREX_SPACEDIM > & | dxInv, | ||
| const bool | do_lo | ||
| ) |
Compute advection tendencies for momentum normal to an open boundary.
| [in] | bx | box over which the boundary-normal momentum is updated |
| [in] | dir | coordinate direction normal to the open boundary |
| [out] | rhs_arr | tendency for the boundary-normal momentum equation |
| [in] | vel_norm_arr | velocity component normal to the open boundary |
| [in] | cell_data_arr | cell-centered conservative state |
| [in] | dxInv | inverse grid spacing |
| [in] | do_lo | flag for a low-side open boundary |

| AMREX_FORCE_INLINE AMREX_GPU_HOST_DEVICE Real AdvectionSrcForOpenBC_Tangent | ( | const int & | i, |
| const int & | j, | ||
| const int & | k, | ||
| const int & | nprim, | ||
| const int & | dir, | ||
| const Array4< const Real > & | prim_tang_arr, | ||
| const Array4< const Real > & | mom_norm_arr, | ||
| const Real & | dxInv, | ||
| const bool | do_lo | ||
| ) |
Compute the open-boundary normal-direction source for a tangential primitive variable.
| [in] | i | i-index of the target cell |
| [in] | j | j-index of the target cell |
| [in] | k | k-index of the target cell |
| [in] | nprim | primitive component to update |
| [in] | dir | coordinate direction normal to the open boundary |
| [in] | prim_tang_arr | primitive variable tangent to the open boundary |
| [in] | mom_norm_arr | momentum component normal to the open boundary |
| [in] | dxInv | inverse grid spacing in the open-boundary normal direction |
| [in] | do_lo | flag for a low-side open boundary |
Referenced by AdvectionSrcForOpenBC_Tangent_Cons(), AdvectionSrcForOpenBC_Tangent_Xmom(), AdvectionSrcForOpenBC_Tangent_Ymom(), and AdvectionSrcForOpenBC_Tangent_Zmom().

| void AdvectionSrcForOpenBC_Tangent_Cons | ( | const Box & | bx, |
| const int & | dir, | ||
| const int & | icomp, | ||
| const int & | ncomp, | ||
| const Array4< Real > & | cell_rhs, | ||
| const Array4< const Real > & | cell_prim, | ||
| const Array4< const Real > & | avg_xmom, | ||
| const Array4< const Real > & | avg_ymom, | ||
| const Array4< const Real > & | avg_zmom, | ||
| const Array4< const Real > & | detJ, | ||
| const GpuArray< Real, AMREX_SPACEDIM > & | cellSizeInv, | ||
| const bool | do_lo | ||
| ) |
Compute second-order advection tendencies for conserved variables tangent to an open boundary.
| [in] | bx | box over which conserved variables are updated |
| [in] | dir | coordinate direction normal to the open boundary |
| [in] | icomp | first conserved component to update |
| [in] | ncomp | number of conserved components to update |
| [out] | cell_rhs | tendency for conserved variables |
| [in] | cell_prim | primitive scalar variables |
| [in] | avg_xmom | x-component of time-averaged momentum |
| [in] | avg_ymom | y-component of time-averaged momentum |
| [in] | avg_zmom | z-component of time-averaged momentum |
| [in] | detJ | Jacobian of the metric transformation |
| [in] | cellSizeInv | inverse grid spacing |
| [in] | do_lo | flag for a low-side open boundary |

| void AdvectionSrcForOpenBC_Tangent_Xmom | ( | const Box & | bxx, |
| const int & | dir, | ||
| const Array4< Real > & | rho_u_rhs, | ||
| const Array4< const Real > & | u, | ||
| const Array4< const Real > & | rho_u, | ||
| const Array4< const Real > & | rho_v, | ||
| const Array4< const Real > & | Omega, | ||
| const Array4< const Real > & | ax, | ||
| const Array4< const Real > & | az, | ||
| const Array4< const Real > & | detJ, | ||
| const GpuArray< Real, AMREX_SPACEDIM > & | cellSizeInv, | ||
| const bool | do_lo | ||
| ) |
Compute second-order advection tendencies for x-momentum tangent to an open boundary.
| [in] | bxx | box over which x-momentum is updated |
| [in] | dir | coordinate direction normal to the open boundary |
| [out] | rho_u_rhs | tendency for the x-momentum equation |
| [in] | u | x-component of velocity |
| [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 |
| [in] | ax | area fraction of x-faces |
| [in] | az | area fraction of z-faces |
| [in] | detJ | Jacobian of the metric transformation |
| [in] | cellSizeInv | inverse grid spacing |
| [in] | do_lo | flag for a low-side open boundary |

| void AdvectionSrcForOpenBC_Tangent_Ymom | ( | const Box & | bxy, |
| const int & | dir, | ||
| const Array4< Real > & | rho_v_rhs, | ||
| const Array4< const Real > & | v, | ||
| const Array4< const Real > & | rho_u, | ||
| const Array4< const Real > & | rho_v, | ||
| const Array4< const Real > & | Omega, | ||
| const Array4< const Real > & | ay, | ||
| const Array4< const Real > & | az, | ||
| const Array4< const Real > & | detJ, | ||
| const GpuArray< Real, AMREX_SPACEDIM > & | cellSizeInv, | ||
| const bool | do_lo | ||
| ) |
Compute second-order advection tendencies for y-momentum tangent to an open boundary.
| [in] | bxy | box over which y-momentum is updated |
| [in] | dir | coordinate direction normal to the open boundary |
| [out] | rho_v_rhs | tendency for the y-momentum equation |
| [in] | v | y-component of velocity |
| [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 |
| [in] | ay | area fraction of y-faces |
| [in] | az | area fraction of z-faces |
| [in] | detJ | Jacobian of the metric transformation |
| [in] | cellSizeInv | inverse grid spacing |
| [in] | do_lo | flag for a low-side open boundary |

| void AdvectionSrcForOpenBC_Tangent_Zmom | ( | const Box & | bxz, |
| const int & | dir, | ||
| const Array4< Real > & | rho_w_rhs, | ||
| const Array4< const Real > & | w, | ||
| const Array4< const Real > & | rho_u, | ||
| const Array4< const Real > & | rho_v, | ||
| const Array4< const Real > & | Omega, | ||
| const Array4< const Real > & | ax, | ||
| const Array4< const Real > & | ay, | ||
| const Array4< const Real > & | az, | ||
| const Array4< const Real > & | detJ, | ||
| const GpuArray< Real, AMREX_SPACEDIM > & | cellSizeInv, | ||
| const int | domhi_z, | ||
| const bool | do_lo | ||
| ) |
Compute second-order advection tendencies for z-momentum tangent to an open boundary.
| [in] | bxz | box over which z-momentum is updated |
| [in] | dir | coordinate direction normal to the open boundary |
| [out] | rho_w_rhs | tendency for the z-momentum equation |
| [in] | w | z-component of velocity |
| [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 |
| [in] | ax | area fraction of x-faces |
| [in] | ay | area fraction of y-faces |
| [in] | az | area fraction of z-faces |
| [in] | detJ | Jacobian of the metric transformation |
| [in] | cellSizeInv | inverse grid spacing |
| [in] | domhi_z | maximum cell-centered k-index in the domain |
| [in] | do_lo | flag for a low-side open boundary |
