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 SinglePhaseFluidPropertiesPT_fp
 Fluid properties UserObject. More...
 

Detailed Description

Computes fluid properties using (pressure, temperature) formulation.

Definition at line 22 of file FluidPropertiesMaterialPT.h.

Constructor & Destructor Documentation

FluidPropertiesMaterialPT::FluidPropertiesMaterialPT ( const InputParameters &  parameters)

Definition at line 22 of file FluidPropertiesMaterialPT.C.

23  : Material(parameters),
24  _pressure(coupledValue("pressure")),
25  _temperature(coupledValue("temperature")),
26 
27  _rho(declareProperty<Real>("density")),
28  _mu(declareProperty<Real>("viscosity")),
29  _cp(declareProperty<Real>("cp")),
30  _cv(declareProperty<Real>("cv")),
31  _k(declareProperty<Real>("k")),
32  _h(declareProperty<Real>("h")),
33  _e(declareProperty<Real>("e")),
34  _s(declareProperty<Real>("s")),
35  _c(declareProperty<Real>("c")),
36 
37  _fp(getUserObject<SinglePhaseFluidPropertiesPT>("fp"))
38 {
39 }
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)
const SinglePhaseFluidPropertiesPT & _fp
Fluid properties UserObject.
MaterialProperty< Real > & _e
Internal energy (kJ/kg)
MaterialProperty< Real > & _k
Thermal conductivity (W/m/K)
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 ( )
virtual

Definition at line 41 of file FluidPropertiesMaterialPT.C.

41 {}

Member Function Documentation

void FluidPropertiesMaterialPT::computeQpProperties ( )
protectedvirtual

Definition at line 44 of file FluidPropertiesMaterialPT.C.

45 {
46  _rho[_qp] = _fp.rho(_pressure[_qp], _temperature[_qp]);
47  _mu[_qp] = _fp.mu_from_rho_T(_rho[_qp], _temperature[_qp]);
48  _cp[_qp] = _fp.cp(_pressure[_qp], _temperature[_qp]);
49  _cv[_qp] = _fp.cv(_pressure[_qp], _temperature[_qp]);
50  _k[_qp] = _fp.k_from_rho_T(_rho[_qp], _temperature[_qp]);
51  _h[_qp] = _fp.h(_pressure[_qp], _temperature[_qp]);
52  _e[_qp] = _fp.e(_pressure[_qp], _temperature[_qp]);
53  _s[_qp] = _fp.s(_pressure[_qp], _temperature[_qp]);
54  _c[_qp] = _fp.c(_pressure[_qp], _temperature[_qp]);
55 }
MaterialProperty< Real > & _cp
Isobaric specific heat capacity (kJ/kg/K)
MaterialProperty< Real > & _c
Speed of sound (m/s)
virtual Real cp(Real pressure, Real temperature) const =0
Isobaric specific heat capacity.
const VariableValue & _pressure
Pressure (Pa)
virtual Real c(Real pressure, Real temperature) const =0
Speed of sound.
virtual Real mu_from_rho_T(Real density, Real temperature) const =0
MaterialProperty< Real > & _h
Specific enthalpy (kJ/kg)
const VariableValue & _temperature
Temperature (K)
const SinglePhaseFluidPropertiesPT & _fp
Fluid properties UserObject.
MaterialProperty< Real > & _e
Internal energy (kJ/kg)
virtual Real e(Real pressure, Real temperature) const =0
Internal energy.
MaterialProperty< Real > & _k
Thermal conductivity (W/m/K)
MaterialProperty< Real > & _s
Specific entropy (kJ/kg/K)
virtual Real h(Real p, Real T) const =0
Specific enthalpy.
virtual Real cv(Real pressure, Real temperature) const =0
Isochoric specific heat.
virtual Real rho(Real pressure, Real temperature) const =0
Density.
virtual Real k_from_rho_T(Real density, Real temperature) const =0
Thermal conductivity as a function of density and temperature.
MaterialProperty< Real > & _mu
Viscosity (Pa.s)
MaterialProperty< Real > & _rho
Density (kg/m^3)
virtual Real s(Real pressure, Real temperature) const =0
Specific entropy.
MaterialProperty< Real > & _cv
Isochoric specific heat capacity (kJ/kg/K)

Member Data Documentation

MaterialProperty<Real>& FluidPropertiesMaterialPT::_c
protected

Speed of sound (m/s)

Definition at line 52 of file FluidPropertiesMaterialPT.h.

Referenced by computeQpProperties().

MaterialProperty<Real>& FluidPropertiesMaterialPT::_cp
protected

Isobaric specific heat capacity (kJ/kg/K)

Definition at line 40 of file FluidPropertiesMaterialPT.h.

Referenced by computeQpProperties().

MaterialProperty<Real>& FluidPropertiesMaterialPT::_cv
protected

Isochoric specific heat capacity (kJ/kg/K)

Definition at line 42 of file FluidPropertiesMaterialPT.h.

Referenced by computeQpProperties().

MaterialProperty<Real>& FluidPropertiesMaterialPT::_e
protected

Internal energy (kJ/kg)

Definition at line 48 of file FluidPropertiesMaterialPT.h.

Referenced by computeQpProperties().

const SinglePhaseFluidPropertiesPT& FluidPropertiesMaterialPT::_fp
protected

Fluid properties UserObject.

Definition at line 55 of file FluidPropertiesMaterialPT.h.

Referenced by computeQpProperties().

MaterialProperty<Real>& FluidPropertiesMaterialPT::_h
protected

Specific enthalpy (kJ/kg)

Definition at line 46 of file FluidPropertiesMaterialPT.h.

Referenced by computeQpProperties().

MaterialProperty<Real>& FluidPropertiesMaterialPT::_k
protected

Thermal conductivity (W/m/K)

Definition at line 44 of file FluidPropertiesMaterialPT.h.

Referenced by computeQpProperties().

MaterialProperty<Real>& FluidPropertiesMaterialPT::_mu
protected

Viscosity (Pa.s)

Definition at line 38 of file FluidPropertiesMaterialPT.h.

Referenced by computeQpProperties().

const VariableValue& FluidPropertiesMaterialPT::_pressure
protected

Pressure (Pa)

Definition at line 32 of file FluidPropertiesMaterialPT.h.

Referenced by computeQpProperties().

MaterialProperty<Real>& FluidPropertiesMaterialPT::_rho
protected

Density (kg/m^3)

Definition at line 36 of file FluidPropertiesMaterialPT.h.

Referenced by computeQpProperties().

MaterialProperty<Real>& FluidPropertiesMaterialPT::_s
protected

Specific entropy (kJ/kg/K)

Definition at line 50 of file FluidPropertiesMaterialPT.h.

Referenced by computeQpProperties().

const VariableValue& FluidPropertiesMaterialPT::_temperature
protected

Temperature (K)

Definition at line 34 of file FluidPropertiesMaterialPT.h.

Referenced by computeQpProperties().


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