Sets up a Jacobian test for 1-phase rDG. More...
#include <JacobianTest1PhaseRDGAction.h>
Public Types | |
typedef DataFileName | DataFileParameterType |
Public Member Functions | |
JacobianTest1PhaseRDGAction (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 | addObjects () override |
Adds all non-mesh objects. More... | |
virtual void | addMesh () override |
Adds the mesh. More... | |
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 | addUserObjects () override |
Adds user objects. More... | |
void | addSolutionVariablesRiemannIC (const std::vector< VariableName > &variables, const std::vector< Real > &values_left, const std::vector< Real > &values_right) |
Adds solution variables with Riemann problem IC (constant left and right states) More... | |
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... | |
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 | 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 |
Static Protected Member Functions | |
static std::string | meshPropertyName (const std::string &data_name, const std::string &prefix) |
Protected Attributes | |
const VariableName | _A_name |
cross-sectional area variable name, elemental average More... | |
const VariableName | _A_linear_name |
cross-sectional area variable name, linear Lagrange More... | |
const VariableName | _rhoA_name |
rho*A variable name More... | |
const VariableName | _rhouA_name |
rho*u*A variable name More... | |
const VariableName | _rhoEA_name |
rho*E*A variable name More... | |
const bool | _add_dg_kernel |
option to add DG kernel More... | |
const bool | _add_bc |
option to BC More... | |
const UserObjectName | _numerical_flux_name |
name of numerical flux user object being tested More... | |
const UserObjectName | _boundary_flux_name |
name of boundary flux user object being tested More... | |
const MooseEnum | _ic_option |
initial conditions option More... | |
const FunctionName & | _A_fn_name |
area function name More... | |
const bool | _use_slope_reconstruction |
option to use slope reconstruction More... | |
const std::string | _reconstruction_material_name |
reconstruction material name More... | |
const MaterialPropertyName | _direction_name |
direction material property name More... | |
const UserObjectName | _fp_name |
fluid properties object name More... | |
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 |
Sets up a Jacobian test for 1-phase rDG.
Definition at line 18 of file JacobianTest1PhaseRDGAction.h.
JacobianTest1PhaseRDGAction::JacobianTest1PhaseRDGAction | ( | const InputParameters & | params | ) |
Definition at line 50 of file JacobianTest1PhaseRDGAction.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 ClosureTestAction::addAuxVariables(), addAuxVariables(), TestAction::addAuxVariables(), ClosureTestAction::setupADOutput(), and ClosureTestAction::setupOutput().
|
overrideprotectedvirtual |
Adds aux variables.
Reimplemented from TestAction.
Definition at line 239 of file JacobianTest1PhaseRDGAction.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 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 addAuxVariables(), TestAction::addAuxVariables(), ClosureTestAction::addInitialConditions(), JacobianTestGeneralAction::addSolutionVariables(), and addSolutionVariablesRiemannIC().
|
overrideprotectedvirtual |
Adds the initial conditions.
Implements TestAction.
Definition at line 152 of file JacobianTest1PhaseRDGAction.C.
|
overrideprotectedvirtual |
Adds materials.
Reimplemented from TestAction.
Definition at line 251 of file JacobianTest1PhaseRDGAction.C.
|
overrideprotectedvirtual |
Adds the mesh.
Reimplemented from TestAction.
Definition at line 142 of file JacobianTest1PhaseRDGAction.C.
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 addMesh(), and TestAction::addMesh().
|
overrideprotectedvirtual |
Adds all non-mesh objects.
Reimplemented from TestAction.
Definition at line 75 of file JacobianTest1PhaseRDGAction.C.
|
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] | 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(), addSolutionVariables(), JacobianTestGeneralAction::addSolutionVariables(), and addSolutionVariablesRiemannIC().
|
overrideprotectedvirtual |
Adds the solution variables.
Implements TestAction.
Definition at line 157 of file JacobianTest1PhaseRDGAction.C.
|
protected |
Adds solution variables with Riemann problem IC (constant left and right states)
[in] | variables | names of the solution variables |
[in] | values_left | values of the solution variables on the left half |
[in] | values_right | values of the solution variables on the right half |
Definition at line 206 of file JacobianTest1PhaseRDGAction.C.
Referenced by addSolutionVariables().
|
overrideprotectedvirtual |
Adds user objects.
Implements TestAction.
Definition at line 315 of file JacobianTest1PhaseRDGAction.C.
|
static |
Definition at line 19 of file JacobianTest1PhaseRDGAction.C.
|
protected |
area function name
Definition at line 67 of file JacobianTest1PhaseRDGAction.h.
Referenced by addAuxVariables().
|
protected |
cross-sectional area variable name, linear Lagrange
Definition at line 46 of file JacobianTest1PhaseRDGAction.h.
Referenced by addAuxVariables(), addMaterials(), and addObjects().
|
protected |
cross-sectional area variable name, elemental average
Definition at line 44 of file JacobianTest1PhaseRDGAction.h.
Referenced by addAuxVariables(), addMaterials(), and addObjects().
|
protectedinherited |
True for setting up testing with AD, false otherwise.
Definition at line 154 of file TestAction.h.
Referenced by ClosureTestAction::addMaterials(), and addMaterials().
|
protected |
option to BC
Definition at line 57 of file JacobianTest1PhaseRDGAction.h.
Referenced by addObjects(), and JacobianTest1PhaseRDGAction().
|
protected |
option to add DG kernel
Definition at line 55 of file JacobianTest1PhaseRDGAction.h.
Referenced by addMesh(), addObjects(), and JacobianTest1PhaseRDGAction().
|
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().
|
protected |
name of boundary flux user object being tested
Definition at line 62 of file JacobianTest1PhaseRDGAction.h.
Referenced by addObjects().
|
protectedinherited |
Default for option to use a transient executioner.
Definition at line 132 of file TestAction.h.
Referenced by TestAction::addExecutioner(), and ClosureTestAction::ClosureTestAction().
|
protected |
direction material property name
Definition at line 76 of file JacobianTest1PhaseRDGAction.h.
Referenced by addMaterials().
|
protectedinherited |
Default FE family.
Definition at line 150 of file TestAction.h.
Referenced by ClosureTestAction::addAuxVariables(), addAuxVariables(), and TestAction::addAuxVariables().
|
protectedinherited |
Default FE order.
Definition at line 152 of file TestAction.h.
Referenced by ClosureTestAction::addAuxVariables(), addAuxVariables(), and TestAction::addAuxVariables().
|
protected |
fluid properties object name
Definition at line 79 of file JacobianTest1PhaseRDGAction.h.
Referenced by addMaterials(), and addUserObjects().
|
protected |
initial conditions option
Definition at line 65 of file JacobianTest1PhaseRDGAction.h.
Referenced by addSolutionVariables().
|
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 |
name of numerical flux user object being tested
Definition at line 60 of file JacobianTest1PhaseRDGAction.h.
Referenced by addObjects().
|
protected |
reconstruction material name
Definition at line 73 of file JacobianTest1PhaseRDGAction.h.
Referenced by addMaterials().
|
protected |
rho*A variable name
Definition at line 48 of file JacobianTest1PhaseRDGAction.h.
Referenced by addMaterials(), addObjects(), and addSolutionVariables().
|
protected |
rho*E*A variable name
Definition at line 52 of file JacobianTest1PhaseRDGAction.h.
Referenced by addMaterials(), addObjects(), and addSolutionVariables().
|
protected |
rho*u*A variable name
Definition at line 50 of file JacobianTest1PhaseRDGAction.h.
Referenced by addMaterials(), addObjects(), and 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().
|
protected |
option to use slope reconstruction
Definition at line 70 of file JacobianTest1PhaseRDGAction.h.
Referenced by addMaterials().