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

Kernel = grad(test) * thermal_conductivity * grad(temperature) More...

#include <PorousFlowHeatConduction.h>

Inheritance diagram for PorousFlowHeatConduction:
[legend]

Public Member Functions

 PorousFlowHeatConduction (const InputParameters &parameters)
 

Protected Member Functions

virtual Real computeQpResidual () override
 
virtual Real computeQpJacobian () override
 
virtual Real computeQpOffDiagJacobian (unsigned int jvar) override
 

Protected Attributes

const PorousFlowDictator_dictator
 PorousFlowDictator UserObject. More...
 
const MaterialProperty< RealTensorValue > & _la
 Thermal conductivity at the quadpoints. More...
 
const MaterialProperty< std::vector< RealTensorValue > > & _dla_dvar
 d(thermal conductivity at the quadpoints)/d(PorousFlow variable) More...
 
const MaterialProperty< RealGradient > & _grad_t
 grad(temperature) More...
 
const MaterialProperty< std::vector< RealGradient > > & _dgrad_t_dvar
 d(gradT)/d(PorousFlow variable) More...
 
const MaterialProperty< std::vector< Real > > & _dgrad_t_dgradvar
 d(gradT)/d(grad PorousFlow variable) More...
 

Detailed Description

Kernel = grad(test) * thermal_conductivity * grad(temperature)

Definition at line 24 of file PorousFlowHeatConduction.h.

Constructor & Destructor Documentation

◆ PorousFlowHeatConduction()

PorousFlowHeatConduction::PorousFlowHeatConduction ( const InputParameters &  parameters)

Definition at line 27 of file PorousFlowHeatConduction.C.

28  : Kernel(parameters),
29  _dictator(getUserObject<PorousFlowDictator>("PorousFlowDictator")),
30  _la(getMaterialProperty<RealTensorValue>("PorousFlow_thermal_conductivity_qp")),
31  _dla_dvar(getMaterialProperty<std::vector<RealTensorValue>>(
32  "dPorousFlow_thermal_conductivity_qp_dvar")),
33  _grad_t(getMaterialProperty<RealGradient>("PorousFlow_grad_temperature_qp")),
35  getMaterialProperty<std::vector<RealGradient>>("dPorousFlow_grad_temperature_qp_dvar")),
37  getMaterialProperty<std::vector<Real>>("dPorousFlow_grad_temperature_qp_dgradvar"))
38 {
39 }
const MaterialProperty< std::vector< Real > > & _dgrad_t_dgradvar
d(gradT)/d(grad PorousFlow variable)
const MaterialProperty< RealGradient > & _grad_t
grad(temperature)
const MaterialProperty< RealTensorValue > & _la
Thermal conductivity at the quadpoints.
const MaterialProperty< std::vector< RealGradient > > & _dgrad_t_dvar
d(gradT)/d(PorousFlow variable)
const MaterialProperty< std::vector< RealTensorValue > > & _dla_dvar
d(thermal conductivity at the quadpoints)/d(PorousFlow variable)
const PorousFlowDictator & _dictator
PorousFlowDictator UserObject.

Member Function Documentation

◆ computeQpJacobian()

Real PorousFlowHeatConduction::computeQpJacobian ( )
overrideprotectedvirtual

Definition at line 48 of file PorousFlowHeatConduction.C.

49 {
50  return computeQpOffDiagJacobian(_var.number());
51 }
virtual Real computeQpOffDiagJacobian(unsigned int jvar) override

◆ computeQpOffDiagJacobian()

Real PorousFlowHeatConduction::computeQpOffDiagJacobian ( unsigned int  jvar)
overrideprotectedvirtual

Definition at line 54 of file PorousFlowHeatConduction.C.

Referenced by computeQpJacobian().

55 {
57  return 0.0;
58 
59  // The PorousFlow variable index corresponding to the variable number jvar
60  const unsigned int pvar = _dictator.porousFlowVariableNum(jvar);
61 
62  return _grad_test[_i][_qp] *
63  ((_dla_dvar[_qp][pvar] * _grad_t[_qp] + _la[_qp] * _dgrad_t_dvar[_qp][pvar]) *
64  _phi[_j][_qp] +
65  _la[_qp] * _dgrad_t_dgradvar[_qp][pvar] * _grad_phi[_j][_qp]);
66 }
bool notPorousFlowVariable(unsigned int moose_var_num) const
Returns true if moose_var_num is not a porous flow variabe.
const MaterialProperty< std::vector< Real > > & _dgrad_t_dgradvar
d(gradT)/d(grad PorousFlow variable)
const MaterialProperty< RealGradient > & _grad_t
grad(temperature)
const MaterialProperty< RealTensorValue > & _la
Thermal conductivity at the quadpoints.
const MaterialProperty< std::vector< RealGradient > > & _dgrad_t_dvar
d(gradT)/d(PorousFlow variable)
const MaterialProperty< std::vector< RealTensorValue > > & _dla_dvar
d(thermal conductivity at the quadpoints)/d(PorousFlow variable)
const PorousFlowDictator & _dictator
PorousFlowDictator UserObject.
unsigned int porousFlowVariableNum(unsigned int moose_var_num) const
The PorousFlow variable number.

◆ computeQpResidual()

Real PorousFlowHeatConduction::computeQpResidual ( )
overrideprotectedvirtual

Definition at line 42 of file PorousFlowHeatConduction.C.

43 {
44  return _grad_test[_i][_qp] * (_la[_qp] * _grad_t[_qp]);
45 }
const MaterialProperty< RealGradient > & _grad_t
grad(temperature)
const MaterialProperty< RealTensorValue > & _la
Thermal conductivity at the quadpoints.

Member Data Documentation

◆ _dgrad_t_dgradvar

const MaterialProperty<std::vector<Real> >& PorousFlowHeatConduction::_dgrad_t_dgradvar
protected

d(gradT)/d(grad PorousFlow variable)

Definition at line 50 of file PorousFlowHeatConduction.h.

Referenced by computeQpOffDiagJacobian().

◆ _dgrad_t_dvar

const MaterialProperty<std::vector<RealGradient> >& PorousFlowHeatConduction::_dgrad_t_dvar
protected

d(gradT)/d(PorousFlow variable)

Definition at line 47 of file PorousFlowHeatConduction.h.

Referenced by computeQpOffDiagJacobian().

◆ _dictator

const PorousFlowDictator& PorousFlowHeatConduction::_dictator
protected

PorousFlowDictator UserObject.

Definition at line 35 of file PorousFlowHeatConduction.h.

Referenced by computeQpOffDiagJacobian().

◆ _dla_dvar

const MaterialProperty<std::vector<RealTensorValue> >& PorousFlowHeatConduction::_dla_dvar
protected

d(thermal conductivity at the quadpoints)/d(PorousFlow variable)

Definition at line 41 of file PorousFlowHeatConduction.h.

Referenced by computeQpOffDiagJacobian().

◆ _grad_t

const MaterialProperty<RealGradient>& PorousFlowHeatConduction::_grad_t
protected

grad(temperature)

Definition at line 44 of file PorousFlowHeatConduction.h.

Referenced by computeQpOffDiagJacobian(), and computeQpResidual().

◆ _la

const MaterialProperty<RealTensorValue>& PorousFlowHeatConduction::_la
protected

Thermal conductivity at the quadpoints.

Definition at line 38 of file PorousFlowHeatConduction.h.

Referenced by computeQpOffDiagJacobian(), and computeQpResidual().


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