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 26 of file MultiComponentFluidPropertiesMaterialPT.h.

Constructor & Destructor Documentation

◆ MultiComponentFluidPropertiesMaterialPT()

MultiComponentFluidPropertiesMaterialPT::MultiComponentFluidPropertiesMaterialPT ( const InputParameters &  parameters)

Definition at line 28 of file MultiComponentFluidPropertiesMaterialPT.C.

30  : Material(parameters),
31  _pressure(coupledValue("pressure")),
32  _temperature(coupledValue("temperature")),
33  _xmass(coupledValue("xmass")),
34 
35  _rho(declareProperty<Real>("density")),
36  _h(declareProperty<Real>("enthalpy")),
37  _cp(declareProperty<Real>("cp")),
38  _e(declareProperty<Real>("e")),
39 
40  _fp(getUserObject<MultiComponentFluidPropertiesPT>("fp"))
41 {
42 }
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::~MultiComponentFluidPropertiesMaterialPT ( )
virtual

Definition at line 44 of file MultiComponentFluidPropertiesMaterialPT.C.

44 {}

Member Function Documentation

◆ computeQpProperties()

void MultiComponentFluidPropertiesMaterialPT::computeQpProperties ( )
protectedvirtual

Definition at line 47 of file MultiComponentFluidPropertiesMaterialPT.C.

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

Member Data Documentation

◆ _cp

MaterialProperty<Real>& MultiComponentFluidPropertiesMaterialPT::_cp
protected

Isobaric heat capacity (kJ/kg/K)

Definition at line 46 of file MultiComponentFluidPropertiesMaterialPT.h.

Referenced by computeQpProperties().

◆ _e

MaterialProperty<Real>& MultiComponentFluidPropertiesMaterialPT::_e
protected

Internal energy (kJ/kg)

Definition at line 48 of file MultiComponentFluidPropertiesMaterialPT.h.

Referenced by computeQpProperties().

◆ _fp

const MultiComponentFluidPropertiesPT& MultiComponentFluidPropertiesMaterialPT::_fp
protected

Definition at line 51 of file MultiComponentFluidPropertiesMaterialPT.h.

Referenced by computeQpProperties().

◆ _h

MaterialProperty<Real>& MultiComponentFluidPropertiesMaterialPT::_h
protected

Enthalpy (kJ/kg)

Definition at line 44 of file MultiComponentFluidPropertiesMaterialPT.h.

Referenced by computeQpProperties().

◆ _pressure

const VariableValue& MultiComponentFluidPropertiesMaterialPT::_pressure
protected

Pressure (Pa)

Definition at line 36 of file MultiComponentFluidPropertiesMaterialPT.h.

Referenced by computeQpProperties().

◆ _rho

MaterialProperty<Real>& MultiComponentFluidPropertiesMaterialPT::_rho
protected

Density (kg/m^3)

Definition at line 42 of file MultiComponentFluidPropertiesMaterialPT.h.

Referenced by computeQpProperties().

◆ _temperature

const VariableValue& MultiComponentFluidPropertiesMaterialPT::_temperature
protected

Temperature (K)

Definition at line 38 of file MultiComponentFluidPropertiesMaterialPT.h.

Referenced by computeQpProperties().

◆ _xmass

const VariableValue& MultiComponentFluidPropertiesMaterialPT::_xmass
protected

Mass fraction of solute (-)

Definition at line 40 of file MultiComponentFluidPropertiesMaterialPT.h.

Referenced by computeQpProperties().


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