www.mooseframework.org
PorousFlowSingleComponentFluid.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
3 //*
4 //* All rights reserved, see COPYRIGHT for full restrictions
5 //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6 //*
7 //* Licensed under LGPL 2.1, please see LICENSE for details
8 //* https://www.gnu.org/licenses/lgpl-2.1.html
9 
10 #pragma once
11 
14 
16 
17 template <>
19 
26 {
27 public:
28  PorousFlowSingleComponentFluid(const InputParameters & parameters);
29 
30 protected:
31  virtual void initQpStatefulProperties() override;
32  virtual void computeQpProperties() override;
33 
35  const enum class PressureUnitEnum { Pa, MPa } _p_unit;
36 
39 
41  const enum class TimeUnitEnum { seconds, hours, days, years } _time_unit;
42 
44  const Real _time_to_seconds;
45 
47  const bool _compute_rho_mu;
48 
51 
53  const bool _compute_enthalpy;
54 
56  MaterialProperty<Real> * const _density;
57 
59  MaterialProperty<Real> * const _ddensity_dp;
60 
62  MaterialProperty<Real> * const _ddensity_dT;
63 
65  MaterialProperty<Real> * const _viscosity;
66 
68  MaterialProperty<Real> * const _dviscosity_dp;
69 
71  MaterialProperty<Real> * const _dviscosity_dT;
72 
74  MaterialProperty<Real> * const _internal_energy;
75 
77  MaterialProperty<Real> * const _dinternal_energy_dp;
78 
80  MaterialProperty<Real> * const _dinternal_energy_dT;
81 
83  MaterialProperty<Real> * const _enthalpy;
84 
86  MaterialProperty<Real> * const _denthalpy_dp;
87 
89  MaterialProperty<Real> * const _denthalpy_dT;
90 
93 };
PorousFlowSingleComponentFluid::_internal_energy
MaterialProperty< Real > *const _internal_energy
Fluid phase internal_energy at the qps or nodes.
Definition: PorousFlowSingleComponentFluid.h:74
PorousFlowSingleComponentFluid::TimeUnitEnum::days
SinglePhaseFluidProperties
Common class for single phase fluid properties.
Definition: SinglePhaseFluidProperties.h:89
PorousFlowSingleComponentFluid::_time_to_seconds
const Real _time_to_seconds
convert time to seconds by multiplying by this quantity
Definition: PorousFlowSingleComponentFluid.h:44
SinglePhaseFluidProperties.h
PorousFlowSingleComponentFluid::_dviscosity_dT
MaterialProperty< Real > *const _dviscosity_dT
Derivative of fluid phase viscosity wrt temperature at the nodes.
Definition: PorousFlowSingleComponentFluid.h:71
PorousFlowSingleComponentFluid::_compute_internal_energy
const bool _compute_internal_energy
If true, this Material will compute internal energy and its derivatives.
Definition: PorousFlowSingleComponentFluid.h:50
PorousFlowSingleComponentFluid::PressureUnitEnum
PressureUnitEnum
Unit used for porepressure.
Definition: PorousFlowSingleComponentFluid.h:35
PorousFlowFluidPropertiesBase
Base class for fluid properties materials.
Definition: PorousFlowFluidPropertiesBase.h:24
PorousFlowSingleComponentFluid::TimeUnitEnum::years
PorousFlowSingleComponentFluid::_p_unit
enum PorousFlowSingleComponentFluid::PressureUnitEnum _p_unit
PorousFlowSingleComponentFluid::_enthalpy
MaterialProperty< Real > *const _enthalpy
Fluid phase enthalpy at the qps or nodes.
Definition: PorousFlowSingleComponentFluid.h:83
PorousFlowSingleComponentFluid::_ddensity_dp
MaterialProperty< Real > *const _ddensity_dp
Derivative of fluid density wrt phase pore pressure at the qps or nodes.
Definition: PorousFlowSingleComponentFluid.h:59
PorousFlowSingleComponentFluid::TimeUnitEnum::seconds
PorousFlowSingleComponentFluid
General single component fluid material.
Definition: PorousFlowSingleComponentFluid.h:25
PorousFlowSingleComponentFluid::computeQpProperties
virtual void computeQpProperties() override
Definition: PorousFlowSingleComponentFluid.C:162
PorousFlowSingleComponentFluid::_dinternal_energy_dT
MaterialProperty< Real > *const _dinternal_energy_dT
Derivative of fluid internal_energy wrt temperature at the qps or nodes.
Definition: PorousFlowSingleComponentFluid.h:80
PorousFlowSingleComponentFluid::_ddensity_dT
MaterialProperty< Real > *const _ddensity_dT
Derivative of fluid density wrt temperature at the qps or nodes.
Definition: PorousFlowSingleComponentFluid.h:62
PorousFlowSingleComponentFluid::_denthalpy_dp
MaterialProperty< Real > *const _denthalpy_dp
Derivative of fluid enthalpy wrt phase pore pressure at the qps or nodes.
Definition: PorousFlowSingleComponentFluid.h:86
PorousFlowSingleComponentFluid::_dinternal_energy_dp
MaterialProperty< Real > *const _dinternal_energy_dp
Derivative of fluid internal_energy wrt phase pore pressure at the qps or nodes.
Definition: PorousFlowSingleComponentFluid.h:77
PorousFlowSingleComponentFluid::initQpStatefulProperties
virtual void initQpStatefulProperties() override
Definition: PorousFlowSingleComponentFluid.C:148
PorousFlowSingleComponentFluid::_compute_enthalpy
const bool _compute_enthalpy
If true, this Material will compute enthalpy and its derivatives.
Definition: PorousFlowSingleComponentFluid.h:53
PorousFlowSingleComponentFluid::_pressure_to_Pascals
const Real _pressure_to_Pascals
convert porepressure to Pascals by multiplying by this quantity
Definition: PorousFlowSingleComponentFluid.h:38
PorousFlowSingleComponentFluid::TimeUnitEnum::hours
PorousFlowSingleComponentFluid::PressureUnitEnum::MPa
PorousFlowSingleComponentFluid::TimeUnitEnum
TimeUnitEnum
Unit used for time.
Definition: PorousFlowSingleComponentFluid.h:41
PorousFlowSingleComponentFluid::PorousFlowSingleComponentFluid
PorousFlowSingleComponentFluid(const InputParameters &parameters)
Definition: PorousFlowSingleComponentFluid.C:39
PorousFlowSingleComponentFluid::_fp
const SinglePhaseFluidProperties & _fp
Fluid properties UserObject.
Definition: PorousFlowSingleComponentFluid.h:92
validParams< PorousFlowSingleComponentFluid >
InputParameters validParams< PorousFlowSingleComponentFluid >()
Definition: PorousFlowSingleComponentFluid.C:16
PorousFlowSingleComponentFluid::_viscosity
MaterialProperty< Real > *const _viscosity
Fluid phase viscosity at the nodes.
Definition: PorousFlowSingleComponentFluid.h:65
PorousFlowSingleComponentFluid::_time_unit
enum PorousFlowSingleComponentFluid::TimeUnitEnum _time_unit
PorousFlowSingleComponentFluid::_dviscosity_dp
MaterialProperty< Real > *const _dviscosity_dp
Derivative of fluid phase viscosity wrt pressure at the nodes.
Definition: PorousFlowSingleComponentFluid.h:68
PorousFlowFluidPropertiesBase.h
PorousFlowSingleComponentFluid::_density
MaterialProperty< Real > *const _density
Fluid phase density at the qps or nodes.
Definition: PorousFlowSingleComponentFluid.h:56
PorousFlowSingleComponentFluid::_compute_rho_mu
const bool _compute_rho_mu
If true, this Material will compute density and viscosity, and their derivatives.
Definition: PorousFlowSingleComponentFluid.h:47
PorousFlowSingleComponentFluid::_denthalpy_dT
MaterialProperty< Real > *const _denthalpy_dT
Derivative of fluid enthalpy wrt temperature at the qps or nodes.
Definition: PorousFlowSingleComponentFluid.h:89
PorousFlowSingleComponentFluid::PressureUnitEnum::Pa