www.mooseframework.org
PorousFlowTemperature.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 "DerivativeMaterialInterface.h"
13 #include "PorousFlowMaterial.h"
14 
16 
17 template <>
18 InputParameters validParams<PorousFlowTemperature>();
19 
23 class PorousFlowTemperature : public DerivativeMaterialInterface<PorousFlowMaterial>
24 {
25 public:
26  PorousFlowTemperature(const InputParameters & parameters);
27 
28 protected:
29  virtual void initQpStatefulProperties() override;
30  virtual void computeQpProperties() override;
31 
33  const unsigned int _num_pf_vars;
34 
36  const VariableValue & _temperature_var;
37 
39  const VariableGradient * const _grad_temperature_var;
40 
42  const bool _temperature_is_PF;
43 
45  const unsigned int _t_var_num;
46 
48  MaterialProperty<Real> & _temperature;
49 
51  MaterialProperty<std::vector<Real>> & _dtemperature_dvar;
52 
54  MaterialProperty<RealGradient> * const _grad_temperature;
55 
57  MaterialProperty<std::vector<Real>> * const _dgrad_temperature_dgradv;
58 
60  MaterialProperty<std::vector<RealGradient>> * const _dgrad_temperature_dv;
61 };
62 
PorousFlowTemperature::_temperature_var
const VariableValue & _temperature_var
Variable value of temperature at quadpoints or nodes.
Definition: PorousFlowTemperature.h:36
validParams< PorousFlowTemperature >
InputParameters validParams< PorousFlowTemperature >()
Definition: PorousFlowTemperature.C:16
PorousFlowTemperature::initQpStatefulProperties
virtual void initQpStatefulProperties() override
Definition: PorousFlowTemperature.C:54
PorousFlowTemperature::_grad_temperature
MaterialProperty< RealGradient > *const _grad_temperature
Grad(temperature) at the quadpoints (not needed for nodal_materials)
Definition: PorousFlowTemperature.h:54
PorousFlowTemperature::PorousFlowTemperature
PorousFlowTemperature(const InputParameters &parameters)
Definition: PorousFlowTemperature.C:26
PorousFlowTemperature::_dgrad_temperature_dgradv
MaterialProperty< std::vector< Real > > *const _dgrad_temperature_dgradv
d(grad temperature)/d(grad PorousFlow variable) at the quadpoints
Definition: PorousFlowTemperature.h:57
PorousFlowMaterial.h
PorousFlowTemperature
Creates temperature Materials.
Definition: PorousFlowTemperature.h:23
PorousFlowTemperature::_t_var_num
const unsigned int _t_var_num
The PorousFlow variable number of the temperature.
Definition: PorousFlowTemperature.h:45
PorousFlowTemperature::_temperature_is_PF
const bool _temperature_is_PF
Whether the temperature coupled variable is a PorousFlow variable.
Definition: PorousFlowTemperature.h:42
PorousFlowTemperature::computeQpProperties
virtual void computeQpProperties() override
Definition: PorousFlowTemperature.C:60
PorousFlowTemperature::_dgrad_temperature_dv
MaterialProperty< std::vector< RealGradient > > *const _dgrad_temperature_dv
d(grad temperature)/d(PorousFlow variable) at the quadpoints
Definition: PorousFlowTemperature.h:60
PorousFlowTemperature::_dtemperature_dvar
MaterialProperty< std::vector< Real > > & _dtemperature_dvar
d(computed temperature)/d(PorousFlow variable)
Definition: PorousFlowTemperature.h:51
PorousFlowTemperature::_temperature
MaterialProperty< Real > & _temperature
Computed temperature at quadpoints or nodes.
Definition: PorousFlowTemperature.h:48
PorousFlowTemperature::_grad_temperature_var
const VariableGradient *const _grad_temperature_var
Gradient(_temperature at quadpoints)
Definition: PorousFlowTemperature.h:39
PorousFlowTemperature::_num_pf_vars
const unsigned int _num_pf_vars
Number of PorousFlow variables.
Definition: PorousFlowTemperature.h:33