Action for setting up a closure test for 2-phase flow. More...
#include <ClosureTestAction.h>
Public Types | |
typedef DataFileName | DataFileParameterType |
Public Member Functions | |
ClosureTestAction (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 & | 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 |
Adds the initial conditions. More... | |
virtual void | addSolutionVariables () override |
Adds the solution variables. More... | |
virtual void | addAuxVariables () override |
Adds aux variables. More... | |
virtual void | addMaterials () override |
Adds materials. More... | |
virtual void | addOutput () override |
Add output. More... | |
void | setupOutput () |
void | setupADOutput () |
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 | addPreconditioner () |
Adds the preconditioner. More... | |
virtual void | addExecutioner () |
Adds the executioner. More... | |
virtual void | addUserObjects ()=0 |
Adds user objects. 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 |
Static Protected Member Functions | |
static std::string | meshPropertyName (const std::string &data_name, const std::string &prefix) |
Protected Attributes | |
const VariableName | _dummy_name |
Name of the dummy variable that is solved for. More... | |
const VariableName | _T_wall_name |
Wall temperature. More... | |
bool | _has_T_wall |
True if T_wall was specified. More... | |
const FunctionName | _T_wall_fn |
Wall temperature function name. More... | |
bool | _has_q_wall |
True if q_wall was specified. More... | |
const Real & | _q_wall |
Convective wall heat flux. More... | |
const std::vector< std::string > & | _output_properties |
List of material properties to output. More... | |
const std::vector< std::string > & | _output_ad_properties |
List of AD material properties to output. 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 |
Action for setting up a closure test for 2-phase flow.
Definition at line 17 of file ClosureTestAction.h.
ClosureTestAction::ClosureTestAction | ( | const InputParameters & | params | ) |
Definition at line 32 of file ClosureTestAction.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 |
[in] | fe_family | finite element family |
[in] | fe_order | finite element order |
Definition at line 248 of file TestAction.C.
Referenced by addAuxVariables(), JacobianTest1PhaseRDGAction::addAuxVariables(), TestAction::addAuxVariables(), setupADOutput(), and setupOutput().
|
overrideprotectedvirtual |
Adds aux variables.
Reimplemented from TestAction.
Reimplemented in ClosureTest1PhaseAction.
Definition at line 60 of file ClosureTestAction.C.
Referenced by ClosureTest1PhaseAction::addAuxVariables().
|
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 281 of file TestAction.C.
Referenced by JacobianTest1PhaseRDGAction::addAuxVariables(), TestAction::addAuxVariables(), addInitialConditions(), JacobianTestGeneralAction::addSolutionVariables(), and JacobianTest1PhaseRDGAction::addSolutionVariablesRiemannIC().
|
overrideprotectedvirtual |
Adds the initial conditions.
Implements TestAction.
Reimplemented in ClosureTest1PhaseAction.
Definition at line 47 of file ClosureTestAction.C.
Referenced by ClosureTest1PhaseAction::addInitialConditions().
|
overrideprotectedvirtual |
Adds materials.
Reimplemented from TestAction.
Reimplemented in ClosureTest1PhaseAction.
Definition at line 68 of file ClosureTestAction.C.
Referenced by ClosureTest1PhaseAction::addMaterials().
|
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().
|
protectedvirtualinherited |
Adds all non-mesh objects.
Reimplemented in JacobianTest1PhaseRDGAction.
Definition at line 140 of file TestAction.C.
Referenced by TestAction::act(), and JacobianTest1PhaseRDGAction::addObjects().
|
overrideprotectedvirtual |
Add output.
Reimplemented from TestAction.
Definition at line 91 of file ClosureTestAction.C.
|
protectedvirtualinherited |
Adds the preconditioner.
Reimplemented in JacobianTestAction.
Definition at line 297 of file TestAction.C.
Referenced by TestAction::addObjects().
|
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] | 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(), addSolutionVariables(), JacobianTest1PhaseRDGAction::addSolutionVariables(), JacobianTestGeneralAction::addSolutionVariables(), and JacobianTest1PhaseRDGAction::addSolutionVariablesRiemannIC().
|
overrideprotectedvirtual |
Adds the solution variables.
Implements TestAction.
Definition at line 54 of file ClosureTestAction.C.
|
protectedpure virtualinherited |
Adds user objects.
Implemented in JacobianTestGeneralAction, JacobianTest1PhaseRDGAction, JacobianTest1PhaseAction, and ClosureTest1PhaseAction.
Referenced by TestAction::addObjects().
|
protected |
Definition at line 152 of file ClosureTestAction.C.
Referenced by addOutput().
|
protected |
Definition at line 114 of file ClosureTestAction.C.
Referenced by addOutput().
|
static |
Definition at line 16 of file ClosureTestAction.C.
Referenced by ClosureTest1PhaseAction::validParams().
|
protectedinherited |
True for setting up testing with AD, false otherwise.
Definition at line 154 of file TestAction.h.
Referenced by 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 |
Default for option to use a transient executioner.
Definition at line 132 of file TestAction.h.
Referenced by TestAction::addExecutioner(), and ClosureTestAction().
|
protected |
Name of the dummy variable that is solved for.
Definition at line 33 of file ClosureTestAction.h.
Referenced by addSolutionVariables().
|
protectedinherited |
Default FE family.
Definition at line 150 of file TestAction.h.
Referenced by addAuxVariables(), JacobianTest1PhaseRDGAction::addAuxVariables(), and TestAction::addAuxVariables().
|
protectedinherited |
Default FE order.
Definition at line 152 of file TestAction.h.
Referenced by addAuxVariables(), JacobianTest1PhaseRDGAction::addAuxVariables(), and TestAction::addAuxVariables().
|
protected |
True if q_wall was specified.
Definition at line 42 of file ClosureTestAction.h.
Referenced by addMaterials().
|
protected |
True if T_wall was specified.
Definition at line 38 of file ClosureTestAction.h.
Referenced by addAuxVariables(), and addInitialConditions().
|
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().
|
protected |
List of AD material properties to output.
Definition at line 48 of file ClosureTestAction.h.
Referenced by addOutput(), and setupADOutput().
|
protected |
List of material properties to output.
Definition at line 46 of file ClosureTestAction.h.
Referenced by addOutput(), and setupOutput().
|
protected |
Convective wall heat flux.
Definition at line 44 of file ClosureTestAction.h.
Referenced by addMaterials().
|
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().
|
protected |
Wall temperature function name.
Definition at line 40 of file ClosureTestAction.h.
Referenced by addInitialConditions().
|
protected |
Wall temperature.
Definition at line 35 of file ClosureTestAction.h.
Referenced by addAuxVariables(), and addInitialConditions().