15#pragma GCC diagnostic push
16#pragma GCC diagnostic ignored "-Woverloaded-virtual"
23#define override_property(want, prop1, prop2) \
24 virtual Real want##_from_##prop1##_##prop2(Real prop1, Real prop2, const std::vector<Real> & x) \
26 virtual void want##_from_##prop1##_##prop2(Real prop1, \
28 const std::vector<Real> & x, \
30 Real & d##want##_d##prop1, \
31 Real & d##want##_d##prop2, \
32 std::vector<Real> & dp_dx) const override
37#define declare_property(want, prop1, prop2) \
38 virtual Real want##_from_##prop1##_##prop2(Real prop1, Real prop2, const std::vector<Real> & x) \
40 virtual void want##_from_##prop1##_##prop2(Real prop1, \
42 const std::vector<Real> & x, \
44 Real & d##want##_d##prop1, \
45 Real & d##want##_d##prop2, \
46 std::vector<Real> & dp_dx) const
109 constexpr static const Real
R_molar = 8.3144598;
114#pragma GCC diagnostic pop
const std::vector< double > x
Class for fluid properties of an arbitrary vapor mixture.
override_property(v, p, T)
override_property(rho, p, T)
declare_property(s, T, v)
declare_property(cp, T, v)
static constexpr const Real R_molar
molar (or universal) gas constant
virtual const SinglePhaseFluidProperties & getSecondaryFluidProperties(unsigned int i=0) const override
Gets a secondary component single-phase fluid properties.
override_property(cp, p, T)
const Real _T_mix_max
maximum temperature of all components
override_property(s, p, T)
virtual unsigned int numberOfComponents() const override
Returns the number of components in the mixture.
override_property(k, p, T)
override_property(e, p, rho)
declare_property(mu, T, v)
Real xs_prim_from_p_T(Real p, Real T, const std::vector< Real > &x) const
Mass fraction of primary (condensable) component at saturation from pressure and temperature.
declare_property(p, T, v)
declare_property(k, T, v)
const unsigned int _n_secondary_vapors
Number of secondary vapors.
std::vector< const SinglePhaseFluidProperties * > _fp_secondary
Secondary vapor fluid properties.
const SinglePhaseFluidProperties *const _fp_primary
Primary vapor fluid properties.
declare_property(e, T, v)
override_property(mu, p, T)
usingVaporMixtureFluidPropertiesMembers
override_property(c, p, T)
override_property(T, v, e)
virtual const SinglePhaseFluidProperties & getPrimaryFluidProperties() const override
Gets the primary component single-phase fluid properties.
override_property(e, p, T)
declare_property(T, p, v)
declare_property(c, T, v)
static InputParameters validParams()
declare_property(cv, T, v)
override_property(cv, p, T)
const std::vector< UserObjectName > _fp_secondary_names
Names of secondary vapor fluid properties.
override_property(p, v, e)
override_property(c, v, e)
const InputParameters & parameters() const
Interface class for producing errors, warnings, or just quiet NaNs.
Common class for single phase fluid properties.
Base class for fluid properties of vapor mixtures.