https://mooseframework.inl.gov
Loading...
Searching...
No Matches
MultiComponentFluidProperties.C
Go to the documentation of this file.
1//* This file is part of the MOOSE framework
2//* https://mooseframework.inl.gov
3//*
4//* All rights reserved, see COPYRIGHT for full restrictions
5//* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6//*
7//* Licensed under LGPL 2.1, please see LICENSE for details
8//* https://www.gnu.org/licenses/lgpl-2.1.html
9
11
18
23
25
26std::string
28{
29 mooseError("fluidName() is not implemented");
30}
31
32void
34 Real pressure, Real temperature, Real xmass, Real & rho, Real & mu) const
35{
36 rho = rho_from_p_T_X(pressure, temperature, xmass);
37 mu = mu_from_p_T_X(pressure, temperature, xmass);
38}
39
40void
42 ADReal pressure, ADReal temperature, ADReal xmass, ADReal & rho, ADReal & mu) const
43{
44 rho = rho_from_p_T_X(pressure, temperature, xmass);
45 mu = mu_from_p_T_X(pressure, temperature, xmass);
46}
47
48void
50 Real temperature,
51 Real xmass,
52 Real & rho,
53 Real & drho_dp,
54 Real & drho_dT,
55 Real & drho_dx,
56 Real & mu,
57 Real & dmu_dp,
58 Real & dmu_dT,
59 Real & dmu_dx) const
60{
61 rho_from_p_T_X(pressure, temperature, xmass, rho, drho_dp, drho_dT, drho_dx);
62 mu_from_p_T_X(pressure, temperature, xmass, mu, dmu_dp, dmu_dT, dmu_dx);
63}
64
67{
68 mooseError("getComponent() is not implemented");
69}
DualNumber< Real, DNDerivativeType, true > ADReal
const double mu
const double rho
static InputParameters validParams()
void mooseError(Args &&... args) const
X X virtual X std::string fluidName() const
Fluid name.
MultiComponentFluidProperties(const InputParameters &parameters)
virtual const SinglePhaseFluidProperties & getComponent(unsigned int component) const
Get UserObject for specified component.
virtual void rho_mu_from_p_T_X(Real pressure, Real temperature, Real xmass, Real &rho, Real &mu) const
Density and viscosity.
Common class for single phase fluid properties.