www.mooseframework.org
PorousFlowFluidPropertyIC.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 
12 #include "InitialCondition.h"
13 
16 
17 template <>
19 
24 class PorousFlowFluidPropertyIC : public InitialCondition
25 {
26 public:
27  PorousFlowFluidPropertyIC(const InputParameters & parameters);
28 
29  virtual Real value(const Point & p) override;
30 
31 protected:
33  const VariableValue & _porepressure;
35  const VariableValue & _temperature;
41  const Real _T_c2k;
42 };
PorousFlowFluidPropertyIC
PorousFlowFluidPropertyIC calculates an initial value for a fluid property (such as enthalpy) using p...
Definition: PorousFlowFluidPropertyIC.h:24
PorousFlowFluidPropertyIC::_T_c2k
const Real _T_c2k
Conversion from degrees Celsius to degrees Kelvin.
Definition: PorousFlowFluidPropertyIC.h:41
PorousFlowFluidPropertyIC::PropertyEnum::DENSITY
SinglePhaseFluidProperties
Common class for single phase fluid properties.
Definition: SinglePhaseFluidProperties.h:89
PorousFlowFluidPropertyIC::_porepressure
const VariableValue & _porepressure
Porepressure (Pa)
Definition: PorousFlowFluidPropertyIC.h:33
PorousFlowFluidPropertyIC::PropertyEnum::ENTHALPY
PorousFlowFluidPropertyIC::_property_enum
enum PorousFlowFluidPropertyIC::PropertyEnum _property_enum
PorousFlowFluidPropertyIC::PropertyEnum::INTERNAL_ENERGY
PorousFlowFluidPropertyIC::_fp
const SinglePhaseFluidProperties & _fp
FluidProperties user object.
Definition: PorousFlowFluidPropertyIC.h:39
PorousFlowFluidPropertyIC::PorousFlowFluidPropertyIC
PorousFlowFluidPropertyIC(const InputParameters &parameters)
Definition: PorousFlowFluidPropertyIC.C:34
PorousFlowFluidPropertyIC::_temperature
const VariableValue & _temperature
Fluid temperature (C or K)
Definition: PorousFlowFluidPropertyIC.h:35
PorousFlowFluidPropertyIC::PropertyEnum
PropertyEnum
Enum of fluid properties that can be set using this IC.
Definition: PorousFlowFluidPropertyIC.h:37
validParams< PorousFlowFluidPropertyIC >
InputParameters validParams< PorousFlowFluidPropertyIC >()
Definition: PorousFlowFluidPropertyIC.C:17
PorousFlowFluidPropertyIC::value
virtual Real value(const Point &p) override
Definition: PorousFlowFluidPropertyIC.C:45