https://mooseframework.inl.gov
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
WCNSFVTurbulencePhysics Class Referencefinal

Creates all the objects needed to add a turbulence model to an incompressible / weakly-compressible Navier Stokes finite volume flow simulation. More...

#include <WCNSFVTurbulencePhysics.h>

Inheritance diagram for WCNSFVTurbulencePhysics:
[legend]

Public Types

typedef DataFileName DataFileParameterType
 

Public Member Functions

 WCNSFVTurbulencePhysics (const InputParameters &parameters)
 
bool hasTurbulenceModel () const
 Whether a turbulence model is in use.
 
std::vector< BoundaryName > turbulenceWalls () const
 The names of the boundaries with turbulence wall functions.
 
MooseEnum turbulenceEpsilonWallTreatment () const
 The turbulence epsilon wall treatment (same for all turbulence walls currently)
 
MooseEnum turbulenceTemperatureWallTreatment () const
 The turbulence temperature wall treatment (same for all turbulence walls currently)
 
MooseFunctorName tkeName () const
 The name of the turbulent kinetic energy variable.
 
virtual void act () override final
 
void addBlocks (const std::vector< SubdomainName > &blocks)
 
void addBlocksById (const std::vector< SubdomainID > &block_ids)
 
const std::vector< SubdomainName > & blocks () const
 
bool checkBlockRestrictionIdentical (const std::string &object_name, const std::vector< SubdomainName > &blocks, const bool error_if_not_identical=true) const
 
bool hasBlocks (const std::vector< SubdomainName > &blocks) const
 
const T * getCoupledPhysics (const PhysicsName &phys_name, const bool allow_fail=false) const
 
const std::vector< T * > getCoupledPhysics (const bool allow_fail=false) const
 
unsigned int dimension () const
 
const ActionComponent & getActionComponent (const ComponentName &comp_name) const
 
void checkComponentType (const ActionComponent &component) const
 
virtual void addComponent (const ActionComponent &component)
 
const std::vector< VariableName > & solverVariableNames () const
 
const std::vector< VariableName > & auxVariableNames () const
 
virtual std::vector< UserObjectName > getSuppliedUserObjects () const
 
void timedAct ()
 
MooseObjectName uniqueActionName () const
 
const std::string & specificTaskName () const
 
const std::set< std::string > & getAllTasks () const
 
void appendTask (const std::string &task)
 
MooseApp & getMooseApp () const
 
const std::string & type () const
 
const std::string & name () const
 
std::string typeAndName () const
 
MooseObjectParameterName uniqueParameterName (const std::string &parameter_name) const
 
MooseObjectName uniqueName () const
 
const InputParameters & parameters () const
 
const hit::Node * getHitNode () const
 
bool hasBase () const
 
const std::string & getBase () const
 
const T & getParam (const std::string &name) const
 
std::vector< std::pair< T1, T2 > > getParam (const std::string &param1, const std::string &param2) const
 
const T * queryParam (const std::string &name) const
 
const T & getRenamedParam (const std::string &old_name, const std::string &new_name) const
 
T getCheckedPointerParam (const std::string &name, const std::string &error_string="") const
 
bool isParamValid (const std::string &name) const
 
bool isParamSetByUser (const std::string &name) const
 
void connectControllableParams (const std::string &parameter, const std::string &object_type, const std::string &object_name, const std::string &object_parameter) const
 
void paramError (const std::string &param, Args... args) const
 
void paramWarning (const std::string &param, Args... args) const
 
void paramWarning (const std::string &param, Args... args) const
 
void paramInfo (const std::string &param, Args... args) const
 
std::string messagePrefix (const bool hit_prefix=true) const
 
std::string errorPrefix (const std::string &) const
 
void mooseError (Args &&... args) const
 
void mooseDocumentedError (const std::string &repo_name, const unsigned int issue_num, Args &&... args) const
 
void mooseErrorNonPrefixed (Args &&... args) const
 
void mooseWarning (Args &&... args) const
 
void mooseWarning (Args &&... args) const
 
void mooseWarningNonPrefixed (Args &&... args) const
 
void mooseWarningNonPrefixed (Args &&... args) const
 
void mooseDeprecated (Args &&... args) const
 
void mooseDeprecated (Args &&... args) const
 
void mooseDeprecatedNoTrace (Args &&... args) const
 
void mooseInfo (Args &&... args) const
 
void callMooseError (std::string msg, const bool with_prefix, const hit::Node *node=nullptr, const bool show_trace=true) const
 
std::string getDataFileName (const std::string &param) const
 
std::string getDataFileNameByName (const std::string &relative_path) const
 
std::string getDataFilePath (const std::string &relative_path) const
 
PerfGraph & perfGraph ()
 
void assertParamDefined (const std::string &libmesh_dbg_var(param)) const
 
const Parallel::Communicator & comm () const
 
processor_id_type n_processors () const
 
processor_id_type processor_id () const
 
const WCNSFVFlowPhysicsBase * getCoupledFlowPhysics () const
 
const WCNSFVTurbulencePhysicsBase * getCoupledTurbulencePhysics () const
 
MooseFunctorName getPorosityFunctorName (bool smoothed) const
 Return the porosity functor name.
 
const MooseFunctorName & densityName () const
 
const MooseFunctorName & dynamicViscosityName () const
 

Static Public Member Functions

static InputParameters validParams ()
 
static void callMooseError (MooseApp *const app, const InputParameters &params, std::string msg, const bool with_prefix, const hit::Node *node, const bool show_trace=true)
 

Public Attributes

 usingCombinedWarningSolutionWarnings
 
const ConsoleStream _console
 

Static Public Attributes

static const std::string unique_action_name_param
 
static const std::string type_param
 
static const std::string name_param
 
static const std::string unique_name_param
 
static const std::string app_param
 
static const std::string moose_base_param
 
static const std::string kokkos_object_param
 
static constexpr auto SYSTEM
 
static constexpr auto NAME
 

Protected Member Functions

virtual void initializePhysicsAdditional () override
 
unsigned short getNumberAlgebraicGhostingLayersNeeded () const override
 Return the number of ghosting layers needed.
 
virtual void actOnAdditionalTasks () override
 
void retrieveCoupledPhysics ()
 Retrieve the other WCNSFVPhysics at play in the simulation to be able to add the relevant terms (turbulent diffusion notably)
 
virtual void addInitialConditions () override
 
bool usingNavierStokesFVSyntax () const
 Detects if we are using the new Physics syntax or the old NavierStokesFV action.
 
InputParameters getAdditionalRMParams () const override
 Parameters to change or add relationship managers.
 
void addFVAdvectedInterpolationMethod (const MooseEnum &interpolation_method)
 Add the FVInterpolationMethod object for an advected interpolation method if absent.
 
void assertParamDefined (const std::string &param) const
 
bool isTransient () const
 
Factory & getFactory ()
 
Factory & getFactory () const
 
virtual FEProblemBase & getProblem ()
 
virtual const FEProblemBase & getProblem () const
 
void prepareCopyVariablesFromMesh () const
 
void copyVariablesFromMesh (const std::vector< VariableName > &variables_to_copy, bool are_nonlinear=true)
 
std::string prefix () const
 
void addUserObject (const std::string &uo_type, const std::string &uo_name, InputParameters &params)
 
void saveSolverVariableName (const VariableName &var_name)
 
void saveAuxVariableName (const VariableName &var_name)
 
void addSharedSolverVariable (const std::string &var_type, const VariableName &var_name, InputParameters params)
 
void addSharedSolverVariable (const VariableName &var_name, const std::string &family, const std::string &order, Real scaling=1.0)
 
void addSharedAuxVariable (const std::string &var_type, const VariableName &var_name, const InputParameters &params)
 
void addSharedAuxVariable (const VariableName &var_name, const std::string &family, const std::string &order)
 
bool variableExists (const VariableName &var_name, bool error_if_aux) const
 
bool solverVariableExists (const VariableName &var_name) const
 
const SolverSystemName & getSolverSystem (unsigned int variable_index) const
 
const SolverSystemName & getSolverSystem (const VariableName &variable_name) const
 
void addRequiredPhysicsTask (const std::string &task)
 
void assignBlocks (InputParameters &params, const std::vector< SubdomainName > &blocks) const
 
bool allMeshBlocks (const std::vector< SubdomainName > &blocks) const
 
bool allMeshBlocks (const std::set< SubdomainName > &blocks) const
 
std::set< SubdomainID > getSubdomainIDs (const std::set< SubdomainName > &blocks) const
 
std::vector< std::string > getSubdomainNamesAndIDs (const std::set< SubdomainID > &blocks) const
 
void addPetscPairsToPetscOptions (const std::vector< std::pair< MooseEnumItem, std::string > > &petsc_pair_options)
 
bool isVariableFV (const VariableName &var_name) const
 
bool isVariableScalar (const VariableName &var_name) const
 
bool shouldCreateVariable (const VariableName &var_name, const std::vector< SubdomainName > &blocks, const bool error_if_aux)
 
bool shouldCreateIC (const VariableName &var_name, const std::vector< SubdomainName > &blocks, const bool ic_is_default_ic, const bool error_if_already_defined) const
 
bool shouldCreateTimeDerivative (const VariableName &var_name, const std::vector< SubdomainName > &blocks, const bool error_if_already_defined) const
 
void reportPotentiallyMissedParameters (const std::vector< std::string > &param_names, const std::string &object_type, const std::string &object_name="") const
 
virtual void checkIntegrity () const
 
void associateWithParameter (const std::string &param_name, InputParameters &params) const
 
void associateWithParameter (const InputParameters &from_params, const std::string &param_name, InputParameters &params) const
 
const T & getMeshProperty (const std::string &data_name, const std::string &prefix)
 
const T & getMeshProperty (const std::string &data_name)
 
bool hasMeshProperty (const std::string &data_name, const std::string &prefix) const
 
bool hasMeshProperty (const std::string &data_name, const std::string &prefix) const
 
bool hasMeshProperty (const std::string &data_name) const
 
bool hasMeshProperty (const std::string &data_name) const
 
std::string meshPropertyName (const std::string &data_name) const
 
PerfID registerTimedSection (const std::string &section_name, const unsigned int level) const
 
PerfID registerTimedSection (const std::string &section_name, const unsigned int level, const std::string &live_message, const bool print_dots=true) const
 
std::string timedSectionName (const std::string &section_name) const
 
void flagInvalidSolutionInternal (const InvalidSolutionID invalid_solution_id) const
 
InvalidSolutionID registerInvalidSolutionInternal (const std::string &message, const bool warning) const
 
void checkParamsBothSetOrNotSet (const std::string &param1, const std::string &param2) const
 
void checkAtMostOneParamSetByUser (const std::vector< std::string > &params) const
 
void checkSecondParamSetOnlyIfFirstOneTrue (const std::string &param1, const std::string &param2) const
 
void checkSecondParamSetOnlyIfFirstOneSet (const std::string &param1, const std::string &param2) const
 
void checkSecondParamNotSetIfFirstOneSet (const std::string &param1, const std::string &param2) const
 
void checkVectorParamsSameLength (const std::string &param1, const std::string &param2) const
 
void checkVectorParamAndMultiMooseEnumLength (const std::string &param1, const std::string &param2) const
 
void checkTwoDVectorParamsSameLength (const std::string &param1, const std::string &param2) const
 
void checkVectorParamsNoOverlap (const std::vector< std::string > &param_vecs) const
 
void checkTwoDVectorParamsNoRespectiveOverlap (const std::vector< std::string > &param_vecs) const
 
void checkTwoDVectorParamInnerSameLengthAsOneDVector (const std::string &param1, const std::string &param2) const
 
void checkTwoDVectorParamMultiMooseEnumSameLength (const std::string &param1, const std::string &param2, const bool error_for_param2) const
 
void checkVectorParamNotEmpty (const std::string &param1) const
 
void checkVectorParamsSameLengthIfSet (const std::string &param1, const std::string &param2, const bool ignore_empty_default_param2=false) const
 
void checkVectorParamLengthSameAsCombinedOthers (const std::string &param1, const std::string &param2, const std::string &param3) const
 
void checkBlockwiseConsistency (const std::string &block_param_name, const std::vector< std::string > &parameter_names) const
 
bool parameterConsistent (const InputParameters &other_param, const std::string &param_name) const
 
void warnInconsistent (const InputParameters &parameters, const std::string &param_name) const
 
void errorDependentParameter (const std::string &param1, const std::string &value_not_set, const std::vector< std::string > &dependent_params) const
 
void errorInconsistentDependentParameter (const std::string &param1, const std::string &value_set, const std::vector< std::string > &dependent_params) const
 

Static Protected Member Functions

static std::string meshPropertyName (const std::string &data_name, const std::string &prefix)
 

Protected Attributes

const MooseEnum _turbulence_model
 Turbulence model to create the equation(s) for.
 
bool _has_flow_equations
 
bool _has_energy_equation
 
bool _has_scalar_equations
 
const WCNSFVFluidHeatTransferPhysicsBase * _fluid_energy_physics
 The heat advection physics to add turbulent mixing for.
 
const WCNSFVScalarTransportPhysicsBase * _scalar_transport_physics
 The scalar advection physics to add turbulent mixing for.
 
std::vector< BoundaryName > _turbulence_walls
 List of boundaries to act as walls for turbulence models.
 
MooseEnum _wall_treatment_eps
 Turbulence wall treatment for epsilon (same for all walls currently)
 
MooseEnum _wall_treatment_temp
 Turbulence wall treatment for temperature (same for all walls currently)
 
const VariableName _tke_name
 Name of the turbulent kinetic energy.
 
const VariableName _tked_name
 Name of the turbulent kinetic energy dissipation.
 
const VariableName _turbulent_viscosity_name = NS::mu_t
 Name of the turbulence viscosity auxiliary variable (or property)
 
bool _define_variables
 Whether to define variables if they do not exist.
 
std::vector< SolverSystemName > _system_names
 
std::vector< unsigned int > _system_numbers
 
const bool _verbose
 
const MooseEnum & _preconditioning
 
std::vector< SubdomainName > _blocks
 
std::string _registered_identifier
 
std::string _specific_task_name
 
std::set< std::string > _all_tasks
 
ActionWarehouse & _awh
 
const std::string & _current_task
 
std::shared_ptr< MooseMesh > & _mesh
 
std::shared_ptr< MooseMesh > & _displaced_mesh
 
std::shared_ptr< FEProblemBase > & _problem
 
PerfID _act_timer
 
MooseApp & _app
 
Factory & _factory
 
ActionFactory & _action_factory
 
const std::string & _type
 
const std::string & _name
 
const InputParameters & _pars
 
MooseApp & _pg_moose_app
 
const std::string _prefix
 
const Parallel::Communicator & _communicator
 
const NavierStokesPhysicsBase * _advection_physics
 The Physics class using this helper.
 
const WCNSFVFlowPhysicsBase * _flow_equations_physics
 Flow physics.
 
const WCNSFVTurbulencePhysicsBase * _turbulence_physics
 Turbulence.
 
bool _has_turbulence_model
 Because of the Modules/navierStokesFV syntax, a turbulence physics often exists without a model we save (_turbulence_physics && _turbulence_physics->hasTurbulenceModel()) in this attribute.
 
const MooseEnum _compressibility
 Compressibility type, can be compressible, incompressible or weakly-compressible.
 
const bool _porous_medium_treatment
 Switch to show if porous medium treatment is requested or not.
 
const std::vector< std::string > _velocity_names
 Velocity names.
 
const NonlinearVariableName _pressure_name
 Pressure name.
 
const MooseFunctorName _density_name
 Name of the density material property.
 
const MooseFunctorName _dynamic_viscosity_name
 Name of the dynamic viscosity material property.
 
const MooseEnum _velocity_interpolation
 The velocity / momentum face interpolation method for advecting other quantities.
 

Private Member Functions

virtual void addSolverVariables () override
 
virtual void addAuxiliaryVariables () override
 
virtual void addFVKernels () override
 
virtual void addFVBCs () override
 
virtual void addAuxiliaryKernels () override
 
virtual void addMaterials () override
 
void addFlowTurbulenceKernels ()
 Functions adding kernels for turbulence in the other equation(s)
 
void addFluidEnergyTurbulenceKernels ()
 
void addScalarAdvectionTurbulenceKernels ()
 
void addAxisymmetricTurbulentViscousSource ()
 
void addKEpsilonTimeDerivatives ()
 Functions adding kernels for the k-epsilon to the k-epsilon equations.
 
void addKEpsilonAdvection ()
 
void addKEpsilonDiffusion ()
 
void addKEpsilonSink ()
 
virtual void addRelationshipManagers (Moose::RelationshipManagerType input_rm_type) override
 
bool addRelationshipManagers (Moose::RelationshipManagerType when_type, const InputParameters &moose_object_pars)
 
virtual void addRelationshipManagers (Moose::RelationshipManagerType when_type)
 
void initializePhysics ()
 
virtual void checkIntegrityEarly () const
 
virtual void addFEKernels ()
 
virtual void addFVInterpolationMethods ()
 
virtual void addNodalKernels ()
 
virtual void addDiracKernels ()
 
virtual void addDGKernels ()
 
virtual void addScalarKernels ()
 
virtual void addInterfaceKernels ()
 
virtual void addFVInterfaceKernels ()
 
virtual void addFEBCs ()
 
virtual void addNodalBCs ()
 
virtual void addPeriodicBCs ()
 
virtual void addFunctions ()
 
virtual void addFunctorMaterials ()
 
virtual void addUserObjects ()
 
virtual void addCorrectors ()
 
virtual void addMultiApps ()
 
virtual void addTransfers ()
 
virtual void addPostprocessors ()
 
virtual void addVectorPostprocessors ()
 
virtual void addReporters ()
 
virtual void addOutputs ()
 
virtual void addPreconditioning ()
 
virtual void addExecutioner ()
 
virtual void addExecutors ()
 
void checkRequiredTasks () const
 
bool addRelationshipManager (Moose::RelationshipManagerType input_rm_type, const InputParameters &moose_object_pars, std::string rm_name, Moose::RelationshipManagerType rm_type, Moose::RelationshipManagerInputParameterCallback rm_input_parameter_func, Moose::RMSystemType sys_type=Moose::RMSystemType::NONE)
 
virtual std::string meshPropertyPrefix (const std::string &data_name) const
 
const RestartableDataValue & getMeshPropertyInternal (const std::string &data_name, const std::string &prefix) const
 
void mooseErrorInternal (Args &&... args) const
 
const T & forwardGetParam (const std::string &param_name) const
 
const InputParameters & forwardParameters () const
 
bool forwardIsParamSetByUser (const std::string &param_name) const
 
bool forwardIsParamValid (const std::string &param_name) const
 
void forwardParamError (Args &&... args) const
 
void forwardMooseError (Args &&... args) const
 
void forwardMooseWarning (Args &&... args) const
 
const std::string & forwardType () const
 
virtual const std::string & forwardName () const
 
const std::vector< SubdomainName > & forwardBlocks () const
 

Static Private Member Functions

static const hit::Node * getHitNode (const InputParameters &params)
 
static std::string messagePrefix (const InputParameters &params, const bool hit_prefix)
 

Private Attributes

const VariableName _mixing_length_name
 Name of the mixing length auxiliary variable.
 
MooseEnum _is_transient
 
std::vector< VariableName > _solver_var_names
 
std::vector< VariableName > _aux_var_names
 
unsigned int _dim
 
std::set< std::string > _required_tasks
 
const ParallelParamObject & _parent
 
MooseApp & _meta_data_app
 
const MooseObject *const _meta_data_object
 
const MooseBase & _si_moose_base
 
const FEProblemBase * _si_problem
 
const PhysicsBase *const _customer_class
 

Detailed Description

Creates all the objects needed to add a turbulence model to an incompressible / weakly-compressible Navier Stokes finite volume flow simulation.

Definition at line 19 of file WCNSFVTurbulencePhysics.h.

Constructor & Destructor Documentation

◆ WCNSFVTurbulencePhysics()

WCNSFVTurbulencePhysics::WCNSFVTurbulencePhysics ( const InputParameters &  parameters)

Definition at line 66 of file WCNSFVTurbulencePhysics.C.

68 _mixing_length_name(getParam<AuxVariableName>("mixing_length_name"))
69{
70 // Keep track of the variable names, for loading variables from files notably
71 if (_turbulence_model == "mixing-length")
73
74 // Parameter checks
75 if (_turbulence_model != "mixing-length")
76 errorDependentParameter("turbulence_handling",
77 "mixing-length",
78 {"mixing_length_delta",
79 "mixing_length_aux_execute_on",
80 "von_karman_const",
81 "von_karman_const_0",
82 "mixing_length_two_term_bc_expansion"});
83}
void errorDependentParameter(const std::string &param1, const std::string &value_not_set, const std::vector< std::string > &dependent_params) const
const InputParameters & parameters() const
void saveAuxVariableName(const VariableName &var_name)
Base class for a Physics that creates all the objects needed to add a turbulence model to an incompre...
const MooseEnum _turbulence_model
Turbulence model to create the equation(s) for.
const VariableName _mixing_length_name
Name of the mixing length auxiliary variable.

Member Function Documentation

◆ actOnAdditionalTasks()

void WCNSFVTurbulencePhysicsBase::actOnAdditionalTasks ( )
overrideprotectedvirtualinherited

Reimplemented from PhysicsBase.

Definition at line 205 of file WCNSFVTurbulencePhysicsBase.C.

206{
207 // Other Physics may not exist or be initialized at construction time, so
208 // we retrieve them now, on this task which occurs after 'init_physics'
209 if (_current_task == "get_turbulence_physics")
211}
const std::string & _current_task
void retrieveCoupledPhysics()
Retrieve the other WCNSFVPhysics at play in the simulation to be able to add the relevant terms (turb...

◆ addAuxiliaryKernels()

void WCNSFVTurbulencePhysics::addAuxiliaryKernels ( )
overrideprivatevirtual

Reimplemented from WCNSFVTurbulencePhysicsBase.

Definition at line 508 of file WCNSFVTurbulencePhysics.C.

509{
511
512 // Note that if we are restarting this will overwrite the restarted mixing-length
513 if (_turbulence_model == "mixing-length")
514 {
515 const std::string ml_kernel_type = "WallDistanceMixingLengthAux";
516 InputParameters ml_params = getFactory().getValidParams(ml_kernel_type);
517 assignBlocks(ml_params, _blocks);
518 ml_params.set<AuxVariableName>("variable") = _mixing_length_name;
519 ml_params.set<std::vector<BoundaryName>>("walls") = _turbulence_walls;
520 if (parameters().isParamValid("mixing_length_aux_execute_on"))
521 ml_params.set<ExecFlagEnum>("execute_on") =
522 getParam<ExecFlagEnum>("mixing_length_aux_execute_on");
523 else
524 ml_params.set<ExecFlagEnum>("execute_on") = {EXEC_INITIAL, EXEC_TIMESTEP_END};
525 ml_params.set<MooseFunctorName>("von_karman_const") =
526 getParam<MooseFunctorName>("von_karman_const");
527 ml_params.set<MooseFunctorName>("von_karman_const_0") =
528 getParam<MooseFunctorName>("von_karman_const_0");
529 ml_params.set<MooseFunctorName>("delta") = getParam<MooseFunctorName>("mixing_length_delta");
530
531 getProblem().addAuxKernel(ml_kernel_type, prefix() + "mixing_length_aux ", ml_params);
532 }
533}
const ExecFlagType EXEC_TIMESTEP_END
const ExecFlagType EXEC_INITIAL
virtual void addAuxKernel(const std::string &kernel_name, const std::string &name, InputParameters &parameters)
InputParameters getValidParams(const std::string &name) const
T & set(const std::string &name, bool quiet_mode=false)
bool isParamValid(const std::string &name) const
virtual FEProblemBase & getProblem()
Factory & getFactory()
void assignBlocks(InputParameters &params, const std::vector< SubdomainName > &blocks) const
std::string prefix() const
std::vector< SubdomainName > _blocks
std::vector< BoundaryName > _turbulence_walls
List of boundaries to act as walls for turbulence models.
virtual void addAuxiliaryKernels() override

◆ addAuxiliaryVariables()

void WCNSFVTurbulencePhysics::addAuxiliaryVariables ( )
overrideprivatevirtual

Reimplemented from WCNSFVTurbulencePhysicsBase.

Definition at line 141 of file WCNSFVTurbulencePhysics.C.

142{
143 if (_turbulence_model == "mixing-length" && _define_variables)
144 {
145 auto params = getFactory().getValidParams("MooseVariableFVReal");
146 if (isParamValid("mixing_length_two_term_bc_expansion"))
147 params.set<bool>("two_term_boundary_expansion") =
148 getParam<bool>("mixing_length_two_term_bc_expansion");
149 if (!shouldCreateVariable(_mixing_length_name, _blocks, /*error if aux*/ false))
150 reportPotentiallyMissedParameters({"mixing_length_two_term_bc_expansion"},
151 "MooseVariableFVReal");
152 else
153 addSharedAuxVariable("MooseVariableFVReal", _mixing_length_name, params);
154 }
156}
bool isParamValid(const std::string &name) const
bool _define_variables
Whether to define variables if they do not exist.
void addSharedAuxVariable(const std::string &var_type, const VariableName &var_name, const InputParameters &params)
void reportPotentiallyMissedParameters(const std::vector< std::string > &param_names, const std::string &object_type, const std::string &object_name="") const
bool shouldCreateVariable(const VariableName &var_name, const std::vector< SubdomainName > &blocks, const bool error_if_aux)
virtual void addAuxiliaryVariables() override

◆ addAxisymmetricTurbulentViscousSource()

void WCNSFVTurbulencePhysics::addAxisymmetricTurbulentViscousSource ( )
private

Definition at line 260 of file WCNSFVTurbulencePhysics.C.

261{
262 if (_turbulence_model == "none")
263 return;
265 return;
267 return;
268
269 const auto rz_blocks = _flow_equations_physics->getAxisymmetricRZBlocks();
270 if (rz_blocks.empty())
271 return;
272
273 const auto radial_index =
275
276 InputParameters params = getFactory().getValidParams("INSFVMomentumViscousSourceRZ");
277 assignBlocks(params, rz_blocks);
278 params.set<MooseFunctorName>(NS::mu) = _turbulent_viscosity_name;
279 params.set<UserObjectName>("rhie_chow_user_object") = _flow_equations_physics->rhieChowUOName();
280 params.set<MooseEnum>("momentum_component") = NS::directions[radial_index];
281 params.set<bool>("complete_expansion") =
283 params.set<NonlinearVariableName>("variable") =
285
286 getProblem().addFVKernel("INSFVMomentumViscousSourceRZ",
287 prefix() + "ins_momentum_turbulent_viscous_source_rz_" +
288 NS::directions[radial_index],
289 params);
290}
virtual MooseMesh & mesh() override
virtual void addFVKernel(const std::string &kernel_name, const std::string &name, InputParameters &parameters)
unsigned int getAxisymmetricRadialCoord() const
const WCNSFVFlowPhysicsBase * _flow_equations_physics
Flow physics.
const std::vector< std::string > & getVelocityNames() const
To interface with other Physics.
std::vector< SubdomainName > getAxisymmetricRZBlocks() const
Return the set of blocks restricted to an RZ coordinate system.
const UserObjectName & rhieChowUOName() const
Return the name of the Rhie Chow user object.
bool addAxisymmetricViscousSourceEnabled() const
Whether the cylindrical viscous source helper is enabled.
bool includeSymmetrizedViscousStress() const
Whether to include the symmetrized contribution in the viscous stress.
const VariableName _turbulent_viscosity_name
Name of the turbulence viscosity auxiliary variable (or property)
static const std::string mu
Definition NS.h:127
static const std::string directions[3]
Definition NS.h:23

Referenced by addFlowTurbulenceKernels().

◆ addFlowTurbulenceKernels()

void WCNSFVTurbulencePhysics::addFlowTurbulenceKernels ( )
private

Functions adding kernels for turbulence in the other equation(s)

Definition at line 184 of file WCNSFVTurbulencePhysics.C.

185{
186 if (_turbulence_model == "mixing-length")
187 {
188 const std::string u_names[3] = {"u", "v", "w"};
189 const std::string kernel_type = "INSFVMixingLengthReynoldsStress";
190 InputParameters params = getFactory().getValidParams(kernel_type);
191 assignBlocks(params, _blocks);
192 params.set<MooseFunctorName>(NS::density) = _density_name;
193 params.set<MooseFunctorName>(NS::mixing_length) = _mixing_length_name;
194
195 std::string kernel_name = prefix() + "ins_momentum_mixing_length_reynolds_stress_";
197 kernel_name = prefix() + "pins_momentum_mixing_length_reynolds_stress_";
198
199 params.set<UserObjectName>("rhie_chow_user_object") = _flow_equations_physics->rhieChowUOName();
200 for (const auto dim_i : make_range(dimension()))
201 params.set<MooseFunctorName>(u_names[dim_i]) = _velocity_names[dim_i];
202
203 for (const auto d : make_range(dimension()))
204 {
205 params.set<NonlinearVariableName>("variable") = _velocity_names[d];
206 params.set<MooseEnum>("momentum_component") = NS::directions[d];
207
208 getProblem().addFVKernel(kernel_type, kernel_name + NS::directions[d], params);
209 }
210 }
211 else if (_turbulence_model == "k-epsilon")
212 {
213 // We rely on using the turbulent viscosity in the flow equation
214 // This check is rudimentary, we should think of a better way
215 // We could also check for the use of 'mu_t' with the right parameters already
217 !MooseUtils::isFloat(_flow_equations_physics->dynamicViscosityName()))
219 "Regular fluid viscosity 'mu' should be used for the momentum diffusion term. You are "
220 "currently using: " +
222
223 const std::string u_names[3] = {"u", "v", "w"};
224 const std::string kernel_type = "INSFVMomentumDiffusion";
225 InputParameters params = getFactory().getValidParams(kernel_type);
226 assignBlocks(params, _blocks);
227 params.set<MooseFunctorName>("mu") = _turbulent_viscosity_name;
228 params.set<MooseEnum>("mu_interp_method") =
229 getParam<MooseEnum>("turbulent_viscosity_interp_method");
230 params.set<MooseEnum>("variable_interp_method") =
232 params.set<bool>("complete_expansion") = true;
234 params.set<bool>("include_isotropic_viscous_stress") = true;
235
236 std::string kernel_name = prefix() + "ins_momentum_k_epsilon_reynolds_stress_";
238 kernel_name = prefix() + "pins_momentum_k_epsilon_reynolds_stress_";
239
240 params.set<UserObjectName>("rhie_chow_user_object") = _flow_equations_physics->rhieChowUOName();
241 for (const auto dim_i : make_range(dimension()))
242 params.set<MooseFunctorName>(u_names[dim_i]) = _velocity_names[dim_i];
243
244 for (const auto d : make_range(dimension()))
245 {
246 params.set<NonlinearVariableName>("variable") = _velocity_names[d];
247 params.set<MooseEnum>("momentum_component") = NS::directions[d];
248
249 getProblem().addFVKernel(kernel_type, kernel_name + NS::directions[d], params);
250 }
251
252 // We only add it here because the mixing length kernels deal with this
253 // withn the kernel. For mixing length see issue: #32112
256 }
257}
void mooseError(Args &&... args) const
unsigned int dimension() const
const std::vector< std::string > _velocity_names
Velocity names.
const bool _porous_medium_treatment
Switch to show if porous medium treatment is requested or not.
const MooseFunctorName _density_name
Name of the density material property.
bool hasFlowEquations() const
Whether the physics is actually creating the flow equations.
bool includeIsotropicStress() const
Whether to include the isotropic viscous stress contribution.
const MooseFunctorName & dynamicViscosityName() const
Return the name of the dynamic viscosity functor.
const MooseEnum & getMomentumFaceInterpolationMethod() const
Get the face interpolation method for momentum (mostly used in the stress terms)
static const std::string mixing_length
Definition NS.h:75
static const std::string density
Definition NS.h:34
IntRange< T > make_range(T beg, T end)

Referenced by addFVKernels().

◆ addFluidEnergyTurbulenceKernels()

void WCNSFVTurbulencePhysics::addFluidEnergyTurbulenceKernels ( )
private

Definition at line 293 of file WCNSFVTurbulencePhysics.C.

294{
295 if (_turbulence_model == "mixing-length")
296 {
297 const std::string u_names[3] = {"u", "v", "w"};
298 const std::string kernel_type = "WCNSFVMixingLengthEnergyDiffusion";
299 InputParameters params = getFactory().getValidParams(kernel_type);
300 assignBlocks(params, _blocks);
301 params.set<MooseFunctorName>(NS::density) = _density_name;
302 params.set<MooseFunctorName>(NS::cp) = _fluid_energy_physics->getSpecificHeatName();
303 params.set<MooseFunctorName>(NS::mixing_length) = _mixing_length_name;
304 params.set<Real>("schmidt_number") = getParam<Real>("turbulent_prandtl");
305 params.set<NonlinearVariableName>("variable") =
307
308 for (const auto dim_i : make_range(dimension()))
309 params.set<MooseFunctorName>(u_names[dim_i]) = _velocity_names[dim_i];
310
313 kernel_type, prefix() + "pins_energy_mixing_length_diffusion", params);
314 else
316 kernel_type, prefix() + "ins_energy_mixing_length_diffusion", params);
317 }
318 else if (_turbulence_model == "k-epsilon")
319 {
320 const std::string kernel_type = "FVDiffusion";
321 const auto T_fluid_name = _flow_equations_physics->getFluidTemperatureName();
322 InputParameters params = getFactory().getValidParams(kernel_type);
323 assignBlocks(params, _blocks);
324 params.set<NonlinearVariableName>("variable") = T_fluid_name;
325 params.set<MooseFunctorName>("coeff") = NS::k_eff_t;
326 getProblem().addFVKernel(kernel_type, prefix() + T_fluid_name + "_turbulent_diffusion", params);
327 }
328}
const NonlinearVariableName & getFluidTemperatureName() const
const MooseFunctorName & getSpecificHeatName() const
Get the name of the specific heat material property.
const WCNSFVFluidHeatTransferPhysicsBase * _fluid_energy_physics
The heat advection physics to add turbulent mixing for.
static const std::string cp
Definition NS.h:125
static const std::string k_eff_t
Definition NS.h:137
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real

Referenced by addFVKernels().

◆ addFVAdvectedInterpolationMethod()

void NavierStokesPhysicsBase::addFVAdvectedInterpolationMethod ( const MooseEnum &  interpolation_method)
protectedinherited

Add the FVInterpolationMethod object for an advected interpolation method if absent.

Definition at line 43 of file NavierStokesPhysicsBase.C.

44{
45 const std::string method_name = interpolation_method;
46 if (getProblem().hasFVInterpolationMethod(method_name))
47 return;
48
49 const auto method_type = NS::fvAdvectedInterpolationMethodType(interpolation_method);
50
51 InputParameters params = getFactory().getValidParams(method_type);
52 getProblem().addFVInterpolationMethod(method_type, method_name, params);
53}
virtual void addFVInterpolationMethod(const std::string &method_type, const std::string &name, InputParameters &parameters)
std::string fvAdvectedInterpolationMethodType(const MooseEnum &interpolation_method)
Gets the FVInterpolationMethod object type for an advected interpolation method.
Definition NSFVUtils.C:67

Referenced by WCNSLinearFVFlowPhysics::addFVInterpolationMethods(), WCNSLinearFVScalarTransportPhysics::addFVInterpolationMethods(), and WCNSLinearFVTurbulencePhysics::addFVInterpolationMethods().

◆ addFVBCs()

void WCNSFVTurbulencePhysics::addFVBCs ( )
overrideprivatevirtual

Implements WCNSFVTurbulencePhysicsBase.

Definition at line 536 of file WCNSFVTurbulencePhysics.C.

537{
538 const std::string u_names[3] = {"u", "v", "w"};
539
540 if (_turbulence_model == "k-epsilon" && getParam<bool>("mu_t_as_aux_variable"))
541 {
542 mooseAssert(_flow_equations_physics, "Should have a flow equation physics");
543 const std::string bc_type = "INSFVTurbulentViscosityWallFunction";
544 InputParameters params = getFactory().getValidParams(bc_type);
545 params.set<std::vector<BoundaryName>>("boundary") = _turbulence_walls;
546 params.set<NonlinearVariableName>("variable") = _turbulent_viscosity_name;
547 params.set<MooseFunctorName>(NS::density) = _flow_equations_physics->densityName();
548 params.set<MooseFunctorName>(NS::mu) = _flow_equations_physics->dynamicViscosityName();
549 params.set<MooseFunctorName>(NS::mu_t) = _turbulent_viscosity_name;
550 params.set<MooseFunctorName>(NS::TKE) = _tke_name;
551 params.set<Real>("C_mu") = getParam<Real>("C_mu");
552 params.set<MooseEnum>("wall_treatment") = _wall_treatment_eps;
553 for (const auto d : make_range(dimension()))
554 params.set<MooseFunctorName>(u_names[d]) = _velocity_names[d];
555
556 getProblem().addFVBC(bc_type, prefix() + "turbulence_walls", params);
557 // Energy wall function boundary conditions are added in the WCNSFVFluidEnergyPhysics
558 // because it facilitates counting the number of walls, specifying energy wall functors
559 // the same way as for boundary conditions
560 }
561}
virtual void addFVBC(const std::string &fv_bc_name, const std::string &name, InputParameters &parameters)
const MooseFunctorName & densityName() const
Return the name of the density functor.
const VariableName _tke_name
Name of the turbulent kinetic energy.
MooseEnum _wall_treatment_eps
Turbulence wall treatment for epsilon (same for all walls currently)
static const std::string mu_t
Definition NS.h:129
static const std::string TKE
Definition NS.h:181

◆ addFVKernels()

void WCNSFVTurbulencePhysics::addFVKernels ( )
overrideprivatevirtual

Implements WCNSFVTurbulencePhysicsBase.

Definition at line 159 of file WCNSFVTurbulencePhysics.C.

160{
161 if (_turbulence_model == "none")
162 return;
163
164 // Turbulence terms in other equations
171
172 // Turbulence models with their own set of equations
173 if (_turbulence_model == "k-epsilon")
174 {
175 if (isTransient())
180 }
181}
bool isTransient() const
void addKEpsilonTimeDerivatives()
Functions adding kernels for the k-epsilon to the k-epsilon equations.
void addFlowTurbulenceKernels()
Functions adding kernels for turbulence in the other equation(s)

◆ addInitialConditions()

void WCNSFVTurbulencePhysicsBase::addInitialConditions ( )
overrideprotectedvirtualinherited

Reimplemented from PhysicsBase.

Definition at line 285 of file WCNSFVTurbulencePhysicsBase.C.

286{
287 if (_turbulence_model == "mixing-length" || _turbulence_model == "none")
288 return;
289 const std::string ic_type = "FVFunctionIC";
290 InputParameters params = getFactory().getValidParams(ic_type);
291
292 // Parameter checking: error if initial conditions are provided but not going to be used
293 if ((getParam<bool>("initialize_variables_from_mesh_file") || !_define_variables) &&
294 ((getParam<bool>("mu_t_as_aux_variable") && isParamValid("initial_mu_t")) ||
295 isParamSetByUser("initial_tke") || isParamSetByUser("initial_tked")))
296 mooseError("inital_mu_t/tke/tked should not be provided if we are restarting from a mesh file "
297 "or not defining variables in the Physics");
298
299 // do not set initial conditions if we are not defining variables
301 return;
302 // on regular restarts (from checkpoint), we obey the user specification of initial conditions
303
304 if (getParam<bool>("mu_t_as_aux_variable"))
305 {
306 const auto rho_name = _flow_equations_physics->densityName();
307 // If the user provided an initial value, we use that
308 if (isParamValid("initial_mu_t"))
309 params.set<FunctionName>("function") = getParam<FunctionName>("initial_mu_t");
310 // If we can compute the initialization value from the user parameters, we do that
311 else if (MooseUtils::isFloat(rho_name) &&
312 MooseUtils::isFloat(getParam<FunctionName>("initial_tke")) &&
313 MooseUtils::isFloat(getParam<FunctionName>("initial_tked")))
314 params.set<FunctionName>("function") =
315 std::to_string(std::atof(rho_name.c_str()) * getParam<Real>("C_mu") *
316 std::pow(std::atof(getParam<FunctionName>("initial_tke").c_str()), 2) /
317 std::atof(getParam<FunctionName>("initial_tked").c_str()));
318 else
319 paramError("initial_mu_t",
320 "Initial turbulent viscosity should be provided. A sensible value is "
321 "rho * C_mu TKE_initial^2 / TKED_initial");
322
323 params.set<VariableName>("variable") = _turbulent_viscosity_name;
324 // Always obey the user specification of an initial condition
326 _blocks,
327 /*whether IC is a default*/ !isParamSetByUser("initial_mu_t"),
328 /*error if already an IC*/ isParamSetByUser("initial_mu_t")))
329 getProblem().addFVInitialCondition(ic_type, prefix() + "initial_mu_turb", params);
330 }
331 else if (isParamSetByUser("initial_mu_t"))
332 paramError("initial_mu_t",
333 "This parameter can only be specified if 'mu_t_as_aux_variable=true'");
334
335 params.set<VariableName>("variable") = _tke_name;
336 params.set<FunctionName>("function") = getParam<FunctionName>("initial_tke");
338 _blocks,
339 /*whether IC is a default*/ !isParamSetByUser("initial_tke"),
340 /*error if already an IC*/ isParamSetByUser("initial_tke")))
341 getProblem().addFVInitialCondition(ic_type, prefix() + "initial_tke", params);
342 params.set<VariableName>("variable") = _tked_name;
343 params.set<FunctionName>("function") = getParam<FunctionName>("initial_tked");
345 _blocks,
346 /*whether IC is a default*/ !isParamSetByUser("initial_tked"),
347 /*error if already an IC*/ isParamSetByUser("initial_tked")))
348 getProblem().addFVInitialCondition(ic_type, prefix() + "initial_tked", params);
349}
virtual void addFVInitialCondition(const std::string &ic_name, const std::string &name, InputParameters &parameters)
void paramError(const std::string &param, Args... args) const
bool isParamSetByUser(const std::string &name) const
bool shouldCreateIC(const VariableName &var_name, const std::vector< SubdomainName > &blocks, const bool ic_is_default_ic, const bool error_if_already_defined) const
const VariableName _tked_name
Name of the turbulent kinetic energy dissipation.

◆ addKEpsilonAdvection()

void WCNSFVTurbulencePhysics::addKEpsilonAdvection ( )
private

Definition at line 398 of file WCNSFVTurbulencePhysics.C.

399{
400 const std::string kernel_type = "INSFVTurbulentAdvection";
401 InputParameters params = getFactory().getValidParams(kernel_type);
402
403 assignBlocks(params, _blocks);
404
405 params.set<MooseEnum>("velocity_interp_method") = _velocity_interpolation;
406 params.set<UserObjectName>("rhie_chow_user_object") = _flow_equations_physics->rhieChowUOName();
407 params.set<MooseFunctorName>(NS::density) = _flow_equations_physics->densityName();
408 params.set<bool>("neglect_advection_derivatives") =
409 getParam<bool>("neglect_advection_derivatives");
410
411 params.set<MooseEnum>("advected_interp_method") =
412 getParam<MooseEnum>("tke_advection_interpolation");
413 params.set<NonlinearVariableName>("variable") = _tke_name;
414 getProblem().addFVKernel(kernel_type, prefix() + "tke_advection", params);
415 params.set<NonlinearVariableName>("variable") = _tked_name;
416 params.set<std::vector<BoundaryName>>("walls") = _turbulence_walls;
417 params.set<MooseEnum>("advected_interp_method") =
418 getParam<MooseEnum>("tked_advection_interpolation");
419 getProblem().addFVKernel(kernel_type, prefix() + "tked_advection", params);
420}
const MooseEnum _velocity_interpolation
The velocity / momentum face interpolation method for advecting other quantities.

Referenced by addFVKernels().

◆ addKEpsilonDiffusion()

void WCNSFVTurbulencePhysics::addKEpsilonDiffusion ( )
private

Definition at line 423 of file WCNSFVTurbulencePhysics.C.

424{
425 {
426 const std::string kernel_type = "INSFVTurbulentDiffusion";
427 InputParameters params = getFactory().getValidParams(kernel_type);
428 assignBlocks(params, _blocks);
429
430 params.set<NonlinearVariableName>("variable") = _tke_name;
431 params.set<MooseFunctorName>("coeff") = _flow_equations_physics->dynamicViscosityName();
432 getProblem().addFVKernel(kernel_type, prefix() + "tke_diffusion_mu", params);
433
434 params.set<std::vector<BoundaryName>>("walls") = _turbulence_walls;
435 params.set<NonlinearVariableName>("variable") = _tked_name;
436 getProblem().addFVKernel(kernel_type, prefix() + "tked_diffusion_mu", params);
437 }
438
439 {
440 const std::string kernel_type = "INSFVTurbulentDiffusion";
441 InputParameters params = getFactory().getValidParams(kernel_type);
442 assignBlocks(params, _blocks);
443
444 params.set<NonlinearVariableName>("variable") = _tke_name;
445 params.set<MooseFunctorName>("coeff") = _turbulent_viscosity_name;
446 params.set<MooseFunctorName>("scaling_coef") = getParam<MooseFunctorName>("sigma_k");
447 params.set<MooseEnum>("coeff_interp_method") =
448 getParam<MooseEnum>("turbulent_viscosity_interp_method");
449 getProblem().addFVKernel(kernel_type, prefix() + "tke_diffusion_mu_turb", params);
450
451 params.set<std::vector<BoundaryName>>("walls") = _turbulence_walls;
452 params.set<NonlinearVariableName>("variable") = _tked_name;
453 params.set<MooseFunctorName>("scaling_coef") = getParam<MooseFunctorName>("sigma_eps");
454 getProblem().addFVKernel(kernel_type, prefix() + "tked_diffusion_mu_turb", params);
455 }
456}

Referenced by addFVKernels().

◆ addKEpsilonSink()

void WCNSFVTurbulencePhysics::addKEpsilonSink ( )
private

Definition at line 459 of file WCNSFVTurbulencePhysics.C.

460{
461 const std::string u_names[3] = {"u", "v", "w"};
462 {
463 const std::string kernel_type = "INSFVTKESourceSink";
464 InputParameters params = getFactory().getValidParams(kernel_type);
465 assignBlocks(params, _blocks);
466 params.set<NonlinearVariableName>("variable") = _tke_name;
467 params.set<MooseFunctorName>(NS::TKED) = _tked_name;
468 params.set<MooseFunctorName>(NS::density) = _flow_equations_physics->densityName();
469 params.set<MooseFunctorName>(NS::mu) = _flow_equations_physics->dynamicViscosityName();
470 params.set<MooseFunctorName>(NS::mu_t) = _turbulent_viscosity_name;
471 params.set<Real>("C_mu") = getParam<Real>("C_mu");
472 params.set<Real>("C_pl") = getParam<Real>("C_pl");
473 params.set<bool>("linearized_model") = getParam<bool>("linearize_sink_sources");
474 params.set<std::vector<BoundaryName>>("walls") = _turbulence_walls;
475 params.set<MooseEnum>("wall_treatment") = _wall_treatment_eps;
476 // Currently only Newton method for WCNSFVTurbulencePhysics
477 params.set<bool>("newton_solve") = true;
478 for (const auto d : make_range(dimension()))
479 params.set<MooseFunctorName>(u_names[d]) = _velocity_names[d];
480 getProblem().addFVKernel(kernel_type, prefix() + "tke_source_sink", params);
481 }
482
483 {
484 const std::string kernel_type = "INSFVTKEDSourceSink";
485 InputParameters params = getFactory().getValidParams(kernel_type);
486 assignBlocks(params, _blocks);
487 params.set<NonlinearVariableName>("variable") = _tked_name;
488 params.set<MooseFunctorName>(NS::TKE) = _tke_name;
489 params.set<MooseFunctorName>(NS::density) = _flow_equations_physics->densityName();
490 params.set<MooseFunctorName>(NS::mu) = _flow_equations_physics->dynamicViscosityName();
491 params.set<MooseFunctorName>(NS::mu_t) = _turbulent_viscosity_name;
492 params.set<Real>("C_mu") = getParam<Real>("C_mu");
493 params.set<Real>("C_pl") = getParam<Real>("C_pl");
494 params.set<bool>("linearized_model") = getParam<bool>("linearize_sink_sources");
495 params.set<std::vector<BoundaryName>>("walls") = _turbulence_walls;
496 params.set<MooseEnum>("wall_treatment") = _wall_treatment_eps;
497 params.set<MooseFunctorName>("C1_eps") = getParam<MooseFunctorName>("C1_eps");
498 params.set<MooseFunctorName>("C2_eps") = getParam<MooseFunctorName>("C2_eps");
499 // Currently only Newton method for WCNSFVTurbulencePhysics
500 params.set<bool>("newton_solve") = true;
501 for (const auto d : make_range(dimension()))
502 params.set<MooseFunctorName>(u_names[d]) = _velocity_names[d];
503 getProblem().addFVKernel(kernel_type, prefix() + "tked_source_sink", params);
504 }
505}
static const std::string TKED
Definition NS.h:182

Referenced by addFVKernels().

◆ addKEpsilonTimeDerivatives()

void WCNSFVTurbulencePhysics::addKEpsilonTimeDerivatives ( )
private

Functions adding kernels for the k-epsilon to the k-epsilon equations.

Definition at line 383 of file WCNSFVTurbulencePhysics.C.

384{
385 const std::string kernel_type = "FVFunctorTimeKernel";
386 InputParameters params = getFactory().getValidParams(kernel_type);
387 assignBlocks(params, _blocks);
388
389 params.set<NonlinearVariableName>("variable") = _tke_name;
390 if (shouldCreateTimeDerivative(_tke_name, _blocks, /*error if already defined*/ false))
391 getProblem().addFVKernel(kernel_type, prefix() + "tke_time", params);
392 params.set<NonlinearVariableName>("variable") = _tked_name;
393 if (shouldCreateTimeDerivative(_tked_name, _blocks, /*error if already defined*/ false))
394 getProblem().addFVKernel(kernel_type, prefix() + "tked_time", params);
395}
bool shouldCreateTimeDerivative(const VariableName &var_name, const std::vector< SubdomainName > &blocks, const bool error_if_already_defined) const

Referenced by addFVKernels().

◆ addMaterials()

void WCNSFVTurbulencePhysics::addMaterials ( )
overrideprivatevirtual

Reimplemented from WCNSFVTurbulencePhysicsBase.

Definition at line 564 of file WCNSFVTurbulencePhysics.C.

565{
566 if (_turbulence_model == "mixing-length")
567 {
568 const std::string u_names[3] = {"u", "v", "w"};
569 InputParameters params =
570 getFactory().getValidParams("MixingLengthTurbulentViscosityFunctorMaterial");
571 assignBlocks(params, _blocks);
572
573 for (const auto d : make_range(dimension()))
574 params.set<MooseFunctorName>(u_names[d]) = _velocity_names[d];
575
576 params.set<MooseFunctorName>(NS::mixing_length) = _mixing_length_name;
577 params.set<MooseFunctorName>(NS::density) = _density_name;
578 params.set<MooseFunctorName>(NS::mu) = _dynamic_viscosity_name;
579
580 getProblem().addMaterial("MixingLengthTurbulentViscosityFunctorMaterial",
581 prefix() + "mixing_length_material",
582 params);
583 }
585}
virtual void addMaterial(const std::string &material_name, const std::string &name, InputParameters &parameters)
const MooseFunctorName _dynamic_viscosity_name
Name of the dynamic viscosity material property.

◆ addScalarAdvectionTurbulenceKernels()

void WCNSFVTurbulencePhysics::addScalarAdvectionTurbulenceKernels ( )
private

Definition at line 331 of file WCNSFVTurbulencePhysics.C.

332{
333 const auto & passive_scalar_names = _scalar_transport_physics->getAdvectedScalarNames();
334 const auto & passive_scalar_schmidt_number = getParam<std::vector<Real>>("Sc_t");
335 if (passive_scalar_schmidt_number.size() != passive_scalar_names.size() &&
336 passive_scalar_schmidt_number.size() != 1)
338 "Sc_t",
339 "The number of turbulent Schmidt numbers defined is not equal to the number of passive "
340 "scalar fields!");
341
342 if (_turbulence_model == "mixing-length")
343 {
344 const std::string u_names[3] = {"u", "v", "w"};
345 const std::string kernel_type = "INSFVMixingLengthScalarDiffusion";
346 InputParameters params = getFactory().getValidParams(kernel_type);
347 assignBlocks(params, _blocks);
348 params.set<MooseFunctorName>(NS::mixing_length) = _mixing_length_name;
349 for (const auto dim_i : make_range(dimension()))
350 params.set<MooseFunctorName>(u_names[dim_i]) = _velocity_names[dim_i];
351
352 for (const auto & name_i : index_range(passive_scalar_names))
353 {
354 params.set<NonlinearVariableName>("variable") = passive_scalar_names[name_i];
355 if (passive_scalar_schmidt_number.size() > 1)
356 params.set<Real>("schmidt_number") = passive_scalar_schmidt_number[name_i];
357 else if (passive_scalar_schmidt_number.size() == 1)
358 params.set<Real>("schmidt_number") = passive_scalar_schmidt_number[0];
359 else
360 params.set<Real>("schmidt_number") = 1.0;
361
363 kernel_type, prefix() + passive_scalar_names[name_i] + "_mixing_length", params);
364 }
365 }
366 else if (_turbulence_model == "k-epsilon")
367 {
368 const std::string kernel_type = "FVDiffusion";
369 InputParameters params = getFactory().getValidParams(kernel_type);
370 assignBlocks(params, _blocks);
371
372 for (const auto & name_i : index_range(passive_scalar_names))
373 {
374 params.set<NonlinearVariableName>("variable") = passive_scalar_names[name_i];
375 params.set<MooseFunctorName>("coeff") = NS::mu_t_passive_scalar;
377 kernel_type, prefix() + passive_scalar_names[name_i] + "_turbulent_diffusion", params);
378 }
379 }
380}
const std::vector< NonlinearVariableName > & getAdvectedScalarNames() const
Get the names of the advected scalar quantity variables.
const WCNSFVScalarTransportPhysicsBase * _scalar_transport_physics
The scalar advection physics to add turbulent mixing for.
static const std::string mu_t_passive_scalar
Definition NS.h:131
auto index_range(const T &sizable)

Referenced by addFVKernels().

◆ addSolverVariables()

void WCNSFVTurbulencePhysics::addSolverVariables ( )
overrideprivatevirtual

Implements WCNSFVTurbulencePhysicsBase.

Definition at line 93 of file WCNSFVTurbulencePhysics.C.

94{
95 if (_turbulence_model == "mixing-length" || _turbulence_model == "none")
96 return;
97 else if (_turbulence_model == "k-epsilon")
98 {
99 // Dont add if the user already defined the variable
100 // Add turbulent kinetic energy variable
101 if (!shouldCreateVariable(_tke_name, _blocks, /*error if aux*/ true))
103 {"system_names", "tke_scaling", "tke_face_interpolation", "tke_two_term_bc_expansion"},
104 "INSFVEnergyVariable");
105 else if (_define_variables)
106 {
107 auto params = getFactory().getValidParams("INSFVEnergyVariable");
108 params.set<std::vector<Real>>("scaling") = {getParam<Real>("tke_scaling")};
109 params.set<MooseEnum>("face_interp_method") = getParam<MooseEnum>("tke_face_interpolation");
110 params.set<bool>("two_term_boundary_expansion") = getParam<bool>("tke_two_term_bc_expansion");
111
112 addSharedSolverVariable("INSFVEnergyVariable", _tke_name, params);
113 }
114 else
115 paramError("turbulence_kinetic_energy_variable",
116 "Variable (" + _tke_name +
117 ") supplied to the WCNSFVTurbulencePhysics does not exist!");
118
119 // Add turbulent kinetic energy dissipation variable
120 if (!shouldCreateVariable(_tked_name, _blocks, /*error if aux*/ true))
122 {"system_names", "tked_scaling", "tked_face_interpolation", "tked_two_term_bc_expansion"},
123 "INSFVEnergyVariable");
124 else if (_define_variables)
125 {
126 auto params = getFactory().getValidParams("INSFVEnergyVariable");
127 params.set<std::vector<Real>>("scaling") = {getParam<Real>("tked_scaling")};
128 params.set<MooseEnum>("face_interp_method") = getParam<MooseEnum>("tked_face_interpolation");
129 params.set<bool>("two_term_boundary_expansion") =
130 getParam<bool>("tked_two_term_bc_expansion");
131 addSharedSolverVariable("INSFVEnergyVariable", _tked_name, params);
132 }
133 else
134 paramError("turbulence_kinetic_energy_dissipation_variable",
135 "Variable (" + _tked_name +
136 ") supplied to the WCNSFVTurbulencePhysics does not exist!");
137 }
138}
void addSharedSolverVariable(const std::string &var_type, const VariableName &var_name, InputParameters params)

◆ densityName()

const MooseFunctorName & WCNSFVCoupledAdvectionPhysicsHelper::densityName ( ) const
inlineinherited

◆ dynamicViscosityName()

const MooseFunctorName & WCNSFVCoupledAdvectionPhysicsHelper::dynamicViscosityName ( ) const
inlineinherited

Definition at line 37 of file WCNSFVCoupledAdvectionPhysicsHelper.h.

◆ getAdditionalRMParams()

InputParameters NavierStokesPhysicsBase::getAdditionalRMParams ( ) const
overrideprotectedvirtualinherited

Parameters to change or add relationship managers.

Reimplemented from PhysicsBase.

Definition at line 56 of file NavierStokesPhysicsBase.C.

57{
58 unsigned short necessary_layers = getParam<unsigned short>("ghost_layers");
59 necessary_layers = std::max(necessary_layers, getNumberAlgebraicGhostingLayersNeeded());
60
61 // Just an object that has a ghost_layers parameter
62 const std::string kernel_type = "INSFVMixingLengthReynoldsStress";
63 InputParameters params = getFactory().getValidParams(kernel_type);
64 params.template set<unsigned short>("ghost_layers") = necessary_layers;
65
66 return params;
67}
virtual unsigned short getNumberAlgebraicGhostingLayersNeeded() const =0
Return the number of ghosting layers needed.

◆ getCoupledFlowPhysics()

const WCNSFVFlowPhysicsBase * WCNSFVCoupledAdvectionPhysicsHelper::getCoupledFlowPhysics ( ) const
inherited

Definition at line 53 of file WCNSFVCoupledAdvectionPhysicsHelper.C.

54{
55 // User passed it, just use that
56 if (_advection_physics->isParamValid("coupled_flow_physics"))
58 _advection_physics->getParam<PhysicsName>("coupled_flow_physics"));
59 // Look for any physics of the right type, and check the block restriction
60 else
61 {
62 const auto all_flow_physics =
64 for (const auto physics : all_flow_physics)
65 if (_advection_physics->checkBlockRestrictionIdentical(
66 physics->name(), physics->blocks(), /*error_if_not_identical=*/false))
67 {
68 return physics;
69 }
70 }
71 mooseError("No coupled flow Physics found of type derived from 'WCNSFVFlowPhysicsBase'. Use the "
72 "'coupled_flow_physics' parameter to give the name of the desired "
73 "WCNSFVFlowPhysicsBase-derived Physics to couple with");
74}
void mooseError(Args &&... args)
char ** blocks
const std::string name
Definition Setup.h:21
const T & getParam(const std::string &name) const
const T * getCoupledPhysics(const PhysicsName &phys_name, const bool allow_fail=false) const
const NavierStokesPhysicsBase * _advection_physics
The Physics class using this helper.
Base class for Physics which create the Navier Stokes flow equations.
if(subdm)

◆ getCoupledTurbulencePhysics()

const WCNSFVTurbulencePhysicsBase * WCNSFVCoupledAdvectionPhysicsHelper::getCoupledTurbulencePhysics ( ) const
inherited

Definition at line 77 of file WCNSFVCoupledAdvectionPhysicsHelper.C.

78{
79 // User passed it, just use that
80 if (_advection_physics->isParamValid("coupled_turbulence_physics"))
82 _advection_physics->getParam<PhysicsName>("coupled_turbulence_physics"));
83 // Look for any physics of the right type, and check the block restriction
84 else
85 {
86 const auto all_turbulence_physics =
88 for (const auto physics : all_turbulence_physics)
89 if (_advection_physics->checkBlockRestrictionIdentical(
90 physics->name(), physics->blocks(), /*error_if_not_identical=*/false))
91 return physics;
92 }
93 // Did not find one
94 return nullptr;
95}

Referenced by WCNSFVFluidHeatTransferPhysicsBase::actOnAdditionalTasks(), and WCNSFVScalarTransportPhysicsBase::actOnAdditionalTasks().

◆ getNumberAlgebraicGhostingLayersNeeded()

unsigned short WCNSFVTurbulencePhysics::getNumberAlgebraicGhostingLayersNeeded ( ) const
overrideprotectedvirtual

Return the number of ghosting layers needed.

Implements NavierStokesPhysicsBase.

Definition at line 588 of file WCNSFVTurbulencePhysics.C.

589{
591 // due to the computation of the eddy-diffusivity from the strain tensor
592 if (_turbulence_model == "mixing-length")
593 ghost_layers = std::max(ghost_layers, (unsigned short)3);
594 return ghost_layers;
595}
unsigned short getNumberAlgebraicGhostingLayersNeeded() const override
Return the number of algebraic ghosting layers needed.

◆ getPorosityFunctorName()

MooseFunctorName WCNSFVCoupledAdvectionPhysicsHelper::getPorosityFunctorName ( bool  smoothed) const
inherited

Return the porosity functor name.

It is important to forward to the Physics so we do not get the smoothing status wrong

Definition at line 47 of file WCNSFVCoupledAdvectionPhysicsHelper.C.

48{
50}
MooseFunctorName getPorosityFunctorName(const bool smoothed) const

◆ hasTurbulenceModel()

bool WCNSFVTurbulencePhysicsBase::hasTurbulenceModel ( ) const
inlineinherited

◆ initializePhysicsAdditional()

void WCNSFVTurbulencePhysics::initializePhysicsAdditional ( )
overrideprotectedvirtual

Reimplemented from PhysicsBase.

Definition at line 86 of file WCNSFVTurbulencePhysics.C.

87{
88 if (_turbulence_model == "k-epsilon")
89 getProblem().needSolutionState(2, Moose::SolutionIterationType::Nonlinear);
90}
void needSolutionState(unsigned int oldest_needed, Moose::SolutionIterationType iteration_type)

◆ retrieveCoupledPhysics()

void WCNSFVTurbulencePhysicsBase::retrieveCoupledPhysics ( )
protectedinherited

Retrieve the other WCNSFVPhysics at play in the simulation to be able to add the relevant terms (turbulent diffusion notably)

Definition at line 214 of file WCNSFVTurbulencePhysicsBase.C.

215{
216 // _flow_equations_physics is initialized by 'WCNSFVCoupledAdvectionPhysicsHelper'
218 _has_flow_equations = true;
219 else
220 _has_flow_equations = false;
221
222 // Sanity check for interaction for fluid heat transfer physics
223 if (isParamValid("fluid_heat_transfer_physics") && _turbulence_model != "none")
224 {
225 _fluid_energy_physics = getCoupledPhysics<WCNSFVFluidHeatTransferPhysicsBase>(
226 getParam<PhysicsName>("fluid_heat_transfer_physics"), true);
227 // Check for a missing parameter / do not support isolated physics for now
229 !getCoupledPhysics<const WCNSFVFluidHeatTransferPhysicsBase>(true).empty())
230 paramError("fluid_heat_transfer_physics",
231 "We currently do not support creating both turbulence physics and fluid heat "
232 "transfer physics that are not coupled together. Use "
233 "'fluid_heat_transfer_physics' to explicitly specify the coupling");
236 else
237 _has_energy_equation = false;
238 }
239 else
240 {
241 _has_energy_equation = false;
242 _fluid_energy_physics = nullptr;
243 }
244
245 // Sanity check for interaction with scalar transport physics
246 if (isParamValid("scalar_transport_physics") && _turbulence_model != "none")
247 {
248 _scalar_transport_physics = getCoupledPhysics<WCNSFVScalarTransportPhysicsBase>(
249 getParam<PhysicsName>("scalar_transport_physics"), true);
251 !getCoupledPhysics<const WCNSFVScalarTransportPhysicsBase>(true).empty())
253 "scalar_transport_physics",
254 "We currently do not support creating both turbulence physics and scalar transport "
255 "physics that are not coupled together");
258 else
259 _has_scalar_equations = false;
260 }
261 else
262 {
263 _has_scalar_equations = false;
265 }
266
267 // To help remediate the danger of the parameter setup
268 if (_verbose)
269 {
271 mooseInfoRepeated("Coupling turbulence physics with fluid heat transfer physics " +
273 else
274 mooseInfoRepeated("No fluid heat transfer equation considered by this turbulence "
275 "physics.");
277 mooseInfoRepeated("Coupling turbulence physics with scalar transport physics " +
279 else
280 mooseInfoRepeated("No scalar transport equations considered by this turbulence physics.");
281 }
282}
void mooseInfoRepeated(Args &&... args)
const std::string & name() const
const bool _verbose
bool hasEnergyEquation() const
Whether the physics is actually creating the heat equation.
bool hasScalarEquations() const
Whether the physics is actually creating the scalar advection equations.

Referenced by WCNSFVTurbulencePhysicsBase::actOnAdditionalTasks().

◆ tkeName()

MooseFunctorName WCNSFVTurbulencePhysicsBase::tkeName ( ) const
inlineinherited

The name of the turbulent kinetic energy variable.

Definition at line 51 of file WCNSFVTurbulencePhysicsBase.h.

51{ return _tke_name; }

Referenced by WCNSFVFluidHeatTransferPhysics::addEnergyWallBC().

◆ turbulenceEpsilonWallTreatment()

MooseEnum WCNSFVTurbulencePhysicsBase::turbulenceEpsilonWallTreatment ( ) const
inlineinherited

The turbulence epsilon wall treatment (same for all turbulence walls currently)

Definition at line 47 of file WCNSFVTurbulencePhysicsBase.h.

47{ return _wall_treatment_eps; }

◆ turbulenceTemperatureWallTreatment()

MooseEnum WCNSFVTurbulencePhysicsBase::turbulenceTemperatureWallTreatment ( ) const
inlineinherited

The turbulence temperature wall treatment (same for all turbulence walls currently)

Definition at line 49 of file WCNSFVTurbulencePhysicsBase.h.

49{ return _wall_treatment_temp; }
MooseEnum _wall_treatment_temp
Turbulence wall treatment for temperature (same for all walls currently)

Referenced by WCNSFVFluidHeatTransferPhysics::addEnergyWallBC().

◆ turbulenceWalls()

std::vector< BoundaryName > WCNSFVTurbulencePhysicsBase::turbulenceWalls ( ) const
inlineinherited

The names of the boundaries with turbulence wall functions.

Definition at line 45 of file WCNSFVTurbulencePhysicsBase.h.

45{ return _turbulence_walls; }

Referenced by WCNSFVFluidHeatTransferPhysics::addEnergyWallBC().

◆ usingNavierStokesFVSyntax()

bool NavierStokesPhysicsBase::usingNavierStokesFVSyntax ( ) const
inlineprotectedinherited

Detects if we are using the new Physics syntax or the old NavierStokesFV action.

Definition at line 33 of file NavierStokesPhysicsBase.h.

34 {
35 return (parameters().get<std::string>("registered_identifier") == "Modules/NavierStokesFV");
36 }

◆ validParams()

InputParameters WCNSFVTurbulencePhysics::validParams ( )
static

Definition at line 23 of file WCNSFVTurbulencePhysics.C.

24{
27 "Define a turbulence model for a incompressible or weakly-compressible Navier Stokes "
28 "flow with a finite volume discretization");
29
30 // TODO Added to facilitate transition, remove default once NavierStokesFV action is removed
31 params.addParam<AuxVariableName>(
32 "mixing_length_name", "mixing_length", "Name of the mixing length auxiliary variable");
33 params.transferParam<bool>(NSFVBase::validParams(), "mixing_length_two_term_bc_expansion");
34
35 // K-Epsilon numerical scheme parameters
37 "tke_scaling",
38 1.0,
39 "tke_scaling > 0.0",
40 "The scaling factor for the turbulent kinetic energy equation.");
42 "tked_scaling",
43 1.0,
44 "tked_scaling > 0.0",
45 "The scaling factor for the turbulent kinetic energy dissipation equation.");
46
47 // Better Jacobian if not linearizing sink and sources
48 params.addParam<bool>("linearize_sink_sources", false, "Whether to linearize the source term");
49 // Better convergence on some cases when neglecting advection derivatives
50 params.addParam<bool>(
51 "neglect_advection_derivatives",
52 false,
53 "Whether to remove the off-diagonal velocity term in the TKE and TKED advection term");
54 MooseEnum coeff_interp_method("average harmonic", "harmonic");
55 params.addParam<MooseEnum>("turbulent_viscosity_interp_method",
56 coeff_interp_method,
57 "Face interpolation method for the turbulent viscosity");
58
59 params.addParamNamesToGroup("tke_scaling tked_scaling "
60 "turbulent_viscosity_interp_method linearize_sink_sources",
61 "K-Epsilon model numerical");
62
63 return params;
64}
void addParamNamesToGroup(const std::string &space_delim_names, const std::string group_name)
void transferParam(const InputParameters &source_param, const std::string &name, const std::string &new_name="", const std::string &new_description="")
void addParam(const std::string &name, const std::initializer_list< typename T::value_type > &value, const std::string &doc_string)
void addClassDescription(const std::string &doc_string)
void addRangeCheckedParam(const std::string &name, const T &value, const std::string &parsed_function, const std::string &doc_string)
static InputParameters validParams()
Definition NSFVBase.C:378

Member Data Documentation

◆ _advection_physics

const NavierStokesPhysicsBase* WCNSFVCoupledAdvectionPhysicsHelper::_advection_physics
protectedinherited

◆ _compressibility

const MooseEnum WCNSFVCoupledAdvectionPhysicsHelper::_compressibility
protectedinherited

Compressibility type, can be compressible, incompressible or weakly-compressible.

Definition at line 51 of file WCNSFVCoupledAdvectionPhysicsHelper.h.

Referenced by WCNSFVFluidHeatTransferPhysics::addEnergyTimeKernels().

◆ _define_variables

bool NavierStokesPhysicsBase::_define_variables
protectedinherited

◆ _density_name

const MooseFunctorName WCNSFVCoupledAdvectionPhysicsHelper::_density_name
protectedinherited

◆ _dynamic_viscosity_name

const MooseFunctorName WCNSFVCoupledAdvectionPhysicsHelper::_dynamic_viscosity_name
protectedinherited

◆ _flow_equations_physics

const WCNSFVFlowPhysicsBase* WCNSFVCoupledAdvectionPhysicsHelper::_flow_equations_physics
protectedinherited

Flow physics.

Definition at line 43 of file WCNSFVCoupledAdvectionPhysicsHelper.h.

Referenced by WCNSFVTwoPhaseMixturePhysics::addAdvectionSlipTerm(), WCNSFVTurbulencePhysicsBase::addAuxiliaryKernels(), addAxisymmetricTurbulentViscousSource(), WCNSFVFluidHeatTransferPhysics::addEnergyAdvectionKernels(), WCNSLinearFVFluidHeatTransferPhysics::addEnergyAdvectionKernels(), WCNSFVFluidHeatTransferPhysics::addEnergyHeatConductionKernels(), WCNSFVFluidHeatTransferPhysics::addEnergyInletBC(), WCNSLinearFVFluidHeatTransferPhysics::addEnergyInletBC(), WCNSLinearFVFluidHeatTransferPhysics::addEnergyOutletBC(), WCNSFVFluidHeatTransferPhysics::addEnergySeparatorBC(), WCNSFVFluidHeatTransferPhysics::addEnergyTimeKernels(), WCNSFVFluidHeatTransferPhysics::addEnergyWallBC(), WCNSLinearFVFluidHeatTransferPhysics::addEnergyWallBC(), addFlowTurbulenceKernels(), addFluidEnergyTurbulenceKernels(), WCNSFVTwoPhaseMixturePhysics::addFunctorMaterials(), WCNSLinearFVTurbulencePhysics::addFunctorMaterials(), addFVBCs(), WCNSLinearFVTurbulencePhysics::addFVBCs(), WCNSFVTwoPhaseMixturePhysics::addFVKernels(), WCNSLinearFVTwoPhaseMixturePhysics::addFVKernels(), WCNSFVFluidHeatTransferPhysicsBase::addInitialConditions(), WCNSFVTurbulencePhysicsBase::addInitialConditions(), addKEpsilonAdvection(), WCNSLinearFVTurbulencePhysics::addKEpsilonAdvection(), addKEpsilonDiffusion(), addKEpsilonSink(), WCNSLinearFVTurbulencePhysics::addKEpsilonSink(), WCNSLinearFVTurbulencePhysics::addKEpsilonTimeDerivatives(), WCNSFVFluidHeatTransferPhysics::addMaterials(), WCNSFVTurbulencePhysicsBase::addMaterials(), WCNSLinearFVFluidHeatTransferPhysics::addMaterials(), WCNSLinearFVTwoPhaseMixturePhysics::addMaterials(), WCNSFVTwoPhaseMixturePhysics::addPhaseDriftFluxTerm(), WCNSLinearFVTwoPhaseMixturePhysics::addPhaseDriftFluxTerm(), WCNSFVScalarTransportPhysics::addScalarAdvectionKernels(), WCNSLinearFVScalarTransportPhysics::addScalarAdvectionKernels(), WCNSFVScalarTransportPhysics::addScalarInletBC(), WCNSLinearFVScalarTransportPhysics::addScalarInletBC(), WCNSLinearFVScalarTransportPhysics::addScalarOutletBC(), WCNSLinearFVTurbulencePhysics::checkIntegrity(), WCNSLinearFVTwoPhaseMixturePhysics::checkIntegrity(), WCNSFVFluidHeatTransferPhysicsBase::getNumberAlgebraicGhostingLayersNeeded(), WCNSFVScalarTransportPhysicsBase::getNumberAlgebraicGhostingLayersNeeded(), getNumberAlgebraicGhostingLayersNeeded(), WCNSLinearFVTurbulencePhysics::getNumberAlgebraicGhostingLayersNeeded(), WCNSFVCoupledAdvectionPhysicsHelper::getPorosityFunctorName(), WCNSFVTurbulencePhysicsBase::retrieveCoupledPhysics(), WCNSFVFluidHeatTransferPhysicsBase::WCNSFVFluidHeatTransferPhysicsBase(), WCNSFVTwoPhaseMixturePhysics::WCNSFVTwoPhaseMixturePhysics(), WCNSLinearFVScalarTransportPhysics::WCNSLinearFVScalarTransportPhysics(), and WCNSLinearFVTwoPhaseMixturePhysics::WCNSLinearFVTwoPhaseMixturePhysics().

◆ _fluid_energy_physics

const WCNSFVFluidHeatTransferPhysicsBase* WCNSFVTurbulencePhysicsBase::_fluid_energy_physics
protectedinherited

◆ _has_energy_equation

bool WCNSFVTurbulencePhysicsBase::_has_energy_equation
protectedinherited

◆ _has_flow_equations

bool WCNSFVTurbulencePhysicsBase::_has_flow_equations
protectedinherited

◆ _has_scalar_equations

bool WCNSFVTurbulencePhysicsBase::_has_scalar_equations
protectedinherited

◆ _has_turbulence_model

bool WCNSFVCoupledAdvectionPhysicsHelper::_has_turbulence_model
protectedinherited

◆ _mixing_length_name

const VariableName WCNSFVTurbulencePhysics::_mixing_length_name
private

◆ _porous_medium_treatment

const bool WCNSFVCoupledAdvectionPhysicsHelper::_porous_medium_treatment
protectedinherited

◆ _pressure_name

const NonlinearVariableName WCNSFVCoupledAdvectionPhysicsHelper::_pressure_name
protectedinherited

Pressure name.

Definition at line 59 of file WCNSFVCoupledAdvectionPhysicsHelper.h.

◆ _scalar_transport_physics

const WCNSFVScalarTransportPhysicsBase* WCNSFVTurbulencePhysicsBase::_scalar_transport_physics
protectedinherited

The scalar advection physics to add turbulent mixing for.

Definition at line 77 of file WCNSFVTurbulencePhysicsBase.h.

Referenced by WCNSFVTurbulencePhysicsBase::addMaterials(), addScalarAdvectionTurbulenceKernels(), and WCNSFVTurbulencePhysicsBase::retrieveCoupledPhysics().

◆ _tke_name

const VariableName WCNSFVTurbulencePhysicsBase::_tke_name
protectedinherited

◆ _tked_name

const VariableName WCNSFVTurbulencePhysicsBase::_tked_name
protectedinherited

◆ _turbulence_model

const MooseEnum WCNSFVTurbulencePhysicsBase::_turbulence_model
protectedinherited

◆ _turbulence_physics

const WCNSFVTurbulencePhysicsBase* WCNSFVCoupledAdvectionPhysicsHelper::_turbulence_physics
protectedinherited

◆ _turbulence_walls

std::vector<BoundaryName> WCNSFVTurbulencePhysicsBase::_turbulence_walls
protectedinherited

◆ _turbulent_viscosity_name

const VariableName WCNSFVTurbulencePhysicsBase::_turbulent_viscosity_name = NS::mu_t
protectedinherited

◆ _velocity_interpolation

const MooseEnum WCNSFVCoupledAdvectionPhysicsHelper::_velocity_interpolation
protectedinherited

The velocity / momentum face interpolation method for advecting other quantities.

Definition at line 67 of file WCNSFVCoupledAdvectionPhysicsHelper.h.

Referenced by WCNSFVFluidHeatTransferPhysics::addEnergyAdvectionKernels(), addKEpsilonAdvection(), and WCNSFVScalarTransportPhysics::addScalarAdvectionKernels().

◆ _velocity_names

const std::vector<std::string> WCNSFVCoupledAdvectionPhysicsHelper::_velocity_names
protectedinherited

◆ _wall_treatment_eps

MooseEnum WCNSFVTurbulencePhysicsBase::_wall_treatment_eps
protectedinherited

◆ _wall_treatment_temp

MooseEnum WCNSFVTurbulencePhysicsBase::_wall_treatment_temp
protectedinherited

Turbulence wall treatment for temperature (same for all walls currently)

Definition at line 84 of file WCNSFVTurbulencePhysicsBase.h.

Referenced by WCNSFVTurbulencePhysicsBase::turbulenceTemperatureWallTreatment().


The documentation for this class was generated from the following files: