|
ERF
Energy Research and Forecasting: An Atmospheric Modeling Code
|
#include "ERF_SurfaceLayer.H"#include "ERF_EddyViscosity.H"#include "ERF_Diffusion.H"#include "ERF_PBLModels.H"#include "ERF_TileNoZ.H"#include "ERF_TerrainMetrics.H"#include "ERF_MoistUtils.H"#include "ERF_RichardsonNumber.H"
Functions | |
| void | ComputeTurbulentViscosityLES (Vector< std::unique_ptr< MultiFab >> &Tau_lev, const MultiFab &cons_in, MultiFab &eddyViscosity, MultiFab &Hfx1, MultiFab &Hfx2, MultiFab &Hfx3, MultiFab &Diss, const Geometry &geom, bool use_terrain_fitted_coords, Vector< std::unique_ptr< MultiFab >> &mapfac, const std::unique_ptr< MultiFab > &z_phys_nd, const TurbChoice &turbChoice, const Real const_grav, std::unique_ptr< SurfaceLayer > &, const MoistureComponentIndices &moisture_indices, const MultiFab *xvel, const MultiFab *yvel) |
| void | ComputeTurbulentViscosityRANS (Vector< std::unique_ptr< MultiFab >> &, const MultiFab &cons_in, const MultiFab &wdist, MultiFab &eddyViscosity, MultiFab &Hfx1, MultiFab &Hfx2, MultiFab &Hfx3, MultiFab &Diss, const Geometry &geom, bool use_terrain_fitted_coords, Vector< std::unique_ptr< MultiFab >> &, const std::unique_ptr< MultiFab > &z_phys_nd, const TurbChoice &turbChoice, const Real const_grav, std::unique_ptr< SurfaceLayer > &SurfLayer, const MultiFab *z_0) |
| void | ComputeTurbulentViscosity (Real dt, const MultiFab &xvel, const MultiFab &yvel, Vector< std::unique_ptr< MultiFab >> &Tau_lev, MultiFab &cons_in, const MultiFab &wdist, MultiFab &eddyViscosity, MultiFab &Hfx1, MultiFab &Hfx2, MultiFab &Hfx3, MultiFab &Diss, const Geometry &geom, Vector< std::unique_ptr< MultiFab >> &mapfac, const std::unique_ptr< MultiFab > &z_phys_nd, const SolverChoice &solverChoice, std::unique_ptr< SurfaceLayer > &SurfLayer, const MultiFab *z_0, const bool &use_terrain_fitted_coords, const bool &use_moisture, int level, const BCRec *bc_ptr, bool vert_only) |
| void ComputeTurbulentViscosity | ( | Real | dt, |
| const MultiFab & | xvel, | ||
| const MultiFab & | yvel, | ||
| Vector< std::unique_ptr< MultiFab >> & | Tau_lev, | ||
| MultiFab & | cons_in, | ||
| const MultiFab & | wdist, | ||
| MultiFab & | eddyViscosity, | ||
| MultiFab & | Hfx1, | ||
| MultiFab & | Hfx2, | ||
| MultiFab & | Hfx3, | ||
| MultiFab & | Diss, | ||
| const Geometry & | geom, | ||
| Vector< std::unique_ptr< MultiFab >> & | mapfac, | ||
| const std::unique_ptr< MultiFab > & | z_phys_nd, | ||
| const SolverChoice & | solverChoice, | ||
| std::unique_ptr< SurfaceLayer > & | SurfLayer, | ||
| const MultiFab * | z_0, | ||
| const bool & | use_terrain_fitted_coords, | ||
| const bool & | use_moisture, | ||
| int | level, | ||
| const BCRec * | bc_ptr, | ||
| bool | vert_only | ||
| ) |
Wrapper to compute turbulent viscosity with LES or PBL.
| [in] | xvel | velocity in x-dir |
| [in] | yvel | velocity in y-dir |
| [in] | Tau_lev | strain at this level |
| [in] | cons_in | cell center conserved quantities |
| [out] | eddyViscosity | turbulent viscosity |
| [in] | Hfx1 | heat flux in x-dir |
| [in] | Hfx2 | heat flux in y-dir |
| [in] | Hfx3 | heat flux in z-dir |
| [in] | Diss | dissipation of turbulent kinetic energy |
| [in] | geom | problem geometry |
| [in] | mapfac | map factors |
| [in] | turbChoice | container with turbulence parameters |
| [in] | most | pointer to Monin-Obukhov class if instantiated |
| [in] | vert_only | flag for vertical components of eddyViscosity |
Referenced by ERF::advance_dycore().


| void ComputeTurbulentViscosityLES | ( | Vector< std::unique_ptr< MultiFab >> & | Tau_lev, |
| const MultiFab & | cons_in, | ||
| MultiFab & | eddyViscosity, | ||
| MultiFab & | Hfx1, | ||
| MultiFab & | Hfx2, | ||
| MultiFab & | Hfx3, | ||
| MultiFab & | Diss, | ||
| const Geometry & | geom, | ||
| bool | use_terrain_fitted_coords, | ||
| Vector< std::unique_ptr< MultiFab >> & | mapfac, | ||
| const std::unique_ptr< MultiFab > & | z_phys_nd, | ||
| const TurbChoice & | turbChoice, | ||
| const Real | const_grav, | ||
| std::unique_ptr< SurfaceLayer > & | , | ||
| const MoistureComponentIndices & | moisture_indices, | ||
| const MultiFab * | xvel, | ||
| const MultiFab * | yvel | ||
| ) |
Function for computing the turbulent viscosity with LES.
| [in] | Tau_lev | strain at this level |
| [in] | cons_in | cell center conserved quantities |
| [out] | eddyViscosity | turbulent viscosity |
| [in] | Hfx1 | heat flux in x-dir |
| [in] | Hfx2 | heat flux in y-dir |
| [in] | Hfx3 | heat flux in z-dir |
| [in] | Diss | dissipation of turbulent kinetic energy |
| [in] | geom | problem geometry |
| [in] | mapfac | map factors |
| [in] | turbChoice | container with turbulence parameters |
| [in] | xvel | x-direction velocity (for moist Ri correction) |
| [in] | yvel | y-direction velocity (for moist Ri correction) |
Referenced by ComputeTurbulentViscosity().


| void ComputeTurbulentViscosityRANS | ( | Vector< std::unique_ptr< MultiFab >> & | , |
| const MultiFab & | cons_in, | ||
| const MultiFab & | wdist, | ||
| MultiFab & | eddyViscosity, | ||
| MultiFab & | Hfx1, | ||
| MultiFab & | Hfx2, | ||
| MultiFab & | Hfx3, | ||
| MultiFab & | Diss, | ||
| const Geometry & | geom, | ||
| bool | use_terrain_fitted_coords, | ||
| Vector< std::unique_ptr< MultiFab >> & | , | ||
| const std::unique_ptr< MultiFab > & | z_phys_nd, | ||
| const TurbChoice & | turbChoice, | ||
| const Real | const_grav, | ||
| std::unique_ptr< SurfaceLayer > & | SurfLayer, | ||
| const MultiFab * | z_0 | ||
| ) |
Function for computing the eddy viscosity with RANS.
| [in] | Tau_lev | strain at this level |
| [in] | cons_in | cell center conserved quantities |
| [out] | eddyViscosity | turbulent viscosity |
| [in] | Hfx1 | heat flux in x-dir |
| [in] | Hfx2 | heat flux in y-dir |
| [in] | Hfx3 | heat flux in z-dir |
| [in] | Diss | dissipation of turbulent kinetic energy |
| [in] | geom | problem geometry |
| [in] | mapfac | map factor |
| [in] | turbChoice | container with turbulence parameters |
Referenced by ComputeTurbulentViscosity().

