https://mooseframework.inl.gov
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 
14 {
16  return params;
17 }
18 
20  : FluidProperties(parameters)
21 {
22 }
23 
25 
26 std::string
28 {
29  mooseError("fluidName() is not implemented");
30 }
31 
32 void
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 
40 void
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 
48 void
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 }
static InputParameters validParams()
static const std::string temperature
Definition: NS.h:59
DualNumber< Real, DNDerivativeType, true > ADReal
X X virtual X std::string fluidName() const
Fluid name.
MultiComponentFluidProperties(const InputParameters &parameters)
static const std::string mu
Definition: NS.h:123
Common class for single phase fluid properties.
virtual const SinglePhaseFluidProperties & getComponent(unsigned int component) const
Get UserObject for specified component.
static const std::string pressure
Definition: NS.h:56
virtual void rho_mu_from_p_T_X(Real pressure, Real temperature, Real xmass, Real &rho, Real &mu) const
Density and viscosity.
void mooseError(Args &&... args) const