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

Computes fluid properties using (pressure, temperature) formulation. More...

#include <FluidPropertiesMaterialPT.h>

Inheritance diagram for FluidPropertiesMaterialPT:
[legend]

Public Member Functions

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

Protected Member Functions

virtual void computeQpProperties ()
 

Protected Attributes

const VariableValue & _pressure
 Pressure (Pa) More...
 
const VariableValue & _temperature
 Temperature (K) More...
 
MaterialProperty< Real > & _rho
 Density (kg/m^3) More...
 
MaterialProperty< Real > & _mu
 Viscosity (Pa.s) More...
 
MaterialProperty< Real > & _cp
 Isobaric specific heat capacity (kJ/kg/K) More...
 
MaterialProperty< Real > & _cv
 Isochoric specific heat capacity (kJ/kg/K) More...
 
MaterialProperty< Real > & _k
 Thermal conductivity (W/m/K) More...
 
MaterialProperty< Real > & _h
 Specific enthalpy (kJ/kg) More...
 
MaterialProperty< Real > & _e
 Internal energy (kJ/kg) More...
 
MaterialProperty< Real > & _s
 Specific entropy (kJ/kg/K) More...
 
MaterialProperty< Real > & _c
 Speed of sound (m/s) More...
 
const SinglePhaseFluidProperties_fp
 Fluid properties UserObject. More...
 

Detailed Description

Computes fluid properties using (pressure, temperature) formulation.

Definition at line 24 of file FluidPropertiesMaterialPT.h.

Constructor & Destructor Documentation

◆ FluidPropertiesMaterialPT()

FluidPropertiesMaterialPT::FluidPropertiesMaterialPT ( const InputParameters &  parameters)

Definition at line 26 of file FluidPropertiesMaterialPT.C.

27  : Material(parameters),
28  _pressure(coupledValue("pressure")),
29  _temperature(coupledValue("temperature")),
30 
31  _rho(declareProperty<Real>("density")),
32  _mu(declareProperty<Real>("viscosity")),
33  _cp(declareProperty<Real>("cp")),
34  _cv(declareProperty<Real>("cv")),
35  _k(declareProperty<Real>("k")),
36  _h(declareProperty<Real>("h")),
37  _e(declareProperty<Real>("e")),
38  _s(declareProperty<Real>("s")),
39  _c(declareProperty<Real>("c")),
40 
41  _fp(getUserObject<SinglePhaseFluidProperties>("fp"))
42 {
43 }
MaterialProperty< Real > & _cp
Isobaric specific heat capacity (kJ/kg/K)
MaterialProperty< Real > & _c
Speed of sound (m/s)
const VariableValue & _pressure
Pressure (Pa)
MaterialProperty< Real > & _h
Specific enthalpy (kJ/kg)
const VariableValue & _temperature
Temperature (K)
MaterialProperty< Real > & _e
Internal energy (kJ/kg)
MaterialProperty< Real > & _k
Thermal conductivity (W/m/K)
const SinglePhaseFluidProperties & _fp
Fluid properties UserObject.
MaterialProperty< Real > & _s
Specific entropy (kJ/kg/K)
MaterialProperty< Real > & _mu
Viscosity (Pa.s)
MaterialProperty< Real > & _rho
Density (kg/m^3)
MaterialProperty< Real > & _cv
Isochoric specific heat capacity (kJ/kg/K)

◆ ~FluidPropertiesMaterialPT()

FluidPropertiesMaterialPT::~FluidPropertiesMaterialPT ( )
virtual

Definition at line 45 of file FluidPropertiesMaterialPT.C.

45 {}

Member Function Documentation

◆ computeQpProperties()

void FluidPropertiesMaterialPT::computeQpProperties ( )
protectedvirtual

Definition at line 48 of file FluidPropertiesMaterialPT.C.

49 {
50  _rho[_qp] = _fp.rho_from_p_T(_pressure[_qp], _temperature[_qp]);
51  _mu[_qp] = _fp.mu_from_p_T(_pressure[_qp], _temperature[_qp]);
52  _cp[_qp] = _fp.cp_from_p_T(_pressure[_qp], _temperature[_qp]);
53  _cv[_qp] = _fp.cv_from_p_T(_pressure[_qp], _temperature[_qp]);
54  _k[_qp] = _fp.k_from_p_T(_pressure[_qp], _temperature[_qp]);
55  _h[_qp] = _fp.h_from_p_T(_pressure[_qp], _temperature[_qp]);
56  _e[_qp] = _fp.e_from_p_T(_pressure[_qp], _temperature[_qp]);
57  _s[_qp] = _fp.s_from_p_T(_pressure[_qp], _temperature[_qp]);
58  _c[_qp] = _fp.c_from_p_T(_pressure[_qp], _temperature[_qp]);
59 }
MaterialProperty< Real > & _cp
Isobaric specific heat capacity (kJ/kg/K)
virtual Real cv_from_p_T(Real pressure, Real temperature) const
Isochoric specific heat.
MaterialProperty< Real > & _c
Speed of sound (m/s)
virtual Real mu_from_p_T(Real pressure, Real temperature) const
virtual Real c_from_p_T(Real pressure, Real temperature) const
Speed of sound.
const VariableValue & _pressure
Pressure (Pa)
virtual Real e_from_p_T(Real p, Real T) const
Internal energy from pressure and temperature.
MaterialProperty< Real > & _h
Specific enthalpy (kJ/kg)
const VariableValue & _temperature
Temperature (K)
virtual Real rho_from_p_T(Real p, Real T) const
Density from pressure and temperature.
MaterialProperty< Real > & _e
Internal energy (kJ/kg)
virtual Real k_from_p_T(Real pressure, Real temperature) const
Thermal conductivity.
MaterialProperty< Real > & _k
Thermal conductivity (W/m/K)
const SinglePhaseFluidProperties & _fp
Fluid properties UserObject.
MaterialProperty< Real > & _s
Specific entropy (kJ/kg/K)
virtual Real s_from_p_T(Real p, Real T) const
Specific entropy from pressure and temperature.
virtual Real cp_from_p_T(Real pressure, Real temperature) const
Isobaric specific heat capacity.
MaterialProperty< Real > & _mu
Viscosity (Pa.s)
MaterialProperty< Real > & _rho
Density (kg/m^3)
virtual Real h_from_p_T(Real p, Real T) const
Specific enthalpy from pressure and temperature.
MaterialProperty< Real > & _cv
Isochoric specific heat capacity (kJ/kg/K)

Member Data Documentation

◆ _c

MaterialProperty<Real>& FluidPropertiesMaterialPT::_c
protected

Speed of sound (m/s)

Definition at line 54 of file FluidPropertiesMaterialPT.h.

Referenced by computeQpProperties().

◆ _cp

MaterialProperty<Real>& FluidPropertiesMaterialPT::_cp
protected

Isobaric specific heat capacity (kJ/kg/K)

Definition at line 42 of file FluidPropertiesMaterialPT.h.

Referenced by computeQpProperties().

◆ _cv

MaterialProperty<Real>& FluidPropertiesMaterialPT::_cv
protected

Isochoric specific heat capacity (kJ/kg/K)

Definition at line 44 of file FluidPropertiesMaterialPT.h.

Referenced by computeQpProperties().

◆ _e

MaterialProperty<Real>& FluidPropertiesMaterialPT::_e
protected

Internal energy (kJ/kg)

Definition at line 50 of file FluidPropertiesMaterialPT.h.

Referenced by computeQpProperties().

◆ _fp

const SinglePhaseFluidProperties& FluidPropertiesMaterialPT::_fp
protected

Fluid properties UserObject.

Definition at line 57 of file FluidPropertiesMaterialPT.h.

Referenced by computeQpProperties().

◆ _h

MaterialProperty<Real>& FluidPropertiesMaterialPT::_h
protected

Specific enthalpy (kJ/kg)

Definition at line 48 of file FluidPropertiesMaterialPT.h.

Referenced by computeQpProperties().

◆ _k

MaterialProperty<Real>& FluidPropertiesMaterialPT::_k
protected

Thermal conductivity (W/m/K)

Definition at line 46 of file FluidPropertiesMaterialPT.h.

Referenced by computeQpProperties().

◆ _mu

MaterialProperty<Real>& FluidPropertiesMaterialPT::_mu
protected

Viscosity (Pa.s)

Definition at line 40 of file FluidPropertiesMaterialPT.h.

Referenced by computeQpProperties().

◆ _pressure

const VariableValue& FluidPropertiesMaterialPT::_pressure
protected

Pressure (Pa)

Definition at line 34 of file FluidPropertiesMaterialPT.h.

Referenced by computeQpProperties().

◆ _rho

MaterialProperty<Real>& FluidPropertiesMaterialPT::_rho
protected

Density (kg/m^3)

Definition at line 38 of file FluidPropertiesMaterialPT.h.

Referenced by computeQpProperties().

◆ _s

MaterialProperty<Real>& FluidPropertiesMaterialPT::_s
protected

Specific entropy (kJ/kg/K)

Definition at line 52 of file FluidPropertiesMaterialPT.h.

Referenced by computeQpProperties().

◆ _temperature

const VariableValue& FluidPropertiesMaterialPT::_temperature
protected

Temperature (K)

Definition at line 36 of file FluidPropertiesMaterialPT.h.

Referenced by computeQpProperties().


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