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

Material for calculating fluid properties for a fluid comprised of two components: the solute (eg, NaCl), and the solution (eg, water). More...

#include <MultiComponentFluidPropertiesMaterialPT.h>

Inheritance diagram for MultiComponentFluidPropertiesMaterialPT:
[legend]

Public Member Functions

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

Protected Member Functions

virtual void computeQpProperties ()
 

Protected Attributes

const VariableValue & _pressure
 Pressure (Pa) More...
 
const VariableValue & _temperature
 Temperature (K) More...
 
const VariableValue & _xmass
 Mass fraction of solute (-) More...
 
MaterialProperty< Real > & _rho
 Density (kg/m^3) More...
 
MaterialProperty< Real > & _h
 Enthalpy (kJ/kg) More...
 
MaterialProperty< Real > & _cp
 Isobaric heat capacity (kJ/kg/K) More...
 
MaterialProperty< Real > & _e
 Internal energy (kJ/kg) More...
 
const MultiComponentFluidPropertiesPT_fp
 

Detailed Description

Material for calculating fluid properties for a fluid comprised of two components: the solute (eg, NaCl), and the solution (eg, water).

This material uses the pressure - temperature formulation.

Definition at line 24 of file MultiComponentFluidPropertiesMaterialPT.h.

Constructor & Destructor Documentation

MultiComponentFluidPropertiesMaterialPT::MultiComponentFluidPropertiesMaterialPT ( const InputParameters &  parameters)

Definition at line 25 of file MultiComponentFluidPropertiesMaterialPT.C.

27  : Material(parameters),
28  _pressure(coupledValue("pressure")),
29  _temperature(coupledValue("temperature")),
30  _xmass(coupledValue("xmass")),
31 
32  _rho(declareProperty<Real>("density")),
33  _h(declareProperty<Real>("enthalpy")),
34  _cp(declareProperty<Real>("cp")),
35  _e(declareProperty<Real>("e")),
36 
37  _fp(getUserObject<MultiComponentFluidPropertiesPT>("fp"))
38 {
39 }
const VariableValue & _xmass
Mass fraction of solute (-)
MaterialProperty< Real > & _rho
Density (kg/m^3)
MaterialProperty< Real > & _h
Enthalpy (kJ/kg)
MaterialProperty< Real > & _e
Internal energy (kJ/kg)
MaterialProperty< Real > & _cp
Isobaric heat capacity (kJ/kg/K)
MultiComponentFluidPropertiesMaterialPT::~MultiComponentFluidPropertiesMaterialPT ( )
virtual

Definition at line 41 of file MultiComponentFluidPropertiesMaterialPT.C.

41 {}

Member Function Documentation

void MultiComponentFluidPropertiesMaterialPT::computeQpProperties ( )
protectedvirtual

Definition at line 44 of file MultiComponentFluidPropertiesMaterialPT.C.

45 {
46  _rho[_qp] = _fp.rho(_pressure[_qp], _temperature[_qp], _xmass[_qp]);
47  _h[_qp] = _fp.h(_pressure[_qp], _temperature[_qp], _xmass[_qp]);
48  _cp[_qp] = _fp.cp(_pressure[_qp], _temperature[_qp], _xmass[_qp]);
49  _e[_qp] = _fp.e(_pressure[_qp], _temperature[_qp], _xmass[_qp]);
50 }
virtual Real h(Real pressure, Real temperature, Real xmass) const =0
Enthalpy.
const VariableValue & _xmass
Mass fraction of solute (-)
MaterialProperty< Real > & _rho
Density (kg/m^3)
virtual Real e(Real pressure, Real temperature, Real xmass) const =0
Internal energy.
MaterialProperty< Real > & _h
Enthalpy (kJ/kg)
virtual Real cp(Real pressure, Real temperature, Real xmass) const =0
Isobaric specific heat capacity.
MaterialProperty< Real > & _e
Internal energy (kJ/kg)
virtual Real rho(Real pressure, Real temperature, Real xmass) const =0
Density.
MaterialProperty< Real > & _cp
Isobaric heat capacity (kJ/kg/K)

Member Data Documentation

MaterialProperty<Real>& MultiComponentFluidPropertiesMaterialPT::_cp
protected

Isobaric heat capacity (kJ/kg/K)

Definition at line 44 of file MultiComponentFluidPropertiesMaterialPT.h.

Referenced by computeQpProperties().

MaterialProperty<Real>& MultiComponentFluidPropertiesMaterialPT::_e
protected

Internal energy (kJ/kg)

Definition at line 46 of file MultiComponentFluidPropertiesMaterialPT.h.

Referenced by computeQpProperties().

const MultiComponentFluidPropertiesPT& MultiComponentFluidPropertiesMaterialPT::_fp
protected

Definition at line 49 of file MultiComponentFluidPropertiesMaterialPT.h.

Referenced by computeQpProperties().

MaterialProperty<Real>& MultiComponentFluidPropertiesMaterialPT::_h
protected

Enthalpy (kJ/kg)

Definition at line 42 of file MultiComponentFluidPropertiesMaterialPT.h.

Referenced by computeQpProperties().

const VariableValue& MultiComponentFluidPropertiesMaterialPT::_pressure
protected

Pressure (Pa)

Definition at line 34 of file MultiComponentFluidPropertiesMaterialPT.h.

Referenced by computeQpProperties().

MaterialProperty<Real>& MultiComponentFluidPropertiesMaterialPT::_rho
protected

Density (kg/m^3)

Definition at line 40 of file MultiComponentFluidPropertiesMaterialPT.h.

Referenced by computeQpProperties().

const VariableValue& MultiComponentFluidPropertiesMaterialPT::_temperature
protected

Temperature (K)

Definition at line 36 of file MultiComponentFluidPropertiesMaterialPT.h.

Referenced by computeQpProperties().

const VariableValue& MultiComponentFluidPropertiesMaterialPT::_xmass
protected

Mass fraction of solute (-)

Definition at line 38 of file MultiComponentFluidPropertiesMaterialPT.h.

Referenced by computeQpProperties().


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