https://mooseframework.inl.gov
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 | Private Attributes | List of all members
WCNSLinearFVTwoPhaseMixturePhysics Class Referencefinal

Creates all the objects needed to solve the mixture model for the weakly-compressible and incompressible two-phase equations. More...

#include <WCNSLinearFVTwoPhaseMixturePhysics.h>

Inheritance diagram for WCNSLinearFVTwoPhaseMixturePhysics:
[legend]

Public Types

typedef DataFileName DataFileParameterType
 

Public Member Functions

 WCNSLinearFVTwoPhaseMixturePhysics (const InputParameters &parameters)
 
const std::vector< NonlinearVariableName > & getAdvectedScalarNames () const
 Get the names of the advected scalar quantity variables. More...
 
bool hasScalarEquations () const
 Whether the physics is actually creating the scalar advection equations. More...
 
virtual void act () override final
 
virtual void actOnAdditionalTasks ()
 
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
 
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 ActionComponentgetActionComponent (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
 
void timedAct ()
 
MooseObjectName uniqueActionName () const
 
const std::string & specificTaskName () const
 
const std::set< std::string > & getAllTasks () const
 
void appendTask (const std::string &task)
 
MooseAppgetMooseApp () const
 
const std::string & type () const
 
virtual const std::string & name () const
 
std::string typeAndName () const
 
std::string errorPrefix (const std::string &error_type) const
 
void callMooseError (std::string msg, const bool with_prefix) const
 
MooseObjectParameterName uniqueParameterName (const std::string &parameter_name) const
 
const InputParametersparameters () const
 
MooseObjectName uniqueName () 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
 
getCheckedPointerParam (const std::string &name, const std::string &error_string="") const
 
bool isParamValid (const std::string &name) const
 
bool isParamSetByUser (const std::string &nm) const
 
void paramError (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
 
void connectControllableParams (const std::string &parameter, const std::string &object_type, const std::string &object_name, const std::string &object_parameter) const
 
void mooseError (Args &&... args) const
 
void mooseErrorNonPrefixed (Args &&... args) const
 
void mooseDocumentedError (const std::string &repo_name, const unsigned int issue_num, Args &&... args) const
 
void mooseWarning (Args &&... args) const
 
void mooseWarningNonPrefixed (Args &&... args) const
 
void mooseDeprecated (Args &&... args) const
 
void mooseInfo (Args &&... args) 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
 
PerfGraphperfGraph ()
 
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 WCNSFVFlowPhysicsBasegetCoupledFlowPhysics () const
 
const WCNSFVTurbulencePhysicsgetCoupledTurbulencePhysics () const
 
MooseFunctorName getPorosityFunctorName (bool smoothed) const
 Return the porosity functor name. More...
 
const MooseFunctorName & densityName () const
 
const MooseFunctorName & dynamicViscosityName () const
 

Static Public Member Functions

static InputParameters validParams ()
 

Public Attributes

const ConsoleStream _console
 

Static Public Attributes

static constexpr auto SYSTEM
 
static constexpr auto NAME
 

Protected Member Functions

virtual void addFVBCs () override
 
bool usingNavierStokesFVSyntax () const
 Detects if we are using the new Physics syntax or the old NavierStokesFV action. More...
 
InputParameters getAdditionalRMParams () const override
 Parameters to change or add relationship managers. More...
 
void assertParamDefined (const std::string &param) const
 
bool isTransient () const
 
FactorygetFactory ()
 
FactorygetFactory () const
 
virtual FEProblemBasegetProblem ()
 
virtual const FEProblemBasegetProblem () const
 
void prepareCopyVariablesFromMesh () const
 
void copyVariablesFromMesh (const std::vector< VariableName > &variables_to_copy, bool are_nonlinear=true)
 
std::string prefix () const
 
void saveSolverVariableName (const VariableName &var_name)
 
void saveAuxVariableName (const VariableName &var_name)
 
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< SubdomainIDgetSubdomainIDs (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
 
bool addRelationshipManagers (Moose::RelationshipManagerType when_type, const InputParameters &moose_object_pars)
 
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 checkParamsBothSetOrNotSet (const std::string &param1, const std::string &param2) 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

std::vector< NonlinearVariableName > _passive_scalar_names
 Names of the passive scalar variables. More...
 
const bool _has_scalar_equation
 A boolean to help compatibility with the old Modules/NavierStokesFV syntax or to deliberately skip adding the equations (for example for mixtures with a stationary phase) More...
 
MultiMooseEnum _passive_scalar_inlet_types
 Passive scalar inlet boundary types. More...
 
std::vector< std::vector< MooseFunctorName > > _passive_scalar_inlet_functors
 Functors describing the inlet boundary values. See passive_scalar_inlet_types for what the functors actually represent. More...
 
std::vector< MooseFunctorName > _passive_scalar_sources
 Functors for the passive scalar sources. Indexing is scalar variable index. More...
 
std::vector< std::vector< MooseFunctorName > > _passive_scalar_coupled_sources
 Functors for the passive scalar (coupled) sources. Inner indexing is scalar variable index. More...
 
std::vector< std::vector< Real > > _passive_scalar_sources_coef
 Coefficients multiplying for the passive scalar sources. Inner indexing is scalar variable index. More...
 
bool _define_variables
 Whether to define variables if they do not exist. More...
 
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
 
const std::string _type
 
const std::string _name
 
const InputParameters_pars
 
Factory_factory
 
ActionFactory_action_factory
 
MooseApp_pg_moose_app
 
const std::string _prefix
 
const Parallel::Communicator & _communicator
 
const NavierStokesPhysicsBase_advection_physics
 The Physics class using this helper. More...
 
const WCNSFVFlowPhysicsBase_flow_equations_physics
 Flow physics. More...
 
const WCNSFVTurbulencePhysics_turbulence_physics
 Turbulence. More...
 
const MooseEnum _compressibility
 Compressibility type, can be compressible, incompressible or weakly-compressible. More...
 
const bool _porous_medium_treatment
 Switch to show if porous medium treatment is requested or not. More...
 
const std::vector< std::string > _velocity_names
 Velocity names. More...
 
const NonlinearVariableName _pressure_name
 Pressure name. More...
 
const MooseFunctorName _density_name
 Name of the density material property. More...
 
const MooseFunctorName _dynamic_viscosity_name
 Name of the dynamic viscosity material property. More...
 
const MooseEnum _velocity_interpolation
 The velocity / momentum face interpolation method for advecting other quantities. More...
 

Private Member Functions

virtual void addFVKernels () override
 
virtual void addMaterials () override
 
virtual void checkIntegrity () const override
 
virtual void setSlipVelocityParams (InputParameters &params) const override
 Adds the slip velocity parameters. More...
 
void addPhaseInterfaceTerm ()
 Functions adding kernels for the other physics. More...
 
void addPhaseChangeEnergySource ()
 
void addPhaseDriftFluxTerm ()
 
void addAdvectionSlipTerm ()
 

Private Attributes

const WCNSLinearFVFluidHeatTransferPhysics_fluid_energy_physics
 Fluid heat transfer physics. More...
 
const bool _add_phase_equation
 Convenience boolean to keep track of whether the phase transport equation is requested. More...
 
bool _has_energy_equation
 Convenience boolean to keep track of whether the fluid energy equation is present. More...
 
const MooseFunctorName _phase_1_fraction_name
 Name of the first phase fraction (usually, liquid) More...
 
const MooseFunctorName _phase_2_fraction_name
 Name of the second phase fraction (usually, dispersed or advected by the liquid) More...
 
const MooseFunctorName _phase_1_density
 Name of the density of the first phase. More...
 
const MooseFunctorName _phase_1_viscosity
 Name of the dynamic viscosity of the first phase. More...
 
const MooseFunctorName _phase_1_specific_heat
 Name of the specific heat of the first phase. More...
 
const MooseFunctorName _phase_1_thermal_conductivity
 Name of the thermal conductivity of the first phase. More...
 
const MooseFunctorName _phase_2_density
 Name of the density of the other phase. More...
 
const MooseFunctorName _phase_2_viscosity
 Name of the dynamic viscosity of the other phase. More...
 
const MooseFunctorName _phase_2_specific_heat
 Name of the specific heat of the other phase. More...
 
const MooseFunctorName _phase_2_thermal_conductivity
 Name of the thermal conductivity of the other phase. More...
 
const bool _use_external_mixture_properties
 Whether to define the mixture model internally or use fluid properties instead. More...
 
const bool _use_drift_flux
 Whether to add the drift flux momentum terms to each component momentum equation. More...
 
const bool _use_advection_slip
 Whether to add the advection slip term to each component of the momentum equation. More...
 

Detailed Description

Creates all the objects needed to solve the mixture model for the weakly-compressible and incompressible two-phase equations.

Can also add a phase transport equation

Definition at line 21 of file WCNSLinearFVTwoPhaseMixturePhysics.h.

Constructor & Destructor Documentation

◆ WCNSLinearFVTwoPhaseMixturePhysics()

WCNSLinearFVTwoPhaseMixturePhysics::WCNSLinearFVTwoPhaseMixturePhysics ( const InputParameters parameters)

Definition at line 46 of file WCNSLinearFVTwoPhaseMixturePhysics.C.

50  _phase_1_fraction_name(getParam<MooseFunctorName>("phase_1_fraction_name")),
52  _phase_1_density(getParam<MooseFunctorName>("phase_1_density_name")),
53  _phase_1_viscosity(getParam<MooseFunctorName>("phase_1_viscosity_name")),
54  _phase_1_specific_heat(getParam<MooseFunctorName>("phase_1_specific_heat_name")),
55  _phase_1_thermal_conductivity(getParam<MooseFunctorName>("phase_1_thermal_conductivity_name")),
56  _phase_2_density(getParam<MooseFunctorName>("phase_2_density_name")),
57  _phase_2_viscosity(getParam<MooseFunctorName>("phase_2_viscosity_name")),
58  _phase_2_specific_heat(getParam<MooseFunctorName>("phase_2_specific_heat_name")),
59  _phase_2_thermal_conductivity(getParam<MooseFunctorName>("phase_2_thermal_conductivity_name")),
60  _use_external_mixture_properties(getParam<bool>("use_external_mixture_properties")),
61  _use_drift_flux(getParam<bool>("add_drift_flux_momentum_terms")),
62  _use_advection_slip(getParam<bool>("add_advection_slip_term"))
63 {
64  // Check that only one scalar was passed, as we are using vector parameters
65  if (_passive_scalar_names.size() > 1)
66  paramError("phase_fraction_name", "Only one phase fraction currently supported.");
67  if (_passive_scalar_inlet_functors.size() > 1)
68  paramError("phase_fraction_inlet_functors", "Only one phase fraction currently supported");
69 
70  // Retrieve the fluid energy equation if it exists
71  if (isParamValid("fluid_heat_transfer_physics"))
72  {
73  _fluid_energy_physics = getCoupledPhysics<WCNSLinearFVFluidHeatTransferPhysics>(
74  getParam<PhysicsName>("fluid_heat_transfer_physics"), true);
75  // Check for a missing parameter / do not support isolated physics for now
76  if (!_fluid_energy_physics &&
77  !getCoupledPhysics<const WCNSLinearFVFluidHeatTransferPhysics>(true).empty())
78  paramError(
79  "fluid_heat_transfer_physics",
80  "We currently do not support creating both a phase transport equation and fluid heat "
81  "transfer physics that are not coupled together");
83  _has_energy_equation = true;
84  else
85  _has_energy_equation = false;
86  }
87  else
88  {
89  _has_energy_equation = false;
90  _fluid_energy_physics = nullptr;
91  }
92 
93  // Check that the mixture parameters are correctly in use in the other physics
95  {
96  if (_fluid_energy_physics->densityName() != "rho_mixture")
97  mooseError(
98  "Density name for Physics '", _fluid_energy_physics->name(), "' should be 'rho_mixture'");
99  if (_fluid_energy_physics->getSpecificHeatName() != "cp_mixture")
100  mooseError("Specific heat name for Physics '",
102  "' should be 'cp_mixture'");
103  }
105  if (_flow_equations_physics->densityName() != "rho_mixture")
106  mooseError("Density name for Physics ,",
108  "' should be 'rho_mixture'");
109 
110  if (_verbose)
111  {
113  mooseInfoRepeated("Coupled to fluid flow physics " + _flow_equations_physics->name());
115  mooseInfoRepeated("Coupled to fluid heat transfer physics " + _fluid_energy_physics->name());
116  }
117 
118  // Parameter checking
119  // The two models are not consistent
120  if (isParamSetByUser("alpha_exchange") && getParam<bool>("add_phase_change_energy_term"))
121  paramError("alpha_exchange",
122  "A phase exchange coefficient cannot be specified if the phase change is handled "
123  "with a phase change heat loss model");
125  paramError("phase_1_fraction_name",
126  "First phase fraction name should be different from second phase fraction name");
128  paramError("add_drift_flux_momentum_terms",
129  "Drift flux model cannot be used at the same time as the advection slip model");
130  if (!getParam<bool>("add_drift_flux_momentum_terms"))
131  errorDependentParameter("add_drift_flux_momentum_terms", "true", {"density_interp_method"});
132  if (!getParam<bool>("use_dispersed_phase_drag_model"))
133  errorDependentParameter("use_dispersed_phase_drag_model", "true", {"particle_diameter"});
134 }
const bool _use_advection_slip
Whether to add the advection slip term to each component of the momentum equation.
const MooseFunctorName _phase_1_thermal_conductivity
Name of the thermal conductivity of the first phase.
const MooseFunctorName _phase_1_specific_heat
Name of the specific heat of the first phase.
void mooseInfoRepeated(Args &&... args)
const bool _add_phase_equation
Convenience boolean to keep track of whether the phase transport equation is requested.
std::vector< NonlinearVariableName > _passive_scalar_names
Names of the passive scalar variables.
const bool _verbose
virtual const std::string & name() const
const MooseFunctorName & densityName() const
Return the name of the density functor.
const MooseFunctorName _phase_2_thermal_conductivity
Name of the thermal conductivity of the other phase.
const MooseFunctorName _phase_1_fraction_name
Name of the first phase fraction (usually, liquid)
bool _has_energy_equation
Convenience boolean to keep track of whether the fluid energy equation is present.
void errorDependentParameter(const std::string &param1, const std::string &value_not_set, const std::vector< std::string > &dependent_params) const
bool isParamValid(const std::string &name) const
std::vector< std::vector< MooseFunctorName > > _passive_scalar_inlet_functors
Functors describing the inlet boundary values. See passive_scalar_inlet_types for what the functors a...
const MooseFunctorName _phase_1_density
Name of the density of the first phase.
const MooseFunctorName _phase_2_fraction_name
Name of the second phase fraction (usually, dispersed or advected by the liquid)
const MooseFunctorName & getSpecificHeatName() const
Get the name of the specific heat material property.
bool hasEnergyEquation() const
Whether the physics is actually creating the heat equation.
const bool _use_drift_flux
Whether to add the drift flux momentum terms to each component momentum equation. ...
const MooseFunctorName _phase_2_viscosity
Name of the dynamic viscosity of the other phase.
void paramError(const std::string &param, Args... args) const
const MooseFunctorName _phase_1_viscosity
Name of the dynamic viscosity of the first phase.
const WCNSLinearFVFluidHeatTransferPhysics * _fluid_energy_physics
Fluid heat transfer physics.
bool isParamSetByUser(const std::string &nm) const
const bool _use_external_mixture_properties
Whether to define the mixture model internally or use fluid properties instead.
const MooseFunctorName _phase_2_specific_heat
Name of the specific heat of the other phase.
void mooseError(Args &&... args) const
const InputParameters & parameters() const
WCNSLinearFVScalarTransportPhysics(const InputParameters &parameters)
const bool _has_scalar_equation
A boolean to help compatibility with the old Modules/NavierStokesFV syntax or to deliberately skip ad...
const WCNSFVFlowPhysicsBase * _flow_equations_physics
Flow physics.
const MooseFunctorName _phase_2_density
Name of the density of the other phase.

Member Function Documentation

◆ addAdvectionSlipTerm()

void WCNSLinearFVTwoPhaseMixturePhysics::addAdvectionSlipTerm ( )
private

Definition at line 237 of file WCNSLinearFVTwoPhaseMixturePhysics.C.

Referenced by addFVKernels().

238 {
239  mooseError("Phase advection slip not implemented at this time for linear finite volume");
240 }
void mooseError(Args &&... args) const

◆ addFVBCs()

void WCNSFVScalarTransportPhysicsBase::addFVBCs ( )
overrideprotectedvirtualinherited

Reimplemented from PhysicsBase.

Definition at line 130 of file WCNSFVScalarTransportPhysicsBase.C.

131 {
132  // For compatibility with Modules/NavierStokesFV syntax
134  return;
135 
137  // There is typically no wall flux of passive scalars, similarly we rarely know
138  // their concentrations at the outlet at the beginning of the simulation
139  // TODO: we will know the outlet values in case of flow reversal. Implement scalar outlet
140  addScalarWallBC();
142 }
const bool _has_scalar_equation
A boolean to help compatibility with the old Modules/NavierStokesFV syntax or to deliberately skip ad...
virtual void addScalarInletBC()=0
Functions adding boundary conditions for the scalar conservation equations.
virtual void addScalarOutletBC()=0

◆ addFVKernels()

void WCNSLinearFVTwoPhaseMixturePhysics::addFVKernels ( )
overrideprivatevirtual

Reimplemented from WCNSFVScalarTransportPhysicsBase.

Definition at line 161 of file WCNSLinearFVTwoPhaseMixturePhysics.C.

162 {
164 
165  if (_add_phase_equation && isParamSetByUser("alpha_exchange"))
167 
169  getParam<bool>("add_phase_change_energy_term"))
171 
176 }
bool hasFlowEquations() const
Whether the physics is actually creating the flow equations.
const bool _use_advection_slip
Whether to add the advection slip term to each component of the momentum equation.
const bool _add_phase_equation
Convenience boolean to keep track of whether the phase transport equation is requested.
void addPhaseInterfaceTerm()
Functions adding kernels for the other physics.
bool hasEnergyEquation() const
Whether the physics is actually creating the heat equation.
const bool _use_drift_flux
Whether to add the drift flux momentum terms to each component momentum equation. ...
const WCNSLinearFVFluidHeatTransferPhysics * _fluid_energy_physics
Fluid heat transfer physics.
bool isParamSetByUser(const std::string &nm) const
const WCNSFVFlowPhysicsBase * _flow_equations_physics
Flow physics.

◆ addMaterials()

void WCNSLinearFVTwoPhaseMixturePhysics::addMaterials ( )
overrideprivatevirtual

Reimplemented from PhysicsBase.

Definition at line 243 of file WCNSLinearFVTwoPhaseMixturePhysics.C.

244 {
245  // Add the phase fraction variable, for output purposes mostly
246  if (!getProblem().hasFunctor(_phase_1_fraction_name, /*thread_id=*/0))
247  {
248  auto params = getFactory().getValidParams("ParsedFunctorMaterial");
249  assignBlocks(params, _blocks);
250  params.set<std::string>("expression") = "1 - " + _phase_2_fraction_name;
251  params.set<std::vector<std::string>>("functor_names") = {_phase_2_fraction_name};
252  params.set<std::string>("property_name") = _phase_1_fraction_name;
253  params.set<std::vector<std::string>>("output_properties") = {_phase_1_fraction_name};
254  params.set<std::vector<OutputName>>("outputs") = {"all"};
255  getProblem().addMaterial("ParsedFunctorMaterial", prefix() + "phase_1_fraction", params);
256 
257  // One of the phase fraction should exist though (either as a variable or set by a
258  // NSLiquidFractionAux)
259  if (!getProblem().hasFunctor(_phase_2_fraction_name, /*thread_id=*/0))
260  paramError("Phase 2 fraction should be defined as a variable or auxiliary variable");
261  }
262  if (!getProblem().hasFunctor(_phase_2_fraction_name, /*thread_id=*/0))
263  {
264  auto params = getFactory().getValidParams("ParsedFunctorMaterial");
265  assignBlocks(params, _blocks);
266  params.set<std::string>("expression") = "1 - " + _phase_1_fraction_name;
267  params.set<std::vector<std::string>>("functor_names") = {_phase_1_fraction_name};
268  params.set<std::string>("property_name") = _phase_2_fraction_name;
269  params.set<std::vector<std::string>>("output_properties") = {_phase_2_fraction_name};
270  params.set<std::vector<OutputName>>("outputs") = {"all"};
271  getProblem().addMaterial("ParsedFunctorMaterial", prefix() + "phase_2_fraction", params);
272  }
273 
274  // Compute mixture properties
276  {
277  auto params = getFactory().getValidParams("WCNSLinearFVMixtureFunctorMaterial");
278  assignBlocks(params, _blocks);
279  params.set<std::vector<MooseFunctorName>>("prop_names") = {
280  "rho_mixture", "mu_mixture", "cp_mixture", "k_mixture"};
281  // The phase_1 and phase_2 assignments are only local to this object.
282  // We use the phase 2 variable to save a functor evaluation as we expect
283  // the phase 2 variable to be a nonlinear variable in the phase transport equation
284  params.set<std::vector<MooseFunctorName>>("phase_2_names") = {_phase_1_density,
288  params.set<std::vector<MooseFunctorName>>("phase_1_names") = {_phase_2_density,
292  params.set<MooseFunctorName>("phase_1_fraction") = _phase_2_fraction_name;
293  if (getParam<bool>("output_all_properties"))
294  params.set<std::vector<OutputName>>("outputs") = {"all"};
295  params.set<bool>("limit_phase_fraction") = true;
297  "WCNSLinearFVMixtureFunctorMaterial", prefix() + "mixture_material", params);
298  }
299 
300  // Compute slip terms as functors, used by the drift flux kernels
302  {
303  mooseAssert(_flow_equations_physics, "We must have coupled to this");
304  const std::vector<std::string> vel_components = {"u", "v", "w"};
305  const std::vector<std::string> components = {"x", "y", "z"};
306  for (const auto dim : make_range(dimension()))
307  {
308  auto params = getFactory().getValidParams("WCNSFV2PSlipVelocityFunctorMaterial");
309  assignBlocks(params, _blocks);
310  params.set<MooseFunctorName>("slip_velocity_name") = "vel_slip_" + components[dim];
311  params.set<MooseEnum>("momentum_component") = components[dim];
312  for (const auto j : make_range(dimension()))
313  params.set<std::vector<VariableName>>(vel_components[j]) = {
315  params.set<MooseFunctorName>(NS::density) = _phase_1_density;
316  params.set<MooseFunctorName>(NS::mu) = "mu_mixture";
317  params.set<MooseFunctorName>("rho_d") = _phase_2_density;
318  if (getParam<bool>("add_gravity_term_in_slip_velocity"))
319  params.set<RealVectorValue>("gravity") = _flow_equations_physics->gravityVector();
320  if (isParamValid("slip_linear_friction_name"))
321  params.set<MooseFunctorName>("linear_coef_name") =
322  getParam<MooseFunctorName>("slip_linear_friction_name");
323  else if (getParam<bool>("use_dispersed_phase_drag_model"))
324  params.set<MooseFunctorName>("linear_coef_name") = "Darcy_coefficient";
325  else if (_flow_equations_physics)
326  {
328  params.set<MooseFunctorName>("linear_coef_name") =
330  else
331  params.set<MooseFunctorName>("linear_coef_name") = "0";
332  }
333  else
334  paramError("slip_linear_friction_name",
335  "WCNSFV2PSlipVelocityFunctorMaterial created by this Physics required a scalar "
336  "field linear friction factor.");
337  params.set<MooseFunctorName>("particle_diameter") =
338  getParam<MooseFunctorName>("particle_diameter");
339  if (getParam<bool>("output_all_properties"))
340  {
341  if (!isTransient())
342  params.set<std::vector<OutputName>>("outputs") = {"all"};
343  else
344  paramInfo("output_all_properties",
345  "Slip velocity functor material output currently unsupported in Physics "
346  "in transient conditions.");
347  }
349  "WCNSFV2PSlipVelocityFunctorMaterial", prefix() + "slip_" + components[dim], params);
350  }
351  }
352 
353  // Add a default drag model for a dispersed phase
354  if (getParam<bool>("use_dispersed_phase_drag_model"))
355  {
356  const std::vector<std::string> vel_components = {"u", "v", "w"};
357 
358  auto params = getFactory().getValidParams("NSFVDispersePhaseDragFunctorMaterial");
359  assignBlocks(params, _blocks);
360  params.set<MooseFunctorName>("drag_coef_name") = "Darcy_coefficient";
361  for (const auto j : make_range(dimension()))
362  params.set<MooseFunctorName>(vel_components[j]) = {
364  params.set<MooseFunctorName>(NS::density) = "rho_mixture";
365  params.set<MooseFunctorName>(NS::mu) = "mu_mixture";
366  params.set<MooseFunctorName>("particle_diameter") =
367  getParam<MooseFunctorName>("particle_diameter");
368  if (getParam<bool>("output_all_properties"))
369  params.set<std::vector<OutputName>>("outputs") = {"all"};
371  "NSFVDispersePhaseDragFunctorMaterial", prefix() + "dispersed_drag", params);
372  }
373 }
std::string prefix() const
const std::vector< std::string > & getVelocityNames() const
To interface with other Physics.
void assignBlocks(InputParameters &params, const std::vector< SubdomainName > &blocks) const
Factory & getFactory()
const bool _use_advection_slip
Whether to add the advection slip term to each component of the momentum equation.
virtual void addMaterial(const std::string &material_name, const std::string &name, InputParameters &parameters)
const MooseFunctorName _phase_1_thermal_conductivity
Name of the thermal conductivity of the first phase.
const MooseFunctorName _phase_1_specific_heat
Name of the specific heat of the first phase.
static const std::string density
Definition: NS.h:33
InputParameters getValidParams(const std::string &name) const
const bool _add_phase_equation
Convenience boolean to keep track of whether the phase transport equation is requested.
virtual MooseFunctorName getLinearFrictionCoefName() const =0
Get the name of the linear friction coefficient. Returns an empty string if no friction.
std::vector< SubdomainName > _blocks
unsigned int dimension() const
const MooseFunctorName _phase_2_thermal_conductivity
Name of the thermal conductivity of the other phase.
const MooseFunctorName _phase_1_fraction_name
Name of the first phase fraction (usually, liquid)
bool isParamValid(const std::string &name) const
const MooseFunctorName _phase_1_density
Name of the density of the first phase.
virtual FEProblemBase & getProblem()
const MooseFunctorName _phase_2_fraction_name
Name of the second phase fraction (usually, dispersed or advected by the liquid)
RealVectorValue gravityVector() const
Return the gravity vector.
static const std::string mu
Definition: NS.h:123
const bool _use_drift_flux
Whether to add the drift flux momentum terms to each component momentum equation. ...
const MooseFunctorName _phase_2_viscosity
Name of the dynamic viscosity of the other phase.
void paramError(const std::string &param, Args... args) const
const MooseFunctorName _phase_1_viscosity
Name of the dynamic viscosity of the first phase.
const bool _use_external_mixture_properties
Whether to define the mixture model internally or use fluid properties instead.
const MooseFunctorName _phase_2_specific_heat
Name of the specific heat of the other phase.
IntRange< T > make_range(T beg, T end)
static const std::complex< double > j(0, 1)
Complex number "j" (also known as "i")
void paramInfo(const std::string &param, Args... args) const
const WCNSFVFlowPhysicsBase * _flow_equations_physics
Flow physics.
const MooseFunctorName _phase_2_density
Name of the density of the other phase.
bool isTransient() const

◆ addPhaseChangeEnergySource()

void WCNSLinearFVTwoPhaseMixturePhysics::addPhaseChangeEnergySource ( )
private

Definition at line 211 of file WCNSLinearFVTwoPhaseMixturePhysics.C.

Referenced by addFVKernels().

212 {
213  mooseError("Phase change energy source not implemented at this time for linear finite volume");
214 }
void mooseError(Args &&... args) const

◆ addPhaseDriftFluxTerm()

void WCNSLinearFVTwoPhaseMixturePhysics::addPhaseDriftFluxTerm ( )
private

Definition at line 217 of file WCNSLinearFVTwoPhaseMixturePhysics.C.

Referenced by addFVKernels().

218 {
219  const std::vector<std::string> components = {"x", "y", "z"};
220  for (const auto dim : make_range(dimension()))
221  {
222  const auto object_type = "LinearWCNSFV2PMomentumDriftFlux";
223  auto params = getFactory().getValidParams(object_type);
224  assignBlocks(params, _blocks);
225  params.set<LinearVariableName>("variable") = _flow_equations_physics->getVelocityNames()[dim];
226  setSlipVelocityParams(params);
227  params.set<MooseFunctorName>("rho_d") = _phase_2_density;
228  params.set<MooseFunctorName>("fraction_dispersed") = _phase_2_fraction_name;
229  params.set<MooseEnum>("momentum_component") = components[dim];
230  params.set<MooseEnum>("density_interp_method") = getParam<MooseEnum>("density_interp_method");
231  params.set<UserObjectName>("rhie_chow_user_object") = _flow_equations_physics->rhieChowUOName();
232  getProblem().addLinearFVKernel(object_type, prefix() + "drift_flux_" + components[dim], params);
233  }
234 }
std::string prefix() const
const std::vector< std::string > & getVelocityNames() const
To interface with other Physics.
void assignBlocks(InputParameters &params, const std::vector< SubdomainName > &blocks) const
Factory & getFactory()
unsigned int dim
InputParameters getValidParams(const std::string &name) const
std::vector< SubdomainName > _blocks
unsigned int dimension() const
virtual FEProblemBase & getProblem()
const MooseFunctorName _phase_2_fraction_name
Name of the second phase fraction (usually, dispersed or advected by the liquid)
virtual UserObjectName rhieChowUOName() const =0
Return the name of the Rhie Chow user object.
virtual void addLinearFVKernel(const std::string &kernel_name, const std::string &name, InputParameters &parameters)
IntRange< T > make_range(T beg, T end)
virtual void setSlipVelocityParams(InputParameters &params) const override
Adds the slip velocity parameters.
const WCNSFVFlowPhysicsBase * _flow_equations_physics
Flow physics.
const MooseFunctorName _phase_2_density
Name of the density of the other phase.

◆ addPhaseInterfaceTerm()

void WCNSLinearFVTwoPhaseMixturePhysics::addPhaseInterfaceTerm ( )
private

Functions adding kernels for the other physics.

Definition at line 189 of file WCNSLinearFVTwoPhaseMixturePhysics.C.

Referenced by addFVKernels().

190 {
191  // Recreate the phase interface term from existing kernels
192  {
193  auto params = getFactory().getValidParams("LinearFVReaction");
194  assignBlocks(params, _blocks);
195  params.set<LinearVariableName>("variable") = _phase_2_fraction_name;
196  params.set<MooseFunctorName>("coeff") = getParam<MooseFunctorName>(NS::alpha_exchange);
198  "LinearFVReaction", prefix() + "phase_interface_reaction", params);
199  }
200  {
201  auto params = getFactory().getValidParams("LinearFVSource");
202  assignBlocks(params, _blocks);
203  params.set<LinearVariableName>("variable") = _phase_2_fraction_name;
204  params.set<MooseFunctorName>("source_density") = _phase_1_fraction_name;
205  params.set<MooseFunctorName>("scaling_factor") = getParam<MooseFunctorName>(NS::alpha_exchange);
206  getProblem().addLinearFVKernel("LinearFVSource", prefix() + "phase_interface_source", params);
207  }
208 }
std::string prefix() const
void assignBlocks(InputParameters &params, const std::vector< SubdomainName > &blocks) const
Factory & getFactory()
InputParameters getValidParams(const std::string &name) const
std::vector< SubdomainName > _blocks
const MooseFunctorName _phase_1_fraction_name
Name of the first phase fraction (usually, liquid)
virtual FEProblemBase & getProblem()
const MooseFunctorName _phase_2_fraction_name
Name of the second phase fraction (usually, dispersed or advected by the liquid)
static const std::string alpha_exchange
Definition: NS.h:150
virtual void addLinearFVKernel(const std::string &kernel_name, const std::string &name, InputParameters &parameters)

◆ checkIntegrity()

void WCNSLinearFVTwoPhaseMixturePhysics::checkIntegrity ( ) const
overrideprivatevirtual

Reimplemented from PhysicsBase.

Definition at line 137 of file WCNSLinearFVTwoPhaseMixturePhysics.C.

138 {
140  mooseError("Expected a flow physics");
141 
142  // Check the mesh for unsupported sknewness + buoyancy
144  {
145  const auto tol = 1e-2;
146  if (_problem->mesh().allFaceInfo().empty())
147  _problem->mesh().setupFiniteVolumeMeshData();
148  for (const auto & fi : _problem->mesh().allFaceInfo())
149  {
150  if (fi.skewnessCorrectionVector().norm() > tol * fi.dCNMag())
151  mooseError("Face with centroid ",
152  fi.faceCentroid(),
153  " requires skewness correction. We currently do not support mixture flow with "
154  "buoyancy and mesh skewness. Please contact a MOOSE or Navier Stokes module "
155  "developer if you require this.");
156  }
157  }
158 }
auto norm() const -> decltype(std::norm(Real()))
const double tol
RealVectorValue gravityVector() const
Return the gravity vector.
void mooseError(Args &&... args) const
std::shared_ptr< FEProblemBase > & _problem
const WCNSFVFlowPhysicsBase * _flow_equations_physics
Flow physics.

◆ densityName()

const MooseFunctorName& WCNSFVCoupledAdvectionPhysicsHelper::densityName ( ) const
inlineinherited

◆ dynamicViscosityName()

const MooseFunctorName& WCNSFVCoupledAdvectionPhysicsHelper::dynamicViscosityName ( ) const
inlineinherited

Definition at line 37 of file WCNSFVCoupledAdvectionPhysicsHelper.h.

37 { return _dynamic_viscosity_name; }
const MooseFunctorName _dynamic_viscosity_name
Name of the dynamic viscosity material property.

◆ getAdditionalRMParams()

InputParameters NavierStokesPhysicsBase::getAdditionalRMParams ( ) const
overrideprotectedvirtualinherited

Parameters to change or add relationship managers.

Reimplemented from PhysicsBase.

Definition at line 42 of file NavierStokesPhysicsBase.C.

43 {
44  unsigned short necessary_layers = getParam<unsigned short>("ghost_layers");
45  necessary_layers = std::max(necessary_layers, getNumberAlgebraicGhostingLayersNeeded());
46 
47  // Just an object that has a ghost_layers parameter
48  const std::string kernel_type = "INSFVMixingLengthReynoldsStress";
49  InputParameters params = getFactory().getValidParams(kernel_type);
50  params.template set<unsigned short>("ghost_layers") = necessary_layers;
51 
52  return params;
53 }
Factory & getFactory()
InputParameters getValidParams(const std::string &name) const
virtual unsigned short getNumberAlgebraicGhostingLayersNeeded() const =0
Return the number of ghosting layers needed.

◆ getAdvectedScalarNames()

const std::vector<NonlinearVariableName>& WCNSFVScalarTransportPhysicsBase::getAdvectedScalarNames ( ) const
inlineinherited

Get the names of the advected scalar quantity variables.

Definition at line 33 of file WCNSFVScalarTransportPhysicsBase.h.

Referenced by WCNSFVTurbulencePhysics::addScalarAdvectionTurbulenceKernels().

34  {
35  return _passive_scalar_names;
36  }
std::vector< NonlinearVariableName > _passive_scalar_names
Names of the passive scalar variables.

◆ 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)
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)
const T * getCoupledPhysics(const PhysicsName &phys_name, const bool allow_fail=false) const
bool isParamValid(const std::string &name) const
Base class for Physics which create the Navier Stokes flow equations.
const T & getParam(const std::string &name) const
bool checkBlockRestrictionIdentical(const std::string &object_name, const std::vector< SubdomainName > &blocks, const bool error_if_not_identical=true) const
const NavierStokesPhysicsBase * _advection_physics
The Physics class using this helper.

◆ getCoupledTurbulencePhysics()

const WCNSFVTurbulencePhysics * WCNSFVCoupledAdvectionPhysicsHelper::getCoupledTurbulencePhysics ( ) const
inherited

Definition at line 77 of file WCNSFVCoupledAdvectionPhysicsHelper.C.

Referenced by WCNSFVFluidHeatTransferPhysicsBase::actOnAdditionalTasks().

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)
90  physics->name(), physics->blocks(), /*error_if_not_identical=*/false))
91  return physics;
92  }
93  // Did not find one
94  return nullptr;
95 }
Creates all the objects needed to add a turbulence model to an incompressible / weakly-compressible N...
const T * getCoupledPhysics(const PhysicsName &phys_name, const bool allow_fail=false) const
bool isParamValid(const std::string &name) const
const T & getParam(const std::string &name) const
bool checkBlockRestrictionIdentical(const std::string &object_name, const std::vector< SubdomainName > &blocks, const bool error_if_not_identical=true) const
const NavierStokesPhysicsBase * _advection_physics
The Physics class using this helper.

◆ 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
const WCNSFVFlowPhysicsBase * _flow_equations_physics
Flow physics.

◆ hasScalarEquations()

bool WCNSFVScalarTransportPhysicsBase::hasScalarEquations ( ) const
inlineinherited

Whether the physics is actually creating the scalar advection equations.

Definition at line 39 of file WCNSFVScalarTransportPhysicsBase.h.

Referenced by WCNSFVTurbulencePhysics::retrieveCoupledPhysics().

39 { return _has_scalar_equation; }
const bool _has_scalar_equation
A boolean to help compatibility with the old Modules/NavierStokesFV syntax or to deliberately skip ad...

◆ setSlipVelocityParams()

void WCNSLinearFVTwoPhaseMixturePhysics::setSlipVelocityParams ( InputParameters params) const
overrideprivatevirtual

Adds the slip velocity parameters.

Reimplemented from WCNSFVScalarTransportPhysicsBase.

Definition at line 179 of file WCNSLinearFVTwoPhaseMixturePhysics.C.

Referenced by addPhaseDriftFluxTerm().

180 {
181  params.set<MooseFunctorName>("u_slip") = "vel_slip_x";
182  if (dimension() >= 2)
183  params.set<MooseFunctorName>("v_slip") = "vel_slip_y";
184  if (dimension() >= 3)
185  params.set<MooseFunctorName>("w_slip") = "vel_slip_z";
186 }
T & set(const std::string &name, bool quiet_mode=false)
unsigned int dimension() const

◆ usingNavierStokesFVSyntax()

bool NavierStokesPhysicsBase::usingNavierStokesFVSyntax ( ) const
inlineprotectedinherited

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

Definition at line 32 of file NavierStokesPhysicsBase.h.

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

◆ validParams()

InputParameters WCNSLinearFVTwoPhaseMixturePhysics::validParams ( )
static

Definition at line 22 of file WCNSLinearFVTwoPhaseMixturePhysics.C.

23 {
24  // The parameters are mostly the same being the linear and nonlinear version
27  // The flow physics is obtained from the scalar transport base class
28  // The fluid heat transfer physics is retrieved even if unspecified
29  params.addParam<PhysicsName>(
30  "fluid_heat_transfer_physics",
31  "NavierStokesFV",
32  "WCNSLinearFVFluidHeatTransferPhysics generating the fluid energy equation");
34  params.addParamNamesToGroup("fluid_heat_transfer_physics", "Phase change");
35  params.addClassDescription("Define the additional terms for a mixture model for the two phase "
36  "weakly-compressible Navier Stokes equations using the linearized "
37  "segregated finite volume discretization");
38 
39  // This is added to match a nonlinear test result. If the underlying issue is fixed, remove it
40  params.addParam<bool>("add_gravity_term_in_slip_velocity",
41  true,
42  "Whether to add the gravity term in the slip velocity vector computation");
43  return params;
44 }
void addParam(const std::string &name, const std::initializer_list< typename T::value_type > &value, const std::string &doc_string)
static InputParameters commonMixtureParams()
static void renamePassiveScalarToMixtureParams(InputParameters &params)

Member Data Documentation

◆ _add_phase_equation

const bool WCNSLinearFVTwoPhaseMixturePhysics::_add_phase_equation
private

Convenience boolean to keep track of whether the phase transport equation is requested.

Definition at line 48 of file WCNSLinearFVTwoPhaseMixturePhysics.h.

Referenced by addFVKernels(), and addMaterials().

◆ _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 48 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(), WCNSFVTurbulencePhysics::addAuxiliaryKernels(), WCNSFVFluidHeatTransferPhysics::addEnergyAdvectionKernels(), WCNSLinearFVFluidHeatTransferPhysics::addEnergyAdvectionKernels(), WCNSFVFluidHeatTransferPhysics::addEnergyHeatConductionKernels(), WCNSFVFluidHeatTransferPhysics::addEnergyInletBC(), WCNSLinearFVFluidHeatTransferPhysics::addEnergyInletBC(), WCNSLinearFVFluidHeatTransferPhysics::addEnergyOutletBC(), WCNSFVFluidHeatTransferPhysics::addEnergySeparatorBC(), WCNSFVFluidHeatTransferPhysics::addEnergyTimeKernels(), WCNSLinearFVFluidHeatTransferPhysics::addEnergyWallBC(), WCNSFVFluidHeatTransferPhysics::addEnergyWallBC(), WCNSFVTurbulencePhysics::addFlowTurbulenceKernels(), WCNSFVTurbulencePhysics::addFluidEnergyTurbulenceKernels(), WCNSFVTurbulencePhysics::addFVBCs(), addFVKernels(), WCNSFVTwoPhaseMixturePhysics::addFVKernels(), WCNSFVTurbulencePhysics::addInitialConditions(), WCNSFVTurbulencePhysics::addKEpsilonAdvection(), WCNSFVTurbulencePhysics::addKEpsilonDiffusion(), WCNSFVTurbulencePhysics::addKEpsilonSink(), addMaterials(), WCNSFVTwoPhaseMixturePhysics::addMaterials(), WCNSFVTurbulencePhysics::addMaterials(), WCNSFVFluidHeatTransferPhysicsBase::addMaterials(), addPhaseDriftFluxTerm(), WCNSFVTwoPhaseMixturePhysics::addPhaseDriftFluxTerm(), WCNSLinearFVScalarTransportPhysics::addScalarAdvectionKernels(), WCNSFVScalarTransportPhysics::addScalarAdvectionKernels(), WCNSLinearFVScalarTransportPhysics::addScalarInletBC(), WCNSFVScalarTransportPhysics::addScalarInletBC(), WCNSLinearFVScalarTransportPhysics::addScalarOutletBC(), checkIntegrity(), WCNSFVTurbulencePhysics::getNumberAlgebraicGhostingLayersNeeded(), WCNSFVFluidHeatTransferPhysicsBase::getNumberAlgebraicGhostingLayersNeeded(), WCNSFVScalarTransportPhysicsBase::getNumberAlgebraicGhostingLayersNeeded(), WCNSFVCoupledAdvectionPhysicsHelper::getPorosityFunctorName(), WCNSFVTurbulencePhysics::retrieveCoupledPhysics(), WCNSFVFluidHeatTransferPhysicsBase::WCNSFVFluidHeatTransferPhysicsBase(), WCNSFVTwoPhaseMixturePhysics::WCNSFVTwoPhaseMixturePhysics(), WCNSLinearFVScalarTransportPhysics::WCNSLinearFVScalarTransportPhysics(), and WCNSLinearFVTwoPhaseMixturePhysics().

◆ _fluid_energy_physics

const WCNSLinearFVFluidHeatTransferPhysics* WCNSLinearFVTwoPhaseMixturePhysics::_fluid_energy_physics
private

Fluid heat transfer physics.

Definition at line 45 of file WCNSLinearFVTwoPhaseMixturePhysics.h.

Referenced by addFVKernels(), and WCNSLinearFVTwoPhaseMixturePhysics().

◆ _has_energy_equation

bool WCNSLinearFVTwoPhaseMixturePhysics::_has_energy_equation
private

Convenience boolean to keep track of whether the fluid energy equation is present.

Definition at line 50 of file WCNSLinearFVTwoPhaseMixturePhysics.h.

Referenced by WCNSLinearFVTwoPhaseMixturePhysics().

◆ _has_scalar_equation

const bool WCNSFVScalarTransportPhysicsBase::_has_scalar_equation
protectedinherited

◆ _passive_scalar_coupled_sources

std::vector<std::vector<MooseFunctorName> > WCNSFVScalarTransportPhysicsBase::_passive_scalar_coupled_sources
protectedinherited

Functors for the passive scalar (coupled) sources. Inner indexing is scalar variable index.

Definition at line 60 of file WCNSFVScalarTransportPhysicsBase.h.

Referenced by WCNSFVScalarTransportPhysicsBase::addFVKernels(), WCNSLinearFVScalarTransportPhysics::addScalarSourceKernels(), and WCNSFVScalarTransportPhysics::addScalarSourceKernels().

◆ _passive_scalar_inlet_functors

std::vector<std::vector<MooseFunctorName> > WCNSFVScalarTransportPhysicsBase::_passive_scalar_inlet_functors
protectedinherited

◆ _passive_scalar_inlet_types

MultiMooseEnum WCNSFVScalarTransportPhysicsBase::_passive_scalar_inlet_types
protectedinherited

◆ _passive_scalar_names

std::vector<NonlinearVariableName> WCNSFVScalarTransportPhysicsBase::_passive_scalar_names
protectedinherited

◆ _passive_scalar_sources

std::vector<MooseFunctorName> WCNSFVScalarTransportPhysicsBase::_passive_scalar_sources
protectedinherited

◆ _passive_scalar_sources_coef

std::vector<std::vector<Real> > WCNSFVScalarTransportPhysicsBase::_passive_scalar_sources_coef
protectedinherited

Coefficients multiplying for the passive scalar sources. Inner indexing is scalar variable index.

Definition at line 62 of file WCNSFVScalarTransportPhysicsBase.h.

Referenced by WCNSLinearFVScalarTransportPhysics::addScalarSourceKernels(), WCNSFVScalarTransportPhysics::addScalarSourceKernels(), and WCNSFVScalarTransportPhysicsBase::WCNSFVScalarTransportPhysicsBase().

◆ _phase_1_density

const MooseFunctorName WCNSLinearFVTwoPhaseMixturePhysics::_phase_1_density
private

Name of the density of the first phase.

Definition at line 58 of file WCNSLinearFVTwoPhaseMixturePhysics.h.

Referenced by addMaterials().

◆ _phase_1_fraction_name

const MooseFunctorName WCNSLinearFVTwoPhaseMixturePhysics::_phase_1_fraction_name
private

Name of the first phase fraction (usually, liquid)

Definition at line 53 of file WCNSLinearFVTwoPhaseMixturePhysics.h.

Referenced by addMaterials(), addPhaseInterfaceTerm(), and WCNSLinearFVTwoPhaseMixturePhysics().

◆ _phase_1_specific_heat

const MooseFunctorName WCNSLinearFVTwoPhaseMixturePhysics::_phase_1_specific_heat
private

Name of the specific heat of the first phase.

Definition at line 62 of file WCNSLinearFVTwoPhaseMixturePhysics.h.

Referenced by addMaterials().

◆ _phase_1_thermal_conductivity

const MooseFunctorName WCNSLinearFVTwoPhaseMixturePhysics::_phase_1_thermal_conductivity
private

Name of the thermal conductivity of the first phase.

Definition at line 64 of file WCNSLinearFVTwoPhaseMixturePhysics.h.

Referenced by addMaterials().

◆ _phase_1_viscosity

const MooseFunctorName WCNSLinearFVTwoPhaseMixturePhysics::_phase_1_viscosity
private

Name of the dynamic viscosity of the first phase.

Definition at line 60 of file WCNSLinearFVTwoPhaseMixturePhysics.h.

Referenced by addMaterials().

◆ _phase_2_density

const MooseFunctorName WCNSLinearFVTwoPhaseMixturePhysics::_phase_2_density
private

Name of the density of the other phase.

Definition at line 67 of file WCNSLinearFVTwoPhaseMixturePhysics.h.

Referenced by addMaterials(), and addPhaseDriftFluxTerm().

◆ _phase_2_fraction_name

const MooseFunctorName WCNSLinearFVTwoPhaseMixturePhysics::_phase_2_fraction_name
private

Name of the second phase fraction (usually, dispersed or advected by the liquid)

Definition at line 55 of file WCNSLinearFVTwoPhaseMixturePhysics.h.

Referenced by addMaterials(), addPhaseDriftFluxTerm(), addPhaseInterfaceTerm(), and WCNSLinearFVTwoPhaseMixturePhysics().

◆ _phase_2_specific_heat

const MooseFunctorName WCNSLinearFVTwoPhaseMixturePhysics::_phase_2_specific_heat
private

Name of the specific heat of the other phase.

Definition at line 71 of file WCNSLinearFVTwoPhaseMixturePhysics.h.

Referenced by addMaterials().

◆ _phase_2_thermal_conductivity

const MooseFunctorName WCNSLinearFVTwoPhaseMixturePhysics::_phase_2_thermal_conductivity
private

Name of the thermal conductivity of the other phase.

Definition at line 73 of file WCNSLinearFVTwoPhaseMixturePhysics.h.

Referenced by addMaterials().

◆ _phase_2_viscosity

const MooseFunctorName WCNSLinearFVTwoPhaseMixturePhysics::_phase_2_viscosity
private

Name of the dynamic viscosity of the other phase.

Definition at line 69 of file WCNSLinearFVTwoPhaseMixturePhysics.h.

Referenced by addMaterials().

◆ _porous_medium_treatment

const bool WCNSFVCoupledAdvectionPhysicsHelper::_porous_medium_treatment
protectedinherited

◆ _pressure_name

const NonlinearVariableName WCNSFVCoupledAdvectionPhysicsHelper::_pressure_name
protectedinherited

Pressure name.

Definition at line 56 of file WCNSFVCoupledAdvectionPhysicsHelper.h.

◆ _turbulence_physics

const WCNSFVTurbulencePhysics* WCNSFVCoupledAdvectionPhysicsHelper::_turbulence_physics
protectedinherited

◆ _use_advection_slip

const bool WCNSLinearFVTwoPhaseMixturePhysics::_use_advection_slip
private

Whether to add the advection slip term to each component of the momentum equation.

Definition at line 81 of file WCNSLinearFVTwoPhaseMixturePhysics.h.

Referenced by addFVKernels(), addMaterials(), and WCNSLinearFVTwoPhaseMixturePhysics().

◆ _use_drift_flux

const bool WCNSLinearFVTwoPhaseMixturePhysics::_use_drift_flux
private

Whether to add the drift flux momentum terms to each component momentum equation.

Definition at line 79 of file WCNSLinearFVTwoPhaseMixturePhysics.h.

Referenced by addFVKernels(), addMaterials(), and WCNSLinearFVTwoPhaseMixturePhysics().

◆ _use_external_mixture_properties

const bool WCNSLinearFVTwoPhaseMixturePhysics::_use_external_mixture_properties
private

Whether to define the mixture model internally or use fluid properties instead.

Definition at line 76 of file WCNSLinearFVTwoPhaseMixturePhysics.h.

Referenced by addMaterials().

◆ _velocity_interpolation

const MooseEnum WCNSFVCoupledAdvectionPhysicsHelper::_velocity_interpolation
protectedinherited

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

Definition at line 64 of file WCNSFVCoupledAdvectionPhysicsHelper.h.

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

◆ _velocity_names

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

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