www.mooseframework.org
MultiComponentFluidProperties.C
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
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 
12 template <>
13 InputParameters
15 {
16  InputParameters params = validParams<FluidProperties>();
17  return params;
18 }
19 
21  : FluidProperties(parameters)
22 {
23 }
24 
26 
27 std::string
29 {
30  mooseError(name(), ": fluidName() is not implemented");
31 }
32 
33 void
35  Real pressure, Real temperature, Real xmass, Real & rho, Real & mu) const
36 {
37  rho = rho_from_p_T_X(pressure, temperature, xmass);
38  mu = mu_from_p_T_X(pressure, temperature, xmass);
39 }
40 
41 void
43  DualReal pressure, DualReal temperature, DualReal xmass, DualReal & rho, DualReal & mu) const
44 {
45  rho = rho_from_p_T_X(pressure, temperature, xmass);
46  mu = mu_from_p_T_X(pressure, temperature, xmass);
47 }
48 
49 void
51  Real temperature,
52  Real xmass,
53  Real & rho,
54  Real & drho_dp,
55  Real & drho_dT,
56  Real & drho_dx,
57  Real & mu,
58  Real & dmu_dp,
59  Real & dmu_dT,
60  Real & dmu_dx) const
61 {
62  rho_from_p_T_X(pressure, temperature, xmass, rho, drho_dp, drho_dT, drho_dx);
63  mu_from_p_T_X(pressure, temperature, xmass, mu, dmu_dp, dmu_dT, dmu_dx);
64 }
65 
68 {
69  mooseError(name(), ": getComponent() is not implemented");
70 }
SinglePhaseFluidProperties
Common class for single phase fluid properties.
Definition: SinglePhaseFluidProperties.h:89
MultiComponentFluidProperties::fluidName
X X virtual X std::string fluidName() const
Fluid name.
Definition: MultiComponentFluidProperties.C:28
MultiComponentFluidProperties::MultiComponentFluidProperties
MultiComponentFluidProperties(const InputParameters &parameters)
Definition: MultiComponentFluidProperties.C:20
MultiComponentFluidProperties::~MultiComponentFluidProperties
virtual ~MultiComponentFluidProperties()
Definition: MultiComponentFluidProperties.C:25
MultiComponentFluidProperties.h
validParams< FluidProperties >
InputParameters validParams< FluidProperties >()
Definition: FluidProperties.C:16
name
const std::string name
Definition: Setup.h:21
MultiComponentFluidProperties::getComponent
virtual const SinglePhaseFluidProperties & getComponent(unsigned int component) const
Get UserObject for specified component.
Definition: MultiComponentFluidProperties.C:67
NS::temperature
const std::string temperature
Definition: NS.h:26
MultiComponentFluidProperties::rho_mu_from_p_T_X
virtual void rho_mu_from_p_T_X(Real pressure, Real temperature, Real xmass, Real &rho, Real &mu) const
Density and viscosity.
Definition: MultiComponentFluidProperties.C:34
FluidProperties
Definition: FluidProperties.h:28
validParams< MultiComponentFluidProperties >
InputParameters validParams< MultiComponentFluidProperties >()
Definition: MultiComponentFluidProperties.C:14
NS::pressure
const std::string pressure
Definition: NS.h:25