Helper class to set up some objects for 1-phase flow. More...
#include <FlowModelSetup1Phase.h>
Public Member Functions | |
FlowModelSetup1Phase (const InputParameters ¶ms) | |
Static Public Member Functions | |
static InputParameters | validParams () |
Protected Member Functions | |
virtual void | addInitialConditions () override |
virtual void | addSolutionVariables () override |
virtual void | addNonConstantAuxVariables () override |
virtual void | addMaterials () override |
virtual void | addUserObjects () override |
void | addSolutionVariable (const VariableName &var_name, const Real &scaling=1.0) |
Adds a solution variable. More... | |
void | addAuxVariable (const VariableName &var_name) |
Adds an aux variable. More... | |
void | addFunctionIC (const VariableName &var_name, const FunctionName &function_name) |
Adds a function initial condition. More... | |
template<typename T > | |
const T & | getParam (const std::string &name) const |
Retrieves a parameter. More... | |
Protected Attributes | |
const FunctionName | _p_fn |
Pressure function name. More... | |
const FunctionName | _T_fn |
Temperature function name. More... | |
const FunctionName | _vel_fn |
Velocity function name. More... | |
const FunctionName | _A_fn |
Area function name. More... | |
const FunctionName | _D_h_fn |
Hydraulic diameter function name. More... | |
const UserObjectName | _fp_1phase_name |
Single-phase fluid properties object name. More... | |
const VariableName | _unity_name |
Name of unity. More... | |
const VariableName | _A_name |
Name of area variable. More... | |
const VariableName | _D_h_name |
Name of the hydraulic diameter. More... | |
const VariableName | _rhoA_name |
Name of rho*A variable. More... | |
const VariableName | _rhouA_name |
Name of rho*u*A variable. More... | |
const VariableName | _rhoEA_name |
Name of rho*E*A variable. More... | |
const VariableName | _rho_name |
Name of rho variable. More... | |
const VariableName | _vel_name |
Name of velocity variable. More... | |
const VariableName | _p_name |
Name of pressure variable. More... | |
const VariableName | _T_name |
Name of temperature variable. More... | |
const VariableName | _v_name |
Name of specific volume variable. More... | |
const VariableName | _e_name |
Name of specific internal energy variable. More... | |
const VariableName | _H_name |
Name of specific total enthalpy variable. More... | |
const VariableName | _mu_name |
Name of dynamic viscosity variable. More... | |
const bool & | _ad |
True for setting up testing with AD, false otherwise. More... | |
const InputParameters & | _this_params |
MooseApp & | _this_app |
ActionFactory & | _this_action_factory |
ActionWarehouse & | _this_action_warehouse |
MooseEnum | _fe_family |
MooseEnum | _fe_order |
const Real & | _gravity_magnitude |
Gravitational acceleration magnitude. More... | |
Helper class to set up some objects for 1-phase flow.
Definition at line 17 of file FlowModelSetup1Phase.h.
FlowModelSetup1Phase::FlowModelSetup1Phase | ( | const InputParameters & | params | ) |
Definition at line 33 of file FlowModelSetup1Phase.C.
|
protectedinherited |
Adds an aux variable.
[in] | var_name | name of the variable to add |
Definition at line 56 of file FlowModelSetup.C.
Referenced by ClosureTest1PhaseAction::addAuxVariables(), and addNonConstantAuxVariables().
|
protectedinherited |
Adds a function initial condition.
[in] | var_name | name of the variable for which to add initial condition |
[in] | function_name | names of the IC function |
Definition at line 68 of file FlowModelSetup.C.
Referenced by addInitialConditions().
|
overrideprotectedvirtual |
Implements FlowModelSetup.
Reimplemented in ClosureTest1PhaseAction, and JacobianTest1PhaseAction.
Definition at line 63 of file FlowModelSetup1Phase.C.
Referenced by ClosureTest1PhaseAction::addInitialConditions(), and JacobianTest1PhaseAction::addInitialConditions().
|
overrideprotectedvirtual |
Reimplemented from FlowModelSetup.
Reimplemented in JacobianTest1PhaseAction, and ClosureTest1PhaseAction.
Definition at line 344 of file FlowModelSetup1Phase.C.
Referenced by ClosureTest1PhaseAction::addMaterials(), and JacobianTest1PhaseAction::addMaterials().
|
overrideprotectedvirtual |
Implements FlowModelSetup.
Definition at line 192 of file FlowModelSetup1Phase.C.
Referenced by ClosureTest1PhaseAction::addAuxVariables(), and JacobianTest1PhaseAction::addAuxVariables().
|
protectedinherited |
Adds a solution variable.
[in] | var_name | name of the variable to add |
[in] | scaling | scaling factor to apply to variable |
Definition at line 41 of file FlowModelSetup.C.
Referenced by addSolutionVariables().
|
overrideprotectedvirtual |
Implements FlowModelSetup.
Reimplemented in JacobianTest1PhaseAction.
Definition at line 181 of file FlowModelSetup1Phase.C.
Referenced by JacobianTest1PhaseAction::addSolutionVariables().
|
overrideprotectedvirtual |
Implements FlowModelSetup.
Reimplemented in JacobianTest1PhaseAction, and ClosureTest1PhaseAction.
Definition at line 434 of file FlowModelSetup1Phase.C.
Referenced by ClosureTest1PhaseAction::addUserObjects(), and JacobianTest1PhaseAction::addUserObjects().
|
protectedinherited |
Retrieves a parameter.
[in] | name | name of the parameter |
Definition at line 82 of file FlowModelSetup.h.
|
static |
Definition at line 14 of file FlowModelSetup1Phase.C.
Referenced by ClosureTest1PhaseAction::validParams(), and JacobianTest1PhaseAction::validParams().
|
protected |
Area function name.
Definition at line 36 of file FlowModelSetup1Phase.h.
Referenced by addInitialConditions(), and addNonConstantAuxVariables().
|
protected |
Name of area variable.
Definition at line 46 of file FlowModelSetup1Phase.h.
Referenced by addInitialConditions(), addMaterials(), and addNonConstantAuxVariables().
|
protected |
True for setting up testing with AD, false otherwise.
Definition at line 73 of file FlowModelSetup1Phase.h.
Referenced by addMaterials().
|
protected |
Hydraulic diameter function name.
Definition at line 38 of file FlowModelSetup1Phase.h.
Referenced by addMaterials().
|
protected |
Name of the hydraulic diameter.
Definition at line 48 of file FlowModelSetup1Phase.h.
Referenced by addMaterials().
|
protected |
Name of specific internal energy variable.
Definition at line 66 of file FlowModelSetup1Phase.h.
Referenced by addInitialConditions(), addMaterials(), and addNonConstantAuxVariables().
|
protectedinherited |
Definition at line 70 of file FlowModelSetup.h.
Referenced by FlowModelSetup::addSolutionVariable().
|
protectedinherited |
Definition at line 71 of file FlowModelSetup.h.
Referenced by FlowModelSetup::addSolutionVariable(), and FlowModelSetup::FlowModelSetup().
|
protected |
Single-phase fluid properties object name.
Definition at line 41 of file FlowModelSetup1Phase.h.
Referenced by addInitialConditions(), addMaterials(), and addNonConstantAuxVariables().
|
protectedinherited |
Gravitational acceleration magnitude.
Definition at line 74 of file FlowModelSetup.h.
|
protected |
Name of specific total enthalpy variable.
Definition at line 68 of file FlowModelSetup1Phase.h.
Referenced by addInitialConditions(), and addNonConstantAuxVariables().
|
protected |
Name of dynamic viscosity variable.
Definition at line 70 of file FlowModelSetup1Phase.h.
Referenced by addMaterials().
|
protected |
Pressure function name.
Definition at line 30 of file FlowModelSetup1Phase.h.
Referenced by addInitialConditions().
|
protected |
Name of pressure variable.
Definition at line 60 of file FlowModelSetup1Phase.h.
Referenced by addInitialConditions(), and addNonConstantAuxVariables().
|
protected |
Name of rho variable.
Definition at line 56 of file FlowModelSetup1Phase.h.
Referenced by addInitialConditions(), and addNonConstantAuxVariables().
|
protected |
Name of rho*A variable.
Definition at line 50 of file FlowModelSetup1Phase.h.
Referenced by ClosureTest1PhaseAction::addAuxVariables(), addInitialConditions(), addMaterials(), addNonConstantAuxVariables(), and addSolutionVariables().
|
protected |
Name of rho*E*A variable.
Definition at line 54 of file FlowModelSetup1Phase.h.
Referenced by ClosureTest1PhaseAction::addAuxVariables(), addInitialConditions(), addMaterials(), addNonConstantAuxVariables(), and addSolutionVariables().
|
protected |
Name of rho*u*A variable.
Definition at line 52 of file FlowModelSetup1Phase.h.
Referenced by ClosureTest1PhaseAction::addAuxVariables(), addInitialConditions(), addMaterials(), addNonConstantAuxVariables(), and addSolutionVariables().
|
protected |
Temperature function name.
Definition at line 32 of file FlowModelSetup1Phase.h.
Referenced by addInitialConditions().
|
protected |
Name of temperature variable.
Definition at line 62 of file FlowModelSetup1Phase.h.
Referenced by addInitialConditions(), and addNonConstantAuxVariables().
|
protectedinherited |
Definition at line 67 of file FlowModelSetup.h.
Referenced by FlowModelSetup::addAuxVariable(), FlowModelSetup::addFunctionIC(), addInitialConditions(), addMaterials(), FlowModelSetup::addMaterials(), addNonConstantAuxVariables(), and FlowModelSetup::addSolutionVariable().
|
protectedinherited |
Definition at line 68 of file FlowModelSetup.h.
Referenced by FlowModelSetup::addAuxVariable(), FlowModelSetup::addFunctionIC(), addInitialConditions(), addMaterials(), FlowModelSetup::addMaterials(), addNonConstantAuxVariables(), and FlowModelSetup::addSolutionVariable().
|
protectedinherited |
Definition at line 66 of file FlowModelSetup.h.
|
protectedinherited |
Definition at line 65 of file FlowModelSetup.h.
Referenced by FlowModelSetup::getParam().
|
protected |
|
protected |
Name of specific volume variable.
Definition at line 64 of file FlowModelSetup1Phase.h.
Referenced by addInitialConditions(), addMaterials(), and addNonConstantAuxVariables().
|
protected |
Velocity function name.
Definition at line 34 of file FlowModelSetup1Phase.h.
Referenced by addInitialConditions().
|
protected |
Name of velocity variable.
Definition at line 58 of file FlowModelSetup1Phase.h.
Referenced by addInitialConditions(), and addNonConstantAuxVariables().