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

Base class for fluid properties materials. More...

#include <PorousFlowFluidPropertiesBase.h>

Inheritance diagram for PorousFlowFluidPropertiesBase:
[legend]

Public Member Functions

 PorousFlowFluidPropertiesBase (const InputParameters &parameters)
 

Protected Member Functions

virtual void computeQpProperties () override
 

Protected Attributes

const MaterialProperty< std::vector< Real > > & _porepressure
 Pore pressure at the nodes or quadpoints. More...
 
const MaterialProperty< Real > & _temperature
 Fluid temperature at the nodes or quadpoints. More...
 
const VariableName _pressure_variable_name
 Name of (dummy) pressure primary variable. More...
 
const VariableName _temperature_variable_name
 Name of (dummy) temperature primary variable. More...
 
const Real _t_c2k
 Conversion from degrees Celsius to degrees Kelvin. More...
 
const Real _R
 Universal gas constant. More...
 
const unsigned int _phase_num
 Phase number of fluid. More...
 
const std::string _phase
 Stringified fluid phase number. More...
 

Detailed Description

Base class for fluid properties materials.

All PorousFlow fluid materials must override computeQpProperties()

Definition at line 23 of file PorousFlowFluidPropertiesBase.h.

Constructor & Destructor Documentation

PorousFlowFluidPropertiesBase::PorousFlowFluidPropertiesBase ( const InputParameters &  parameters)

Definition at line 22 of file PorousFlowFluidPropertiesBase.C.

23  : PorousFlowMaterialBase(parameters),
24  _porepressure(_nodal_material
25  ? getMaterialProperty<std::vector<Real>>("PorousFlow_porepressure_nodal")
26  : getMaterialProperty<std::vector<Real>>("PorousFlow_porepressure_qp")),
27  _temperature(_nodal_material ? getMaterialProperty<Real>("PorousFlow_temperature_nodal")
28  : getMaterialProperty<Real>("PorousFlow_temperature_qp")),
29  _pressure_variable_name(_dictator.pressureVariableNameDummy()),
30  _temperature_variable_name(_dictator.temperatureVariableNameDummy()),
31  _t_c2k(getParam<MooseEnum>("temperature_unit") == 0 ? 0.0 : 273.15),
32  _R(8.3144598)
33 {
34 }
const VariableName _temperature_variable_name
Name of (dummy) temperature primary variable.
const VariableName _pressure_variable_name
Name of (dummy) pressure primary variable.
PorousFlowMaterialBase(const InputParameters &parameters)
const Real _R
Universal gas constant.
const MaterialProperty< Real > & _temperature
Fluid temperature at the nodes or quadpoints.
const Real _t_c2k
Conversion from degrees Celsius to degrees Kelvin.
const MaterialProperty< std::vector< Real > > & _porepressure
Pore pressure at the nodes or quadpoints.

Member Function Documentation

void PorousFlowFluidPropertiesBase::computeQpProperties ( )
overrideprotectedvirtual

Reimplemented in PorousFlowSingleComponentFluid, and PorousFlowBrine.

Definition at line 37 of file PorousFlowFluidPropertiesBase.C.

38 {
39  mooseError("computeQpProperties() must be overriden in materials derived from "
40  "PorousFlowFluidPropertiesBase");
41 }

Member Data Documentation

const std::string PorousFlowMaterialBase::_phase
protectedinherited

Stringified fluid phase number.

Definition at line 36 of file PorousFlowMaterialBase.h.

const unsigned int PorousFlowMaterialBase::_phase_num
protectedinherited
const MaterialProperty<std::vector<Real> >& PorousFlowFluidPropertiesBase::_porepressure
protected
const VariableName PorousFlowFluidPropertiesBase::_pressure_variable_name
protected

Name of (dummy) pressure primary variable.

Definition at line 38 of file PorousFlowFluidPropertiesBase.h.

const Real PorousFlowFluidPropertiesBase::_R
protected

Universal gas constant.

Definition at line 47 of file PorousFlowFluidPropertiesBase.h.

const Real PorousFlowFluidPropertiesBase::_t_c2k
protected
const MaterialProperty<Real>& PorousFlowFluidPropertiesBase::_temperature
protected
const VariableName PorousFlowFluidPropertiesBase::_temperature_variable_name
protected

Name of (dummy) temperature primary variable.

Definition at line 41 of file PorousFlowFluidPropertiesBase.h.


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