Cavity Pressure UserObject

Uses the ideal gas law to compute internal pressure and an initial moles of gas quantity.

Description

The CavityPressureUserObject is used to compute: both the number of initial moles from a gas contained in an internal volume and the pressure exerted by a gas on the cavity boundary. This postprocessor is suitable only for ideal gases, which obey the ideal gas law: (1) where is the internal pressure, is the moles of gas, is the ideal gas constant, is the temperature, and is the volume of the cavity. To compute the initial number of moles, Eq. (1) is rearranged to solve for moles from an initial pressure.

The moles of gas, the temperature, and the cavity volume in Eq. (1) are free to change with time. The moles of gas at any time is the original amount of gas (computed based on original pressure, temperature, and volume) plus the amount in the cavity due to any gas injected during the simulation. The volume is provided by a single postprocessor value or a vector of postprocessor values that are summed together before being used in Eq. (1).

There is an option to specify additional, unmeshed volumes with corresponding temperatures that communicate directly with the cavity. In this case the pressure becomes:

where is the number of additional volumes.

Input Parameters

  • RThe universal gas constant for the units used.

    C++ Type:double

    Controllable:No

    Description:The universal gas constant for the units used.

  • temperatureThe name of the average temperature postprocessor value.

    C++ Type:PostprocessorName

    Controllable:No

    Description:The name of the average temperature postprocessor value.

  • volumeThe name of the postprocessor(s) that holds the value of the internal volume in the cavity

    C++ Type:std::vector<PostprocessorName>

    Controllable:No

    Description:The name of the postprocessor(s) that holds the value of the internal volume in the cavity

Required Parameters

  • additional_volumesThe name of the postprocessor(s) that hold additional volumes that are connected to the cavity but not meshed.

    C++ Type:std::vector<PostprocessorName>

    Controllable:No

    Description:The name of the postprocessor(s) that hold additional volumes that are connected to the cavity but not meshed.

  • execute_onTIMESTEP_ENDThe list of flag(s) indicating when this object should be executed, the available options include NONE, INITIAL, LINEAR, NONLINEAR, TIMESTEP_END, TIMESTEP_BEGIN, MULTIAPP_FIXED_POINT_END, MULTIAPP_FIXED_POINT_BEGIN, FINAL, CUSTOM, ALWAYS.

    Default:TIMESTEP_END

    C++ Type:ExecFlagEnum

    Options:NONE, INITIAL, LINEAR, NONLINEAR, TIMESTEP_END, TIMESTEP_BEGIN, MULTIAPP_FIXED_POINT_END, MULTIAPP_FIXED_POINT_BEGIN, FINAL, CUSTOM, ALWAYS

    Controllable:No

    Description:The list of flag(s) indicating when this object should be executed, the available options include NONE, INITIAL, LINEAR, NONLINEAR, TIMESTEP_END, TIMESTEP_BEGIN, MULTIAPP_FIXED_POINT_END, MULTIAPP_FIXED_POINT_BEGIN, FINAL, CUSTOM, ALWAYS.

  • initial_pressure0The initial pressure in the cavity. If not given, a zero initial pressure will be used.

    Default:0

    C++ Type:double

    Controllable:No

    Description:The initial pressure in the cavity. If not given, a zero initial pressure will be used.

  • initial_temperatureInitial temperature (optional)

    C++ Type:double

    Controllable:No

    Description:Initial temperature (optional)

  • material_inputThe name of the postprocessor(s) that holds the amount of material injected into the cavity.

    C++ Type:std::vector<PostprocessorName>

    Controllable:No

    Description:The name of the postprocessor(s) that holds the amount of material injected into the cavity.

  • prop_getter_suffixAn optional suffix parameter that can be appended to any attempt to retrieve/get material properties. The suffix will be prepended with a '_' character.

    C++ Type:MaterialPropertyName

    Controllable:No

    Description:An optional suffix parameter that can be appended to any attempt to retrieve/get material properties. The suffix will be prepended with a '_' character.

  • startup_time0The amount of time during which the pressure will ramp from zero to its true value.

    Default:0

    C++ Type:double

    Controllable:No

    Description:The amount of time during which the pressure will ramp from zero to its true value.

  • temperature_of_additional_volumesThe name of the postprocessor(s) that hold the temperatures of the additional volumes.

    C++ Type:std::vector<PostprocessorName>

    Controllable:No

    Description:The name of the postprocessor(s) that hold the temperatures of the additional volumes.

Optional Parameters

  • allow_duplicate_execution_on_initialFalseIn the case where this UserObject is depended upon by an initial condition, allow it to be executed twice during the initial setup (once before the IC and again after mesh adaptivity (if applicable).

    Default:False

    C++ Type:bool

    Controllable:No

    Description:In the case where this UserObject is depended upon by an initial condition, allow it to be executed twice during the initial setup (once before the IC and again after mesh adaptivity (if applicable).

  • control_tagsAdds user-defined labels for accessing object parameters via control logic.

    C++ Type:std::vector<std::string>

    Controllable:No

    Description:Adds user-defined labels for accessing object parameters via control logic.

  • enableTrueSet the enabled status of the MooseObject.

    Default:True

    C++ Type:bool

    Controllable:Yes

    Description:Set the enabled status of the MooseObject.

  • execution_order_group0Execution order groups are executed in increasing order (e.g., the lowest number is executed first). Note that negative group numbers may be used to execute groups before the default (0) group. Please refer to the user object documentation for ordering of user object execution within a group.

    Default:0

    C++ Type:int

    Controllable:No

    Description:Execution order groups are executed in increasing order (e.g., the lowest number is executed first). Note that negative group numbers may be used to execute groups before the default (0) group. Please refer to the user object documentation for ordering of user object execution within a group.

  • force_postauxFalseForces the UserObject to be executed in POSTAUX

    Default:False

    C++ Type:bool

    Controllable:No

    Description:Forces the UserObject to be executed in POSTAUX

  • force_preauxFalseForces the UserObject to be executed in PREAUX

    Default:False

    C++ Type:bool

    Controllable:No

    Description:Forces the UserObject to be executed in PREAUX

  • force_preicFalseForces the UserObject to be executed in PREIC during initial setup

    Default:False

    C++ Type:bool

    Controllable:No

    Description:Forces the UserObject to be executed in PREIC during initial setup

  • use_displaced_meshTrueWhether or not this object should use the displaced mesh for computation. Note that in the case this is true but no displacements are provided in the Mesh block the undisplaced mesh will still be used.

    Default:True

    C++ Type:bool

    Controllable:No

    Description:Whether or not this object should use the displaced mesh for computation. Note that in the case this is true but no displacements are provided in the Mesh block the undisplaced mesh will still be used.

Advanced Parameters