Go to the documentation of this file.
12 #include "GeneralUserObject.h"
13 #include "json/json.h"
34 virtual void execute()
override;
47 bool throw_error_if_no_match);
76 std::map<std::string, bool>
78 const std::string & fp_type,
79 bool throw_error_if_no_match)
const;
84 void buildJSON1Phase(moosecontrib::Json::Value & json,
const InputParameters & params);
89 void buildJSON2Phase(moosecontrib::Json::Value & json,
const InputParameters & params);
102 void outputASCII1Phase(
const std::string & description,
const InputParameters & params);
126 void outputProperty(
const std::string &
name,
const Real & value,
const std::string & units);
void outputHeader(const std::string &header) const
Outputs a header for a section of properties.
void outputASCII1Phase(const std::string &description, const InputParameters ¶ms)
Output 1-phase fluid properties in plain text format.
void outputVaporMixtureStaticProperties(const InputParameters ¶ms)
Outputs static properties for a vapor mixture fluid properties object.
bool _nan_encountered
flag that NaN has been encountered
void outputProperty(const std::string &name, const Real &value, const std::string &units)
Outputs a property value.
InputParameters compute1Phase(const SinglePhaseFluidProperties *const fp_1phase, bool throw_error_if_no_match)
Queries a 1-phase fluid properties object.
virtual void execute() override
Common class for single phase fluid properties.
void outputVaporMixtureStagnationProperties(const InputParameters ¶ms)
Outputs stagnation properties for a vapor mixture fluid properties object.
const VaporMixtureFluidProperties *const _fp_vapor_mixture
pointer to vapor mixture fluid properties object (if provided 2-phase NCG object)
virtual void initialize() override
User object for querying a single-phase or two-phase fluid properties object.
const SinglePhaseFluidProperties *const _fp_1phase
pointer to 1-phase fluid properties object (if provided 1-phase object)
void buildJSON1Phase(moosecontrib::Json::Value &json, const InputParameters ¶ms)
Build 1-phase fluid properties in JSON format.
void buildJSON2Phase(moosecontrib::Json::Value &json, const InputParameters ¶ms)
Build 2-phase fluid properties in JSON format.
const SinglePhaseFluidProperties *const _fp_liquid
pointer to liquid fluid properties object (if provided 2-phase object)
InputParameters computeVaporMixture(bool throw_error_if_no_match)
Queries a vapor mixture fluid properties object.
const SinglePhaseFluidProperties *const _fp_vapor
pointer to vapor fluid properties object (if provided 2-phase object)
FluidPropertiesInterrogator(const InputParameters ¶meters)
const bool _has_vapor_mixture
flag that user provided vapor mixture fluid properties
const bool _has_2phase
flag that user provided 2-phase fluid properties
Base class for fluid properties used with 2-phase flow with non-condensable gases (NCGs) present.
void outputASCIIVaporMixture(const InputParameters ¶ms)
Output vapor mixture fluid properties in plain text format.
Base class for fluid properties used with two-phase flow.
const TwoPhaseFluidProperties *const _fp_2phase
pointer to 2-phase fluid properties object (if provided 2-phase object)
std::map< std::string, bool > getSpecifiedSetMap(const std::vector< std::vector< std::string >> ¶meter_sets, const std::string &fp_type, bool throw_error_if_no_match) const
Gets a map of a parameter set to a flag telling whether that set was provided.
void outputASCII2Phase(const InputParameters ¶ms)
Output 2-phase fluid properties in plain text format.
InputParameters compute2Phase()
Queries a 2-phase fluid properties object.
void buildJSONVaporMixture(moosecontrib::Json::Value &json, const InputParameters ¶ms)
Build vapor mixture fluid properties in JSON format.
const bool & _json
true if the output should use JSON format
const FluidProperties *const _fp
pointer to fluid properties object
const bool _has_1phase
flag that user provided 1-phase fluid properties
const TwoPhaseNCGFluidProperties *const _fp_2phase_ncg
pointer to 2-phase NCG fluid properties object (if provided 2-phase NCG object)
void outputStagnationProperties(const InputParameters ¶ms)
Outputs stagnation properties for a single-phase fluid properties object.
virtual void finalize() override
void outputStaticProperties(const InputParameters ¶ms)
Outputs static properties for a single-phase fluid properties object.
Base class for fluid properties of vapor mixtures.
const bool _has_2phase_ncg
flag that user provided 2-phase NCG fluid properties
InputParameters validParams< FluidPropertiesInterrogator >()
const unsigned int & _precision
Precision used for printing values.