Action for setting up a Jacobian test for 1-phase flow. More...
#include <JacobianTest1PhaseAction.h>
Public Types | |
typedef DataFileName | DataFileParameterType |
Public Member Functions | |
JacobianTest1PhaseAction (const InputParameters ¶ms) | |
virtual void | act () |
void | timedAct () |
virtual void | addRelationshipManagers (Moose::RelationshipManagerType when_type) |
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 |
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 ¶meter_name) const |
const InputParameters & | parameters () const |
MooseObjectName | uniqueName () const |
const T & | getParam (const std::string &name) const |
std::vector< std::pair< T1, T2 > > | getParam (const std::string ¶m1, const std::string ¶m2) 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 &nm) const |
void | paramError (const std::string ¶m, Args... args) const |
void | paramWarning (const std::string ¶m, Args... args) const |
void | paramInfo (const std::string ¶m, Args... args) const |
void | connectControllableParams (const std::string ¶meter, 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 ¶m) const |
std::string | getDataFileNameByName (const std::string &relative_path) const |
std::string | getDataFilePath (const std::string &relative_path) const |
PerfGraph & | perfGraph () |
const Parallel::Communicator & | comm () const |
processor_id_type | n_processors () const |
processor_id_type | processor_id () 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 | addInitialConditions () override |
virtual void | addSolutionVariables () override |
virtual void | addAuxVariables () override |
Adds aux variables. More... | |
virtual void | addMaterials () override |
virtual void | addUserObjects () override |
virtual void | addPreconditioner () override |
Adds the preconditioner. More... | |
void | addMeshInternal (const unsigned int &nx) |
Adds the mesh with a provided number of elements in x direction. More... | |
virtual void | addObjects () |
Adds all non-mesh objects. More... | |
void | addScalarVariables (const std::vector< VariableName > &names, const std::vector< FunctionName > &values) |
Adds scalar variables. More... | |
void | addSolutionVariable (const VariableName &var_name, const std::string &family="LAGRANGE", const std::string &order="FIRST", const Real &scaling=1.0) |
Adds a solution variable. More... | |
void | addAuxVariable (const VariableName &var_name, const std::string &fe_family, const std::string &fe_order) |
Adds an aux variable. More... | |
void | addConstantIC (const VariableName &var_name, const Real &value) |
Adds a constant initial condition. More... | |
void | addFunctionIC (const VariableName &var_name, const FunctionName &function_name) |
Adds a function initial condition. More... | |
virtual void | addMesh () |
Adds the mesh. More... | |
virtual void | addExecutioner () |
Adds the executioner. More... | |
virtual void | addOutput () |
Add output. More... | |
bool | addRelationshipManagers (Moose::RelationshipManagerType when_type, const InputParameters &moose_object_pars) |
void | associateWithParameter (const std::string ¶m_name, InputParameters ¶ms) const |
void | associateWithParameter (const InputParameters &from_params, const std::string ¶m_name, InputParameters ¶ms) 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 §ion_name, const unsigned int level) const |
PerfID | registerTimedSection (const std::string §ion_name, const unsigned int level, const std::string &live_message, const bool print_dots=true) const |
std::string | timedSectionName (const std::string §ion_name) const |
virtual void | addNonConstantAuxVariables () 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... | |
Static Protected Member Functions | |
static std::string | meshPropertyName (const std::string &data_name, const std::string &prefix) |
Protected Attributes | |
const std::string | _snes_test_err |
Finite differencing parameter. More... | |
bool | _default_use_transient_executioner |
Default for option to use a transient executioner. More... | |
const std::vector< VariableName > | _scalar_variables |
List of scalar variables to add. More... | |
const std::vector< FunctionName > | _scalar_variable_values |
List of values for the scalar variables to add. More... | |
const std::vector< VariableName > | _aux_variables |
List of aux variables to add. More... | |
const std::vector< FunctionName > | _aux_variable_values |
List of function names for aux variables to add. More... | |
const std::vector< std::string > | _mat_property_names |
List of material properties to add. More... | |
const std::vector< FunctionName > | _mat_property_values |
List of function names for material properties to add. More... | |
const std::string | _fe_family |
Default FE family. More... | |
const std::string | _fe_order |
Default FE order. More... | |
const bool & | _ad |
True for setting up testing with AD, false otherwise. More... | |
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 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... | |
Action for setting up a Jacobian test for 1-phase flow.
Definition at line 18 of file JacobianTest1PhaseAction.h.
JacobianTest1PhaseAction::JacobianTest1PhaseAction | ( | const InputParameters & | params | ) |
Definition at line 27 of file JacobianTest1PhaseAction.C.
|
virtualinherited |
Implements Action.
Definition at line 75 of file TestAction.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 FlowModelSetup1Phase::addNonConstantAuxVariables().
|
protectedinherited |
Adds an aux variable.
[in] | var_name | name of the variable to add |
[in] | fe_family | finite element family |
[in] | fe_order | finite element order |
Definition at line 248 of file TestAction.C.
Referenced by ClosureTestAction::addAuxVariables(), JacobianTest1PhaseRDGAction::addAuxVariables(), TestAction::addAuxVariables(), ClosureTestAction::setupADOutput(), and ClosureTestAction::setupOutput().
|
overrideprotectedvirtual |
Adds aux variables.
Reimplemented from TestAction.
Definition at line 45 of file JacobianTest1PhaseAction.C.
|
protectedinherited |
Adds a constant initial condition.
[in] | var_name | name of the variable for which to add initial condition |
[in] | value | value of the initial condition |
Definition at line 265 of file TestAction.C.
Referenced by JacobianTest1PhaseRDGAction::addSolutionVariables().
|
protectedvirtualinherited |
Adds the executioner.
Definition at line 302 of file TestAction.C.
Referenced by TestAction::addObjects().
|
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 FlowModelSetup1Phase::addInitialConditions().
|
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 281 of file TestAction.C.
Referenced by JacobianTest1PhaseRDGAction::addAuxVariables(), TestAction::addAuxVariables(), ClosureTestAction::addInitialConditions(), JacobianTestGeneralAction::addSolutionVariables(), and JacobianTest1PhaseRDGAction::addSolutionVariablesRiemannIC().
|
overrideprotectedvirtual |
Reimplemented from FlowModelSetup1Phase.
Definition at line 33 of file JacobianTest1PhaseAction.C.
|
overrideprotectedvirtual |
Reimplemented from FlowModelSetup1Phase.
Definition at line 52 of file JacobianTest1PhaseAction.C.
|
protectedvirtualinherited |
Adds the mesh.
Reimplemented in JacobianTest1PhaseRDGAction.
Definition at line 99 of file TestAction.C.
Referenced by TestAction::act().
Adds the mesh with a provided number of elements in x direction.
[in] | nx | number of elements in x direction |
Definition at line 105 of file TestAction.C.
Referenced by JacobianTest1PhaseRDGAction::addMesh(), and TestAction::addMesh().
|
overrideprotectedvirtualinherited |
Implements FlowModelSetup.
Definition at line 192 of file FlowModelSetup1Phase.C.
Referenced by ClosureTest1PhaseAction::addAuxVariables(), and addAuxVariables().
|
protectedvirtualinherited |
Adds all non-mesh objects.
Reimplemented in JacobianTest1PhaseRDGAction.
Definition at line 140 of file TestAction.C.
Referenced by TestAction::act(), and JacobianTest1PhaseRDGAction::addObjects().
|
protectedvirtualinherited |
Add output.
Reimplemented in ClosureTestAction.
Definition at line 351 of file TestAction.C.
Referenced by TestAction::addObjects().
|
overrideprotectedvirtualinherited |
Adds the preconditioner.
Reimplemented from TestAction.
Definition at line 34 of file JacobianTestAction.C.
|
protectedinherited |
Adds scalar variables.
[in] | names | names of the variables to add |
[in] | values | values of the variables to add |
Definition at line 154 of file TestAction.C.
Referenced by TestAction::addObjects().
|
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 FlowModelSetup1Phase::addSolutionVariables().
|
protectedinherited |
Adds a solution variable.
[in] | var_name | name of the variable to add |
[in] | family | variable family |
[in] | order | variable order |
[in] | scaling | scaling factor to apply to variable |
Definition at line 230 of file TestAction.C.
Referenced by TestAction::addScalarVariables(), ClosureTestAction::addSolutionVariables(), JacobianTest1PhaseRDGAction::addSolutionVariables(), JacobianTestGeneralAction::addSolutionVariables(), and JacobianTest1PhaseRDGAction::addSolutionVariablesRiemannIC().
|
overrideprotectedvirtual |
Reimplemented from FlowModelSetup1Phase.
Definition at line 39 of file JacobianTest1PhaseAction.C.
|
overrideprotectedvirtual |
Reimplemented from FlowModelSetup1Phase.
Definition at line 59 of file JacobianTest1PhaseAction.C.
|
protectedinherited |
Retrieves a parameter.
[in] | name | name of the parameter |
Definition at line 82 of file FlowModelSetup.h.
|
static |
Definition at line 15 of file JacobianTest1PhaseAction.C.
|
protectedinherited |
Area function name.
Definition at line 36 of file FlowModelSetup1Phase.h.
Referenced by FlowModelSetup1Phase::addInitialConditions(), and FlowModelSetup1Phase::addNonConstantAuxVariables().
|
protectedinherited |
Name of area variable.
Definition at line 46 of file FlowModelSetup1Phase.h.
Referenced by FlowModelSetup1Phase::addInitialConditions(), FlowModelSetup1Phase::addMaterials(), and FlowModelSetup1Phase::addNonConstantAuxVariables().
|
protectedinherited |
True for setting up testing with AD, false otherwise.
Definition at line 73 of file FlowModelSetup1Phase.h.
Referenced by FlowModelSetup1Phase::addMaterials().
|
protectedinherited |
True for setting up testing with AD, false otherwise.
Definition at line 154 of file TestAction.h.
Referenced by ClosureTestAction::addMaterials(), and JacobianTest1PhaseRDGAction::addMaterials().
|
protectedinherited |
List of function names for aux variables to add.
Definition at line 142 of file TestAction.h.
Referenced by TestAction::addAuxVariables(), and TestAction::TestAction().
|
protectedinherited |
List of aux variables to add.
Definition at line 140 of file TestAction.h.
Referenced by TestAction::addAuxVariables(), and TestAction::TestAction().
|
protectedinherited |
Hydraulic diameter function name.
Definition at line 38 of file FlowModelSetup1Phase.h.
Referenced by FlowModelSetup1Phase::addMaterials().
|
protectedinherited |
Name of the hydraulic diameter.
Definition at line 48 of file FlowModelSetup1Phase.h.
Referenced by FlowModelSetup1Phase::addMaterials().
|
protectedinherited |
Default for option to use a transient executioner.
Definition at line 132 of file TestAction.h.
Referenced by TestAction::addExecutioner(), and ClosureTestAction::ClosureTestAction().
|
protectedinherited |
Name of specific internal energy variable.
Definition at line 66 of file FlowModelSetup1Phase.h.
Referenced by FlowModelSetup1Phase::addInitialConditions(), FlowModelSetup1Phase::addMaterials(), and FlowModelSetup1Phase::addNonConstantAuxVariables().
|
protectedinherited |
Definition at line 70 of file FlowModelSetup.h.
Referenced by FlowModelSetup::addSolutionVariable().
|
protectedinherited |
Default FE family.
Definition at line 150 of file TestAction.h.
Referenced by ClosureTestAction::addAuxVariables(), JacobianTest1PhaseRDGAction::addAuxVariables(), and TestAction::addAuxVariables().
|
protectedinherited |
Definition at line 71 of file FlowModelSetup.h.
Referenced by FlowModelSetup::addSolutionVariable(), and FlowModelSetup::FlowModelSetup().
|
protectedinherited |
Default FE order.
Definition at line 152 of file TestAction.h.
Referenced by ClosureTestAction::addAuxVariables(), JacobianTest1PhaseRDGAction::addAuxVariables(), and TestAction::addAuxVariables().
|
protectedinherited |
Single-phase fluid properties object name.
Definition at line 41 of file FlowModelSetup1Phase.h.
Referenced by FlowModelSetup1Phase::addInitialConditions(), FlowModelSetup1Phase::addMaterials(), and FlowModelSetup1Phase::addNonConstantAuxVariables().
|
protectedinherited |
Gravitational acceleration magnitude.
Definition at line 74 of file FlowModelSetup.h.
|
protectedinherited |
Name of specific total enthalpy variable.
Definition at line 68 of file FlowModelSetup1Phase.h.
Referenced by FlowModelSetup1Phase::addInitialConditions(), and FlowModelSetup1Phase::addNonConstantAuxVariables().
|
protectedinherited |
List of material properties to add.
Definition at line 145 of file TestAction.h.
Referenced by TestAction::addMaterials(), and TestAction::TestAction().
|
protectedinherited |
List of function names for material properties to add.
Definition at line 147 of file TestAction.h.
Referenced by TestAction::addMaterials(), and TestAction::TestAction().
|
protectedinherited |
Name of dynamic viscosity variable.
Definition at line 70 of file FlowModelSetup1Phase.h.
Referenced by FlowModelSetup1Phase::addMaterials().
|
protectedinherited |
Pressure function name.
Definition at line 30 of file FlowModelSetup1Phase.h.
Referenced by FlowModelSetup1Phase::addInitialConditions().
|
protectedinherited |
Name of pressure variable.
Definition at line 60 of file FlowModelSetup1Phase.h.
Referenced by FlowModelSetup1Phase::addInitialConditions(), and FlowModelSetup1Phase::addNonConstantAuxVariables().
|
protectedinherited |
Name of rho variable.
Definition at line 56 of file FlowModelSetup1Phase.h.
Referenced by FlowModelSetup1Phase::addInitialConditions(), and FlowModelSetup1Phase::addNonConstantAuxVariables().
|
protectedinherited |
Name of rho*A variable.
Definition at line 50 of file FlowModelSetup1Phase.h.
Referenced by ClosureTest1PhaseAction::addAuxVariables(), FlowModelSetup1Phase::addInitialConditions(), FlowModelSetup1Phase::addMaterials(), FlowModelSetup1Phase::addNonConstantAuxVariables(), and FlowModelSetup1Phase::addSolutionVariables().
|
protectedinherited |
Name of rho*E*A variable.
Definition at line 54 of file FlowModelSetup1Phase.h.
Referenced by ClosureTest1PhaseAction::addAuxVariables(), FlowModelSetup1Phase::addInitialConditions(), FlowModelSetup1Phase::addMaterials(), FlowModelSetup1Phase::addNonConstantAuxVariables(), and FlowModelSetup1Phase::addSolutionVariables().
|
protectedinherited |
Name of rho*u*A variable.
Definition at line 52 of file FlowModelSetup1Phase.h.
Referenced by ClosureTest1PhaseAction::addAuxVariables(), FlowModelSetup1Phase::addInitialConditions(), FlowModelSetup1Phase::addMaterials(), FlowModelSetup1Phase::addNonConstantAuxVariables(), and FlowModelSetup1Phase::addSolutionVariables().
|
protectedinherited |
List of values for the scalar variables to add.
Definition at line 137 of file TestAction.h.
Referenced by TestAction::addObjects(), and TestAction::TestAction().
|
protectedinherited |
List of scalar variables to add.
Definition at line 135 of file TestAction.h.
Referenced by TestAction::addObjects(), and TestAction::TestAction().
|
protectedinherited |
Finite differencing parameter.
Definition at line 26 of file JacobianTestAction.h.
Referenced by JacobianTestAction::addPreconditioner().
|
protectedinherited |
Temperature function name.
Definition at line 32 of file FlowModelSetup1Phase.h.
Referenced by FlowModelSetup1Phase::addInitialConditions().
|
protectedinherited |
Name of temperature variable.
Definition at line 62 of file FlowModelSetup1Phase.h.
Referenced by FlowModelSetup1Phase::addInitialConditions(), and FlowModelSetup1Phase::addNonConstantAuxVariables().
|
protectedinherited |
Definition at line 67 of file FlowModelSetup.h.
Referenced by FlowModelSetup::addAuxVariable(), FlowModelSetup::addFunctionIC(), FlowModelSetup1Phase::addInitialConditions(), FlowModelSetup1Phase::addMaterials(), FlowModelSetup::addMaterials(), FlowModelSetup1Phase::addNonConstantAuxVariables(), and FlowModelSetup::addSolutionVariable().
|
protectedinherited |
Definition at line 68 of file FlowModelSetup.h.
Referenced by FlowModelSetup::addAuxVariable(), FlowModelSetup::addFunctionIC(), FlowModelSetup1Phase::addInitialConditions(), FlowModelSetup1Phase::addMaterials(), FlowModelSetup::addMaterials(), FlowModelSetup1Phase::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().
|
protectedinherited |
Name of unity.
Definition at line 44 of file FlowModelSetup1Phase.h.
Referenced by FlowModelSetup1Phase::addMaterials().
|
protectedinherited |
Name of specific volume variable.
Definition at line 64 of file FlowModelSetup1Phase.h.
Referenced by FlowModelSetup1Phase::addInitialConditions(), FlowModelSetup1Phase::addMaterials(), and FlowModelSetup1Phase::addNonConstantAuxVariables().
|
protectedinherited |
Velocity function name.
Definition at line 34 of file FlowModelSetup1Phase.h.
Referenced by FlowModelSetup1Phase::addInitialConditions().
|
protectedinherited |
Name of velocity variable.
Definition at line 58 of file FlowModelSetup1Phase.h.
Referenced by FlowModelSetup1Phase::addInitialConditions(), and FlowModelSetup1Phase::addNonConstantAuxVariables().