21#define override_property(want, prop1, prop2) \
22 template <typename CppType> \
23 CppType want##_from_##prop1##_##prop2##_templ( \
24 const CppType & prop1, const CppType & prop2, const std::vector<CppType> & x) const; \
25 virtual Real want##_from_##prop1##_##prop2(Real prop1, Real prop2, const std::vector<Real> & x) \
27 virtual ADReal want##_from_##prop1##_##prop2( \
28 const ADReal & prop1, const ADReal & prop2, const std::vector<ADReal> & x) const override
53 template <
typename CppType>
64 template <
typename CppType>
74 template <
typename CppType>
84 template <
typename CppType>
102#undef override_property
DualNumber< Real, DNDerivativeType, true > ADReal
const std::vector< double > x
Ideal gas fluid properties Default parameters are for air at atmospheric pressure and temperature.
Class for fluid properties of an ideal gas mixture.
std::vector< ADReal > secondaryToAllMassFractions(const std::vector< ADReal > &x_secondary) const
std::vector< CppType > molarFractionsFromMassFractions_templ(const std::vector< CppType > &x) const
Computes molar fractions.
CppType mixtureMolarMass_templ(const std::vector< CppType > &x) const
Computes the mixture molar mass.
override_property(v, p, T)
virtual const SinglePhaseFluidProperties & getPrimaryFluidProperties() const override
Gets the primary component single-phase fluid properties.
ADReal mixtureMolarMass(const std::vector< ADReal > &x) const
ADReal mixtureSpecificHeatRatio(const std::vector< ADReal > &x) const
override_property(mu, p, T)
std::vector< CppType > secondaryToAllMassFractions_templ(const std::vector< CppType > &x_secondary) const
Computes all mass fractions.
override_property(cp, p, T)
override_property(s, p, T)
override_property(k, p, T)
override_property(c, p, T)
const unsigned int _n_secondary_components
Number of secondary components.
usingVaporMixtureFluidPropertiesMembers
override_property(e, p, T)
override_property(e, p, rho)
override_property(T, v, e)
virtual unsigned int numberOfComponents() const override
Returns the number of components in the mixture.
std::vector< ADReal > molarFractionsFromMassFractions(const std::vector< ADReal > &x) const
const std::vector< UserObjectName > _component_fp_names
Names of component fluid properties.
static InputParameters validParams()
std::vector< const IdealGasFluidProperties * > _component_fps
Component fluid properties objects.
virtual const SinglePhaseFluidProperties & getSecondaryFluidProperties(unsigned int i=0) const override
Gets a secondary component single-phase fluid properties.
override_property(rho, p, T)
const unsigned int _n_components
Number of components.
CppType mixtureSpecificHeatRatio_templ(const std::vector< CppType > &x) const
Computes the mixture specific heat ratio.
override_property(p, v, e)
override_property(cv, p, T)
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.