www.mooseframework.org
Functions
Q2PAction.C File Reference

Go to the source code of this file.

Functions

 registerMooseAction ("RichardsApp", Q2PAction, "add_kernel")
 
 registerMooseAction ("RichardsApp", Q2PAction, "add_aux_variable")
 
 registerMooseAction ("RichardsApp", Q2PAction, "add_function")
 
 registerMooseAction ("RichardsApp", Q2PAction, "add_postprocessor")
 
template<>
InputParameters validParams< Q2PAction > ()
 

Function Documentation

◆ registerMooseAction() [1/4]

registerMooseAction ( "RichardsApp"  ,
Q2PAction  ,
"add_aux_variable"   
)

◆ registerMooseAction() [2/4]

registerMooseAction ( "RichardsApp"  ,
Q2PAction  ,
"add_function"   
)

◆ registerMooseAction() [3/4]

registerMooseAction ( "RichardsApp"  ,
Q2PAction  ,
"add_kernel"   
)

◆ registerMooseAction() [4/4]

registerMooseAction ( "RichardsApp"  ,
Q2PAction  ,
"add_postprocessor"   
)

◆ validParams< Q2PAction >()

template<>
InputParameters validParams< Q2PAction > ( )

Definition at line 28 of file Q2PAction.C.

29 {
30  MooseEnum orders("CONSTANT FIRST SECOND THIRD FOURTH", "FIRST");
31 
32  InputParameters params = validParams<Action>();
33  params.addRequiredParam<NonlinearVariableName>("porepressure", "The porepressure variable");
34  params.addRequiredParam<NonlinearVariableName>("saturation", "The water saturation variable");
35  params.addRequiredParam<UserObjectName>(
36  "water_density",
37  "A RichardsDensity UserObject that defines the water density as a function of porepressure.");
38  params.addRequiredParam<UserObjectName>(
39  "water_relperm",
40  "A RichardsRelPerm UserObject that defines the water relative permeability "
41  "as a function of water saturation (eg RichardsRelPermPower).");
42  params.addParam<UserObjectName>(
43  "water_relperm_for_diffusion",
44  "A RichardsRelPerm UserObject that defines the water relative permeability as a function of "
45  "water saturation that will be used in the diffusivity Kernel (eg RichardsRelPermPower). If "
46  "not given, water_relperm will be used instead, which is the most common use-case.");
47  params.addRequiredParam<Real>("water_viscosity", "The water viscosity");
48  params.addRequiredParam<UserObjectName>(
49  "gas_density",
50  "A RichardsDensity UserObject that defines the gas density as a function of porepressure.");
51  params.addRequiredParam<UserObjectName>(
52  "gas_relperm",
53  "A RichardsRelPerm UserObject that defines the gas relative permeability as a "
54  "function of water saturation (eg Q2PRelPermPowerGas).");
55  params.addRequiredParam<Real>("gas_viscosity", "The gas viscosity");
56  params.addRequiredParam<Real>("diffusivity", "The diffusivity");
57  params.addParam<std::vector<OutputName>>("output_nodal_masses_to",
58  "Output Nodal masses to this Output object. If you "
59  "don't want any outputs, don't input anything here");
60  params.addParam<std::vector<OutputName>>(
61  "output_total_masses_to",
62  "Output total water and gas mass to this Output object. If you "
63  "don't want any outputs, don't input anything here");
64  params.addParam<bool>("save_gas_flux_in_Q2PGasFluxResidual",
65  false,
66  "Save the residual for the "
67  "Q2PPorepressureFlux into "
68  "the AuxVariable called "
69  "Q2PGasFluxResidual");
70  params.addParam<bool>("save_water_flux_in_Q2PWaterFluxResidual",
71  false,
72  "Save the residual for the Q2PSaturationFlux into the AuxVariable called "
73  "Q2PWaterFluxResidual");
74  params.addParam<bool>("save_gas_Jacobian_in_Q2PGasJacobian",
75  false,
76  "Save the diagonal component of the Q2PPorepressureFlux Jacobian into the "
77  "AuxVariable called Q2PGasJacobian");
78  params.addParam<bool>("save_water_Jacobian_in_Q2PWaterJacobian",
79  false,
80  "Save the diagonal component of the Q2PSaturationFlux Jacobian into the "
81  "AuxVariable called Q2PWaterJacobian");
82  params.addParam<MooseEnum>(
83  "ORDER",
84  orders,
85  "The order for the porepressure and saturation: " + orders.getRawNames() +
86  " (only needed if you're calculating masses)");
87  return params;
88 }