- fpThe name of the fluid properties object to query.
C++ Type:UserObjectName
Description:The name of the fluid properties object to query.
- precisionPrecision for printing values
C++ Type:unsigned int
Description:Precision for printing values
FluidPropertiesInterrogator
User object for querying a single-phase or two-phase fluid properties object
Introduction
The FluidPropertiesInterrogator
user object is used to query fluid properties objects that derive from the following types:
SinglePhaseFluidProperties
VaporMixtureFluidProperties
TwoPhaseFluidProperties
(note thatTwoPhaseNCGFluidProperties
derives from this)
The user specifies a thermodynamic state at which to evaluate a number of fluid properties. This can be useful for a number of different tasks, such as the following:
Determining values for initial conditions or problem setup
Verifying out-of-bounds inputs to fluid properties interfaces
Getting values to be used in tests
Usage
The interrogator is used with a syntax for AddFluidPropertiesInterrogatorAction. In an input file, the user will only need a block for the FluidPropertiesInterrogator
and a block for creating the fluid properties object that will be interrogated. For convenience, an input file to use the interrogator is provided in the module:
# The parameters in this block are used to specify the thermodynamic state
# at which to query the fluid properties package
[FluidPropertiesInterrogator]
fp = fp
p = 1e5
T = 300
vel = 10
[]
# The fluid properties (equation of state) to query is defined here
[Modules]
[./FluidProperties]
[./fp]
type = IdealGasFluidProperties
[../]
[../]
[]
(modules/fluid_properties/fp_interrogator/fp_interrogator.i)Valid Input Combinations
Notation is summarized in the following table:
Symbol | Description |
---|---|
Pressure | |
Saturation pressure | |
Critical pressure | |
Temperature | |
Saturation temperature | |
Density | |
Specific volume | |
Specific internal energy | |
Specific total energy | |
Specific enthalpy | |
Latent heat of vaporization | |
Specific entropy | |
Sound speed | |
Fluid speed | |
Dynamic viscosity | |
Specific heat at constant pressure | |
Specific heat at constant volume | |
Thermal conductivity | |
Volumetric expansion coefficient | |
Mass fraction of non-condensable gas |
Let the set of single-phase fluid properties be defined as The set of the same quantities for the stagnation state, rather than the static state, is denoted as .
Let the set of valid inputs for single-phase static fluid properties be and the set of valid inputs for single-phase stagnation fluid properties be For single-phase vapor mixture fluid properties, the valid input sets are as follows:
The following table summarizes the valid input combinations for single-phase fluid properties objects. Note that TwoPhaseNCGFluidProperties
inherits from TwoPhaseFluidProperties
, so the column TwoPhaseFluidProperties
is used to describe fluid properties classes that derive from TwoPhaseFluidProperties
but not TwoPhaseNCGFluidProperties
.
Base Class | Valid Input Combinations | Outputs |
---|---|---|
SinglePhaseFluidProperties | ||
, | ||
VaporMixtureFluidProperties | ||
, | ||
TwoPhaseFluidProperties | ||
, , | ||
, , | ||
, | ||
, , | ||
, , , , | ||
TwoPhaseNCGFluidProperties | ||
, , | ||
, , | ||
, | ||
, | ||
, , | ||
, , | ||
, , , , |
Input Parameters
- TTemperature
C++ Type:double
Description:Temperature
- eSpecific internal energy
C++ Type:double
Description:Specific internal energy
- 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, FINAL, CUSTOM.
Default:TIMESTEP_END
C++ Type:ExecFlagEnum
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, FINAL, CUSTOM.
- jsonFalseOutput in JSON format
Default:False
C++ Type:bool
Description:Output in JSON format
- pPressure
C++ Type:double
Description:Pressure
- rhoDensity
C++ Type:double
Description:Density
- rhoETotal energy density; rho * E
C++ Type:double
Description:Total energy density; rho * E
- rhouMomentum density; rho * u
C++ Type:double
Description:Momentum density; rho * u
- velVelocity
C++ Type:double
Description:Velocity
- x_ncgMass fractions of NCGs
C++ Type:std::vector
Description:Mass fractions of NCGs
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
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
Description:Adds user-defined labels for accessing object parameters via control logic.
- enableTrueSet the enabled status of the MooseObject.
Default:True
C++ Type:bool
Description:Set the enabled status of the MooseObject.
- force_preauxFalseForces the GeneralUserObject to be executed in PREAUX
Default:False
C++ Type:bool
Description:Forces the GeneralUserObject to be executed in PREAUX
- use_displaced_meshFalseWhether 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:False
C++ Type:bool
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.