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 24 of file FluidPropertiesMaterial.h.

Constructor & Destructor Documentation

◆ FluidPropertiesMaterial()

FluidPropertiesMaterial::FluidPropertiesMaterial ( const InputParameters &  parameters)

Definition at line 27 of file FluidPropertiesMaterial.C.

28  : Material(parameters),
29  _e(coupledValue("e")),
30  _v(coupledValue("v")),
31 
32  _p(declareProperty<Real>("pressure")),
33  _T(declareProperty<Real>("temperature")),
34  _c(declareProperty<Real>("c")),
35  _cp(declareProperty<Real>("cp")),
36  _cv(declareProperty<Real>("cv")),
37  _mu(declareProperty<Real>("mu")),
38  _k(declareProperty<Real>("k")),
39  _g(declareProperty<Real>("g")),
40 
41  _fp(getUserObject<SinglePhaseFluidProperties>("fp"))
42 {
43 }
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::~FluidPropertiesMaterial ( )
virtual

Definition at line 45 of file FluidPropertiesMaterial.C.

45 {}

Member Function Documentation

◆ computeQpProperties()

void FluidPropertiesMaterial::computeQpProperties ( )
overrideprotectedvirtual

Definition at line 48 of file FluidPropertiesMaterial.C.

49 {
50  _p[_qp] = _fp.p_from_v_e(_v[_qp], _e[_qp]);
51  _T[_qp] = _fp.T_from_v_e(_v[_qp], _e[_qp]);
52  _c[_qp] = _fp.c_from_v_e(_v[_qp], _e[_qp]);
53  _cp[_qp] = _fp.cp_from_v_e(_v[_qp], _e[_qp]);
54  _cv[_qp] = _fp.cv_from_v_e(_v[_qp], _e[_qp]);
55  _mu[_qp] = _fp.mu_from_v_e(_v[_qp], _e[_qp]);
56  _k[_qp] = _fp.k_from_v_e(_v[_qp], _e[_qp]);
57  _g[_qp] = _fp.g_from_v_e(_v[_qp], _e[_qp]);
58 }
MaterialProperty< Real > & _mu
Dynamic viscosity.
MaterialProperty< Real > & _cp
Isobaric specific heat capacity.
MaterialProperty< Real > & _p
Pressure.
virtual Real T_from_v_e(Real v, Real e) const
Temperature from specific volume and specific internal energy.
MaterialProperty< Real > & _k
Thermal conductivity.
virtual Real mu_from_v_e(Real v, Real e) const
Dynamic viscosity from specific volume and specific internal energy.
const VariableValue & _v
Specific volume.
MaterialProperty< Real > & _T
Temperature.
const SinglePhaseFluidProperties & _fp
Fluid properties.
virtual Real k_from_v_e(Real v, Real e) const
Thermal conductivity from specific volume and specific internal energy.
MaterialProperty< Real > & _g
Gibbs free energy.
virtual Real p_from_v_e(Real v, Real e) const
Pressure from specific volume and specific internal energy.
virtual Real g_from_v_e(Real v, Real e) const
Gibbs free energy from specific volume and specific internal energy.
MaterialProperty< Real > & _cv
Isochoric specific heat capacity.
virtual Real cv_from_v_e(Real v, Real e) const
Isochoric (constant-volume) specific heat from specific volume and specific internal energy...
const VariableValue & _e
Specific internal energy.
virtual Real cp_from_v_e(Real v, Real e) const
Isobaric (constant-pressure) specific heat from specific volume and specific internal energy...
virtual Real c_from_v_e(Real v, Real e) const
Sound speed from specific volume and specific internal energy.
MaterialProperty< Real > & _c
Speed of sound.

Member Data Documentation

◆ _c

MaterialProperty<Real>& FluidPropertiesMaterial::_c
protected

Speed of sound.

Definition at line 42 of file FluidPropertiesMaterial.h.

Referenced by computeQpProperties().

◆ _cp

MaterialProperty<Real>& FluidPropertiesMaterial::_cp
protected

Isobaric specific heat capacity.

Definition at line 44 of file FluidPropertiesMaterial.h.

Referenced by computeQpProperties().

◆ _cv

MaterialProperty<Real>& FluidPropertiesMaterial::_cv
protected

Isochoric specific heat capacity.

Definition at line 46 of file FluidPropertiesMaterial.h.

Referenced by computeQpProperties().

◆ _e

const VariableValue& FluidPropertiesMaterial::_e
protected

Specific internal energy.

Definition at line 34 of file FluidPropertiesMaterial.h.

Referenced by computeQpProperties().

◆ _fp

const SinglePhaseFluidProperties& FluidPropertiesMaterial::_fp
protected

Fluid properties.

Definition at line 55 of file FluidPropertiesMaterial.h.

Referenced by computeQpProperties().

◆ _g

MaterialProperty<Real>& FluidPropertiesMaterial::_g
protected

Gibbs free energy.

Definition at line 52 of file FluidPropertiesMaterial.h.

Referenced by computeQpProperties().

◆ _k

MaterialProperty<Real>& FluidPropertiesMaterial::_k
protected

Thermal conductivity.

Definition at line 50 of file FluidPropertiesMaterial.h.

Referenced by computeQpProperties().

◆ _mu

MaterialProperty<Real>& FluidPropertiesMaterial::_mu
protected

Dynamic viscosity.

Definition at line 48 of file FluidPropertiesMaterial.h.

Referenced by computeQpProperties().

◆ _p

MaterialProperty<Real>& FluidPropertiesMaterial::_p
protected

Pressure.

Definition at line 38 of file FluidPropertiesMaterial.h.

Referenced by computeQpProperties().

◆ _T

MaterialProperty<Real>& FluidPropertiesMaterial::_T
protected

Temperature.

Definition at line 40 of file FluidPropertiesMaterial.h.

Referenced by computeQpProperties().

◆ _v

const VariableValue& FluidPropertiesMaterial::_v
protected

Specific volume.

Definition at line 36 of file FluidPropertiesMaterial.h.

Referenced by computeQpProperties().


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