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 "PorousFlowMaterial.h"
13 
17 template <bool is_ad>
19 {
20 public:
22 
24 
25 protected:
26  virtual void initQpStatefulProperties() override;
27  virtual void computeQpProperties() override;
28 
30  const unsigned int _num_pf_vars;
31 
33  const bool _is_temp_nodal;
34 
37 
40 
42  const bool _temperature_is_PF;
43 
45  const unsigned int _t_var_num;
46 
49 
52 
55 
58 
61 };
62 
PorousFlowMaterial is the base class for all PorousFlow Materials It allows users to specify that the...
Creates temperature Materials.
const unsigned int _t_var_num
The PorousFlow variable number of the temperature.
PorousFlowTemperatureTempl< false > PorousFlowTemperature
typename Moose::GenericType< VariableValue, is_ad > GenericVariableValue
GenericMaterialProperty< RealGradient, is_ad > *const _grad_temperature
Grad(temperature) at the quadpoints (not needed for nodal_materials)
PorousFlowTemperatureTempl(const InputParameters &parameters)
const unsigned int _num_pf_vars
Number of PorousFlow variables.
const GenericVariableGradient< is_ad > *const _grad_temperature_var
Gradient(_temperature at quadpoints)
typename GenericMaterialPropertyStruct< T, is_ad >::type GenericMaterialProperty
const bool _temperature_is_PF
Whether the temperature coupled variable is a PorousFlow variable.
static InputParameters validParams()
GenericMaterialProperty< Real, is_ad > & _temperature
Computed temperature at quadpoints or nodes.
const GenericVariableValue< is_ad > & _temperature_var
Variable value of temperature at quadpoints or nodes.
virtual void computeQpProperties() override
virtual void initQpStatefulProperties() override
MaterialProperty< std::vector< RealGradient > > *const _dgrad_temperature_dv
d(grad temperature)/d(PorousFlow variable) at the quadpoints
MaterialProperty< std::vector< Real > > *const _dgrad_temperature_dgradv
d(grad temperature)/d(grad PorousFlow variable) at the quadpoints
PorousFlowTemperatureTempl< true > ADPorousFlowTemperature
MaterialProperty< std::vector< Real > > *const _dtemperature_dvar
d(computed temperature)/d(PorousFlow variable)
const InputParameters & parameters() const
typename Moose::GenericType< VariableGradient, is_ad > GenericVariableGradient
const bool _is_temp_nodal
Flag for nodal temperature.