|
ERF
Energy Research and Forecasting: An Atmospheric Modeling Code
|
Provides least-squares slope reconstruction helpers near EB cut cells. More...


Go to the source code of this file.
Functions | |
| AMREX_GPU_DEVICE AMREX_FORCE_INLINE amrex::GpuArray< amrex::Real, AMREX_SPACEDIM > | erf_calc_slopes_eb_Dirichlet (amrex::Real dx, amrex::Real dy, amrex::Real dz, int i, int j, int k, amrex::RealVect const &bcent_eb, amrex::Real const state_eb, amrex::Array4< amrex::Real const > const &state, amrex::Array4< amrex::Real const > const &ccent, amrex::Array4< amrex::EBCellFlag const > const &flag) |
| Compute least-squares slopes using EB Dirichlet data. More... | |
| AMREX_GPU_DEVICE AMREX_FORCE_INLINE amrex::GpuArray< amrex::Real, AMREX_SPACEDIM > | erf_calc_slopes_eb_Dirichlet_staggered (int igrid_query, int igrid_data, amrex::Real dx, amrex::Real dy, amrex::Real dz, int i, int j, int k, amrex::RealVect const &bcent_eb, amrex::Real const state_eb, amrex::Array4< amrex::Real const > const &state, amrex::Array4< amrex::Real const > const &ccent, amrex::Array4< amrex::EBCellFlag const > const &flag) |
| Compute least-squares slopes from staggered data using EB Dirichlet data. More... | |
| AMREX_GPU_DEVICE AMREX_FORCE_INLINE amrex::GpuArray< amrex::Real, AMREX_SPACEDIM > | erf_calc_slopes_eb_staggered (int igrid_query, int igrid_data, amrex::Real dx, amrex::Real dy, amrex::Real dz, int i, int j, int k, amrex::Array4< amrex::Real const > const &state, amrex::Array4< amrex::Real const > const &ccent, amrex::Array4< amrex::EBCellFlag const > const &flag) |
| Compute centered least-squares slopes from cell data to a staggered query grid. More... | |
| AMREX_GPU_DEVICE AMREX_FORCE_INLINE amrex::GpuArray< amrex::Real, AMREX_SPACEDIM > | erf_calc_slopes_eb_staggered_upwind (int igrid_query, [[maybe_unused]] int igrid_data, amrex::Real dx, amrex::Real dy, amrex::Real dz, int i, int j, int k, const amrex::Array4< const amrex::Real > &vel_arr, amrex::Array4< amrex::Real const > const &state, amrex::Array4< amrex::Real const > const &ccent, amrex::Array4< amrex::EBCellFlag const > const &flag) |
| Compute upwind-biased least-squares slopes for staggered EB advection. More... | |
Provides least-squares slope reconstruction helpers near EB cut cells.
| AMREX_GPU_DEVICE AMREX_FORCE_INLINE amrex::GpuArray<amrex::Real,AMREX_SPACEDIM> erf_calc_slopes_eb_Dirichlet | ( | amrex::Real | dx, |
| amrex::Real | dy, | ||
| amrex::Real | dz, | ||
| int | i, | ||
| int | j, | ||
| int | k, | ||
| amrex::RealVect const & | bcent_eb, | ||
| amrex::Real const | state_eb, | ||
| amrex::Array4< amrex::Real const > const & | state, | ||
| amrex::Array4< amrex::Real const > const & | ccent, | ||
| amrex::Array4< amrex::EBCellFlag const > const & | flag | ||
| ) |
Compute least-squares slopes using EB Dirichlet data.
| [in] | dx | Mesh spacing in x. |
| [in] | dy | Mesh spacing in y. |
| [in] | dz | Mesh spacing in z. |
| [in] | i | Cell index in x. |
| [in] | j | Cell index in y. |
| [in] | k | Cell index in z. |
| [in] | bcent_eb | EB boundary centroid. |
| [in] | state_eb | Dirichlet state at the EB boundary. |
| [in] | state | Cell-centered state array. |
| [in] | ccent | Cell centroid coordinates. |
| [in] | flag | Cell-centered EB flags and connectivity. |
Referenced by DiffusionSrcForMom_EB().

| AMREX_GPU_DEVICE AMREX_FORCE_INLINE amrex::GpuArray<amrex::Real,AMREX_SPACEDIM> erf_calc_slopes_eb_Dirichlet_staggered | ( | int | igrid_query, |
| int | igrid_data, | ||
| amrex::Real | dx, | ||
| amrex::Real | dy, | ||
| amrex::Real | dz, | ||
| int | i, | ||
| int | j, | ||
| int | k, | ||
| amrex::RealVect const & | bcent_eb, | ||
| amrex::Real const | state_eb, | ||
| amrex::Array4< amrex::Real const > const & | state, | ||
| amrex::Array4< amrex::Real const > const & | ccent, | ||
| amrex::Array4< amrex::EBCellFlag const > const & | flag | ||
| ) |
Compute least-squares slopes from staggered data using EB Dirichlet data.
| [in] | igrid_query | Grid index for the query location. |
| [in] | igrid_data | Grid index for the data locations. |
| [in] | dx | Mesh spacing in x. |
| [in] | dy | Mesh spacing in y. |
| [in] | dz | Mesh spacing in z. |
| [in] | i | Cell index in x. |
| [in] | j | Cell index in y. |
| [in] | k | Cell index in z. |
| [in] | bcent_eb | EB boundary centroid. |
| [in] | state_eb | Dirichlet state at the EB boundary. |
| [in] | state | State array on the data grid. |
| [in] | ccent | Cell centroid coordinates. |
| [in] | flag | EB flags on the data grid. |
Referenced by DiffusionSrcForMom_EB().

| AMREX_GPU_DEVICE AMREX_FORCE_INLINE amrex::GpuArray<amrex::Real,AMREX_SPACEDIM> erf_calc_slopes_eb_staggered | ( | int | igrid_query, |
| int | igrid_data, | ||
| amrex::Real | dx, | ||
| amrex::Real | dy, | ||
| amrex::Real | dz, | ||
| int | i, | ||
| int | j, | ||
| int | k, | ||
| amrex::Array4< amrex::Real const > const & | state, | ||
| amrex::Array4< amrex::Real const > const & | ccent, | ||
| amrex::Array4< amrex::EBCellFlag const > const & | flag | ||
| ) |
Compute centered least-squares slopes from cell data to a staggered query grid.
| [in] | igrid_query | Grid index for the staggered query location. |
| [in] | igrid_data | Grid index for the source data locations. |
| [in] | dx | Mesh spacing in x. |
| [in] | dy | Mesh spacing in y. |
| [in] | dz | Mesh spacing in z. |
| [in] | i | Cell index in x. |
| [in] | j | Cell index in y. |
| [in] | k | Cell index in z. |
| [in] | state | State array on the data grid. |
| [in] | ccent | Cell centroid coordinates. |
| [in] | flag | EB flags on the data grid. |
Referenced by compute_gradp_xy(), and compute_gradp_z().

| AMREX_GPU_DEVICE AMREX_FORCE_INLINE amrex::GpuArray<amrex::Real,AMREX_SPACEDIM> erf_calc_slopes_eb_staggered_upwind | ( | int | igrid_query, |
| [[maybe_unused] ] int | igrid_data, | ||
| amrex::Real | dx, | ||
| amrex::Real | dy, | ||
| amrex::Real | dz, | ||
| int | i, | ||
| int | j, | ||
| int | k, | ||
| const amrex::Array4< const amrex::Real > & | vel_arr, | ||
| amrex::Array4< amrex::Real const > const & | state, | ||
| amrex::Array4< amrex::Real const > const & | ccent, | ||
| amrex::Array4< amrex::EBCellFlag const > const & | flag | ||
| ) |
Compute upwind-biased least-squares slopes for staggered EB advection.
| [in] | igrid_query | Grid index for the staggered query location. |
| [in] | igrid_data | Grid index for the source data locations. |
| [in] | dx | Mesh spacing in x. |
| [in] | dy | Mesh spacing in y. |
| [in] | dz | Mesh spacing in z. |
| [in] | i | Cell index in x. |
| [in] | j | Cell index in y. |
| [in] | k | Cell index in z. |
| [in] | vel_arr | Velocity array used to choose the upwind stencil. |
| [in] | state | State array on the data grid. |
| [in] | ccent | Cell centroid coordinates. |
| [in] | flag | EB flags on the data grid. |