Go to the documentation of this file.
20 #define propfunc(want, prop1, prop2, prop3) \
21 virtual Real want##_from_##prop1##_##prop2##_##prop3(Real, Real, Real) const \
23 mooseError(name(), ": ", __PRETTY_FUNCTION__, " not implemented."); \
26 virtual void want##_from_##prop1##_##prop2##_##prop3(Real prop1, \
32 Real & d##want##d3) const \
34 if (_allow_imperfect_jacobians) \
35 mooseWarning(name(), ": ", __PRETTY_FUNCTION__, " derivatives not implemented."); \
37 mooseError(name(), ": ", __PRETTY_FUNCTION__, " derivatives not implemented."); \
42 val = want##_from_##prop1##_##prop2##_##prop3(prop1, prop2, prop3); \
45 DualReal want##_from_##prop1##_##prop2##_##prop3( \
46 const DualReal & p1, const DualReal & p2, const DualReal & p3) const \
48 const Real raw1 = p1.value(); \
49 const Real raw2 = p2.value(); \
50 const Real raw3 = p3.value(); \
55 want##_from_##prop1##_##prop2##_##prop3(raw1, raw2, raw3, x, dxd1, dxd2, dxd3); \
57 DualReal result = x; \
58 result.derivatives() = \
59 p1.derivatives() * dxd1 + p2.derivatives() * dxd2 + p3.derivatives() * dxd3; \
75 #pragma GCC diagnostic push
76 #pragma GCC diagnostic ignored "-Woverloaded-virtual"
133 #pragma GCC diagnostic pop
152 DualReal
pressure, DualReal
temperature, DualReal xmass, DualReal & rho, DualReal & mu)
const;
179 Real & dmu_dx)
const;
Common class for single phase fluid properties.
InputParameters validParams< MultiComponentFluidProperties >()
X X virtual X std::string fluidName() const
Fluid name.
Common class for multiple component fluid properties using a pressure and temperature formulation.
MultiComponentFluidProperties(const InputParameters ¶meters)
virtual ~MultiComponentFluidProperties()
virtual const SinglePhaseFluidProperties & getComponent(unsigned int component) const
Get UserObject for specified component.
const std::string temperature
virtual void rho_mu_from_p_T_X(Real pressure, Real temperature, Real xmass, Real &rho, Real &mu) const
Density and viscosity.
propfunc(rho, p, T, X) propfunc(mu
Compute a fluid property given for the state defined by three given properties.
const std::string pressure