13 #include "nlohmann/json.h" 33 virtual void execute()
override;
46 bool throw_error_if_no_match);
75 std::map<std::string, bool>
77 const std::string & fp_type,
78 bool throw_error_if_no_match)
const;
Base class for fluid properties of vapor mixtures.
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)
void outputVaporMixtureStaticProperties(const InputParameters ¶ms)
Outputs static properties for a vapor mixture fluid properties object.
virtual void initialize() override
Two-phase fluid with single NCG using partial pressure mixture model.
const VaporMixtureFluidProperties *const _fp_vapor_mixture
pointer to vapor mixture fluid properties object (if provided 2-phase NCG object) ...
virtual void execute() override
const FluidProperties *const _fp
pointer to fluid properties object
void buildJSON1Phase(nlohmann::json &json, const InputParameters ¶ms)
Build 1-phase fluid properties in JSON format.
Base class for fluid properties used with 2-phase flow with non-condensable gases (NCGs) present...
InputParameters compute1Phase(const SinglePhaseFluidProperties *const fp_1phase, bool throw_error_if_no_match)
Queries a 1-phase fluid properties object.
const TwoPhaseFluidProperties *const _fp_2phase
pointer to 2-phase fluid properties object (if provided 2-phase object)
User object for querying a single-phase or two-phase fluid properties object.
void outputStaticProperties(const InputParameters ¶ms)
Outputs static properties for a single-phase fluid properties object.
const bool _has_2phase_ncg
flag that user provided 2-phase NCG fluid properties
const unsigned int & _precision
Precision used for printing values.
virtual const std::string & name() const
const SinglePhaseFluidProperties *const _fp_liquid
pointer to liquid fluid properties object (if provided 2-phase 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.
Base class for fluid properties used with two-phase flow.
void outputStagnationProperties(const InputParameters ¶ms)
Outputs stagnation properties for a single-phase fluid properties object.
void outputASCII2Phase(const InputParameters ¶ms)
Output 2-phase fluid properties in plain text format.
Real value(unsigned n, unsigned alpha, unsigned beta, Real x)
void outputASCII1Phase(const std::string &description, const InputParameters ¶ms)
Output 1-phase fluid properties in plain text format.
Common class for single phase fluid properties.
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)
const TwoPhaseNCGPartialPressureFluidProperties *const _fp_2phase_ncg_partial_pressure
pointer to 2-phase NCG partial pressure fluid properties object (if provided)
void outputASCIIVaporMixture(const InputParameters ¶ms)
Output vapor mixture fluid properties in plain text format.
void buildJSONVaporMixture(nlohmann::json &json, const InputParameters ¶ms)
Build vapor mixture fluid properties in JSON format.
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 outputVaporMixtureStagnationProperties(const InputParameters ¶ms)
Outputs stagnation properties for a vapor mixture fluid properties object.
FluidPropertiesInterrogator(const InputParameters ¶meters)
const bool _has_2phase_ncg_partial_pressure
flag that user provided 2-phase NCG partial pressure fluid properties
const bool _has_vapor_mixture
flag that user provided vapor mixture fluid properties
void outputHeader(const std::string &header) const
Outputs a header for a section of properties.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const bool & _json
true if the output should use JSON format
InputParameters compute2Phase()
Queries a 2-phase fluid properties object.
void buildJSON2Phase(nlohmann::json &json, const InputParameters ¶ms)
Build 2-phase fluid properties in JSON format.
const bool _has_2phase
flag that user provided 2-phase fluid properties
static InputParameters validParams()
const SinglePhaseFluidProperties *const _fp_1phase
pointer to 1-phase fluid properties object (if provided 1-phase object)
const InputParameters & parameters() const
virtual void finalize() override