www.mooseframework.org
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
FluidPropertiesMaterial Class Reference

Computes fluid properties using (u, v) formulation. More...

#include <FluidPropertiesMaterial.h>

Inheritance diagram for FluidPropertiesMaterial:
[legend]

Public Member Functions

 FluidPropertiesMaterial (const InputParameters &parameters)
 
virtual ~FluidPropertiesMaterial ()
 

Protected Member Functions

virtual void computeQpProperties () override
 

Protected Attributes

const VariableValue & _e
 Specific internal energy. More...
 
const VariableValue & _v
 Specific volume. More...
 
MaterialProperty< Real > & _p
 Pressure. More...
 
MaterialProperty< Real > & _T
 Temperature. More...
 
MaterialProperty< Real > & _c
 Speed of sound. More...
 
MaterialProperty< Real > & _cp
 Isobaric specific heat capacity. More...
 
MaterialProperty< Real > & _cv
 Isochoric specific heat capacity. More...
 
MaterialProperty< Real > & _mu
 Dynamic viscosity. More...
 
MaterialProperty< Real > & _k
 Thermal conductivity. More...
 
MaterialProperty< Real > & _g
 Gibbs free energy. More...
 
const SinglePhaseFluidProperties_fp
 Fluid properties. More...
 

Detailed Description

Computes fluid properties using (u, v) formulation.

Definition at line 22 of file FluidPropertiesMaterial.h.

Constructor & Destructor Documentation

FluidPropertiesMaterial::FluidPropertiesMaterial ( const InputParameters &  parameters)

Definition at line 23 of file FluidPropertiesMaterial.C.

24  : Material(parameters),
25  _e(coupledValue("e")),
26  _v(coupledValue("v")),
27 
28  _p(declareProperty<Real>("pressure")),
29  _T(declareProperty<Real>("temperature")),
30  _c(declareProperty<Real>("c")),
31  _cp(declareProperty<Real>("cp")),
32  _cv(declareProperty<Real>("cv")),
33  _mu(declareProperty<Real>("mu")),
34  _k(declareProperty<Real>("k")),
35  _g(declareProperty<Real>("g")),
36 
37  _fp(getUserObject<SinglePhaseFluidProperties>("fp"))
38 {
39 }
MaterialProperty< Real > & _mu
Dynamic viscosity.
MaterialProperty< Real > & _cp
Isobaric specific heat capacity.
MaterialProperty< Real > & _p
Pressure.
MaterialProperty< Real > & _k
Thermal conductivity.
const VariableValue & _v
Specific volume.
MaterialProperty< Real > & _T
Temperature.
const SinglePhaseFluidProperties & _fp
Fluid properties.
MaterialProperty< Real > & _g
Gibbs free energy.
MaterialProperty< Real > & _cv
Isochoric specific heat capacity.
const VariableValue & _e
Specific internal energy.
MaterialProperty< Real > & _c
Speed of sound.
FluidPropertiesMaterial::~FluidPropertiesMaterial ( )
virtual

Definition at line 41 of file FluidPropertiesMaterial.C.

41 {}

Member Function Documentation

void FluidPropertiesMaterial::computeQpProperties ( )
overrideprotectedvirtual

Definition at line 44 of file FluidPropertiesMaterial.C.

45 {
46  _p[_qp] = _fp.pressure(_v[_qp], _e[_qp]);
47  _T[_qp] = _fp.temperature(_v[_qp], _e[_qp]);
48  _c[_qp] = _fp.c(_v[_qp], _e[_qp]);
49  _cp[_qp] = _fp.cp(_v[_qp], _e[_qp]);
50  _cv[_qp] = _fp.cv(_v[_qp], _e[_qp]);
51  _mu[_qp] = _fp.mu(_v[_qp], _e[_qp]);
52  _k[_qp] = _fp.k(_v[_qp], _e[_qp]);
53  _g[_qp] = _fp.g(_v[_qp], _e[_qp]);
54 }
MaterialProperty< Real > & _mu
Dynamic viscosity.
MaterialProperty< Real > & _cp
Isobaric specific heat capacity.
virtual Real temperature(Real v, Real u) const =0
Temperature as a function of specific internal energy and specific volume.
MaterialProperty< Real > & _p
Pressure.
MaterialProperty< Real > & _k
Thermal conductivity.
virtual Real c(Real v, Real u) const =0
Sound speed.
const VariableValue & _v
Specific volume.
virtual Real cp(Real v, Real u) const =0
Specific heat.
MaterialProperty< Real > & _T
Temperature.
const SinglePhaseFluidProperties & _fp
Fluid properties.
virtual Real k(Real v, Real u) const =0
Thermal conductivity [W / m K].
virtual Real mu(Real v, Real u) const =0
Dynamic viscosity [Pa s].
virtual Real cv(Real v, Real u) const =0
Isochoric specific heat.
MaterialProperty< Real > & _g
Gibbs free energy.
virtual Real g(Real v, Real e) const =0
Gibbs free energy.
MaterialProperty< Real > & _cv
Isochoric specific heat capacity.
virtual Real pressure(Real v, Real u) const =0
Pressure as a function of specific internal energy and specific volume.
const VariableValue & _e
Specific internal energy.
MaterialProperty< Real > & _c
Speed of sound.

Member Data Documentation

MaterialProperty<Real>& FluidPropertiesMaterial::_c
protected

Speed of sound.

Definition at line 40 of file FluidPropertiesMaterial.h.

Referenced by computeQpProperties().

MaterialProperty<Real>& FluidPropertiesMaterial::_cp
protected

Isobaric specific heat capacity.

Definition at line 42 of file FluidPropertiesMaterial.h.

Referenced by computeQpProperties().

MaterialProperty<Real>& FluidPropertiesMaterial::_cv
protected

Isochoric specific heat capacity.

Definition at line 44 of file FluidPropertiesMaterial.h.

Referenced by computeQpProperties().

const VariableValue& FluidPropertiesMaterial::_e
protected

Specific internal energy.

Definition at line 32 of file FluidPropertiesMaterial.h.

Referenced by computeQpProperties().

const SinglePhaseFluidProperties& FluidPropertiesMaterial::_fp
protected

Fluid properties.

Definition at line 53 of file FluidPropertiesMaterial.h.

Referenced by computeQpProperties().

MaterialProperty<Real>& FluidPropertiesMaterial::_g
protected

Gibbs free energy.

Definition at line 50 of file FluidPropertiesMaterial.h.

Referenced by computeQpProperties().

MaterialProperty<Real>& FluidPropertiesMaterial::_k
protected

Thermal conductivity.

Definition at line 48 of file FluidPropertiesMaterial.h.

Referenced by computeQpProperties().

MaterialProperty<Real>& FluidPropertiesMaterial::_mu
protected

Dynamic viscosity.

Definition at line 46 of file FluidPropertiesMaterial.h.

Referenced by computeQpProperties().

MaterialProperty<Real>& FluidPropertiesMaterial::_p
protected

Pressure.

Definition at line 36 of file FluidPropertiesMaterial.h.

Referenced by computeQpProperties().

MaterialProperty<Real>& FluidPropertiesMaterial::_T
protected

Temperature.

Definition at line 38 of file FluidPropertiesMaterial.h.

Referenced by computeQpProperties().

const VariableValue& FluidPropertiesMaterial::_v
protected

Specific volume.

Definition at line 34 of file FluidPropertiesMaterial.h.

Referenced by computeQpProperties().


The documentation for this class was generated from the following files: