#include <CavityPressureUserObject.h>
Definition at line 14 of file CavityPressureUserObject.h.
◆ CAVITY_PRESSURE_USEROBJECT_QUANTITY
◆ CavityPressureUserObject()
CavityPressureUserObject::CavityPressureUserObject |
( |
const InputParameters & |
parameters | ) |
|
Definition at line 48 of file CavityPressureUserObject.C.
49 : GeneralUserObject(params),
51 _n0(declareRestartableData<Real>(
"initial_moles", 0.0)),
53 _material_input(params.get<std::vector<PostprocessorName>>(
"material_input").size()),
54 _volume(params.get<std::vector<PostprocessorName>>(
"volume").size()),
55 _R(getParam<Real>(
"R")),
60 _initialized(declareRestartableData<bool>(
"initialized", false)),
63 auto material_names = params.get<std::vector<PostprocessorName>>(
"material_input");
67 auto volume_names = params.get<std::vector<PostprocessorName>>(
"volume");
68 for (
unsigned int i = 0; i < volume_names.size(); ++i)
69 _volume[i] = &getPostprocessorValueByName(volume_names[i]);
◆ computeCavityVolume()
Real CavityPressureUserObject::computeCavityVolume |
( |
| ) |
|
|
virtual |
◆ execute()
void CavityPressureUserObject::execute |
( |
| ) |
|
|
overridevirtual |
◆ finalize()
virtual void CavityPressureUserObject::finalize |
( |
| ) |
|
|
inlineoverridevirtual |
◆ getValue()
Real CavityPressureUserObject::getValue |
( |
const MooseEnum & |
quantity | ) |
const |
◆ initialize()
void CavityPressureUserObject::initialize |
( |
| ) |
|
|
overridevirtual |
Definition at line 94 of file CavityPressureUserObject.C.
103 if (MooseUtils::absoluteFuzzyLessEqual(init_temp, 0.0))
104 mooseError(
"Cannot have initial temperature of zero when initializing cavity pressure. "
105 "Does the supplied Postprocessor for temperature execute at initial?");
◆ validParams()
InputParameters CavityPressureUserObject::validParams |
( |
| ) |
|
|
static |
Definition at line 17 of file CavityPressureUserObject.C.
20 params.addClassDescription(
"Uses the ideal gas law to compute internal pressure "
21 "and an initial moles of gas quantity.");
22 params.addRangeCheckedParam<Real>(
25 "initial_pressure >= 0.0",
26 "The initial pressure in the cavity. If not given, a zero initial pressure will be used.");
27 params.addParam<std::vector<PostprocessorName>>(
"material_input",
28 "The name of the postprocessor(s) that holds the "
29 "amount of material injected into the cavity.");
30 params.addRequiredRangeCheckedParam<Real>(
31 "R",
"R > 0.0",
"The universal gas constant for the units used.");
32 params.addRequiredParam<PostprocessorName>(
33 "temperature",
"The name of the average temperature postprocessor value.");
34 params.addRangeCheckedParam<Real>(
35 "initial_temperature",
"initial_temperature > 0.0",
"Initial temperature (optional)");
36 params.addRequiredParam<std::vector<PostprocessorName>>(
38 "The name of the postprocessor(s) that holds the value of the internal volume in the cavity");
39 params.addParam<Real>(
42 "The amount of time during which the pressure will ramp from zero to its true value.");
43 params.set<
bool>(
"use_displaced_mesh") =
true;
Referenced by CavityPressureUOAction::validParams().
◆ _cavity_pressure
Real& CavityPressureUserObject::_cavity_pressure |
|
protected |
◆ _init_temp
const Real CavityPressureUserObject::_init_temp |
|
protected |
◆ _init_temp_given
const bool CavityPressureUserObject::_init_temp_given |
|
protected |
◆ _initial_pressure
const Real CavityPressureUserObject::_initial_pressure |
|
protected |
◆ _initialized
bool& CavityPressureUserObject::_initialized |
|
protected |
◆ _material_input
std::vector<const PostprocessorValue *> CavityPressureUserObject::_material_input |
|
protected |
◆ _n0
Real& CavityPressureUserObject::_n0 |
|
protected |
◆ _R
const Real CavityPressureUserObject::_R |
|
protected |
◆ _start_time
Real CavityPressureUserObject::_start_time |
|
protected |
◆ _startup_time
const Real CavityPressureUserObject::_startup_time |
|
protected |
◆ _temperature
const Real& CavityPressureUserObject::_temperature |
|
protected |
◆ _volume
std::vector<const PostprocessorValue *> CavityPressureUserObject::_volume |
|
protected |
The documentation for this class was generated from the following files: