|
ERF
Energy Research and Forecasting: An Atmospheric Modeling Code
|

Go to the source code of this file.
Functions | |
| AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE void | getRhoAlphaForFaces (int i, int j, int k, int ioff, int joff, amrex::Real &rhoAlpha_lo, amrex::Real &rhoAlpha_hi, const amrex::Array4< const amrex::Real > &cell_data, const amrex::Array4< const amrex::Real > &mu_turb, const amrex::Real mu_eff, bool l_consA, bool l_turb) |
| AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE void | getRhoAlphaForFaces (int i, int j, int k, amrex::Real &rhoAlpha_lo, amrex::Real &rhoAlpha_hi, const amrex::Array4< const amrex::Real > &cell_data, const amrex::Array4< const amrex::Real > &mu_turb, const amrex::Real mu_eff, bool l_consA, bool l_turb) |
| AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE void getRhoAlphaForFaces | ( | int | i, |
| int | j, | ||
| int | k, | ||
| amrex::Real & | rhoAlpha_lo, | ||
| amrex::Real & | rhoAlpha_hi, | ||
| const amrex::Array4< const amrex::Real > & | cell_data, | ||
| const amrex::Array4< const amrex::Real > & | mu_turb, | ||
| const amrex::Real | mu_eff, | ||
| bool | l_consA, | ||
| bool | l_turb | ||
| ) |
Return rhoAlpha at cell centers below and above a z-staggered face.
| [in] | i | face i-index |
| [in] | j | face j-index |
| [in] | k | face k-index |
| [out] | rhoAlpha_lo | rhoAlpha below the face |
| [out] | rhoAlpha_hi | rhoAlpha above the face |
| [in] | cell_data | conserved cell-centered state |
| [in] | mu_turb | turbulent viscosity |
| [in] | mu_eff | effective molecular viscosity. NOTE: unlike the mu_eff in ERF_MakeTauTerms.cpp and ComputeStress*, this includes the factor of 2 only for the w (diagonal) correction stress, because the u/v (off-diagonal) correction strains already carry a factor of 1/2. |
| [in] | l_consA | flag for conservative constant-alpha diffusion |
| [in] | l_turb | flag for turbulent diffusion |
| AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE void getRhoAlphaForFaces | ( | int | i, |
| int | j, | ||
| int | k, | ||
| int | ioff, | ||
| int | joff, | ||
| amrex::Real & | rhoAlpha_lo, | ||
| amrex::Real & | rhoAlpha_hi, | ||
| const amrex::Array4< const amrex::Real > & | cell_data, | ||
| const amrex::Array4< const amrex::Real > & | mu_turb, | ||
| const amrex::Real | mu_eff, | ||
| bool | l_consA, | ||
| bool | l_turb | ||
| ) |
Average rhoAlpha from cell centers to lower and upper z-edges of staggered faces.
| [in] | i | face i-index |
| [in] | j | face j-index |
| [in] | k | face k-index |
| [in] | ioff | x-direction staggering offset |
| [in] | joff | y-direction staggering offset |
| [out] | rhoAlpha_lo | rhoAlpha averaged to the lower z-edge |
| [out] | rhoAlpha_hi | rhoAlpha averaged to the upper z-edge |
| [in] | cell_data | conserved cell-centered state |
| [in] | mu_turb | turbulent viscosity |
| [in] | mu_eff | effective molecular viscosity. NOTE: unlike the mu_eff in ERF_MakeTauTerms.cpp and ComputeStress*, this includes the factor of 2 only for the w (diagonal) correction stress, because the u/v (off-diagonal) correction strains already carry a factor of 1/2. |
| [in] | l_consA | flag for conservative constant-alpha diffusion |
| [in] | l_turb | flag for turbulent diffusion |
Referenced by ImplicitDiffForMomLU_N(), ImplicitDiffForMomLU_S(), and ImplicitDiffForMomLU_T().
