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
 holds info on the PorousFlow variables 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 23 of file PorousFlowHeatConduction.h.

Constructor & Destructor Documentation

PorousFlowHeatConduction::PorousFlowHeatConduction ( const InputParameters &  parameters)

Definition at line 24 of file PorousFlowHeatConduction.C.

25  : Kernel(parameters),
26  _dictator(getUserObject<PorousFlowDictator>("PorousFlowDictator")),
27  _la(getMaterialProperty<RealTensorValue>("PorousFlow_thermal_conductivity_qp")),
28  _dla_dvar(getMaterialProperty<std::vector<RealTensorValue>>(
29  "dPorousFlow_thermal_conductivity_qp_dvar")),
30  _grad_t(getMaterialProperty<RealGradient>("PorousFlow_grad_temperature_qp")),
32  getMaterialProperty<std::vector<RealGradient>>("dPorousFlow_grad_temperature_qp_dvar")),
34  getMaterialProperty<std::vector<Real>>("dPorousFlow_grad_temperature_qp_dgradvar"))
35 {
36 }
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
holds info on the PorousFlow variables

Member Function Documentation

Real PorousFlowHeatConduction::computeQpJacobian ( )
overrideprotectedvirtual

Definition at line 45 of file PorousFlowHeatConduction.C.

46 {
47  return computeQpOffDiagJacobian(_var.number());
48 }
virtual Real computeQpOffDiagJacobian(unsigned int jvar) override
Real PorousFlowHeatConduction::computeQpOffDiagJacobian ( unsigned int  jvar)
overrideprotectedvirtual

The PorousFlow variable index corresponding to the variable number jvar

Definition at line 51 of file PorousFlowHeatConduction.C.

Referenced by computeQpJacobian().

52 {
54  return 0.0;
55 
57  const unsigned int pvar = _dictator.porousFlowVariableNum(jvar);
58 
59  return _grad_test[_i][_qp] *
60  ((_dla_dvar[_qp][pvar] * _grad_t[_qp] + _la[_qp] * _dgrad_t_dvar[_qp][pvar]) *
61  _phi[_j][_qp] +
62  _la[_qp] * _dgrad_t_dgradvar[_qp][pvar] * _grad_phi[_j][_qp]);
63 }
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
holds info on the PorousFlow variables
bool notPorousFlowVariable(unsigned int moose_var_num) const
returns true if moose_var_num is not a porous flow variabe
unsigned int porousFlowVariableNum(unsigned int moose_var_num) const
the PorousFlow variable number
Real PorousFlowHeatConduction::computeQpResidual ( )
overrideprotectedvirtual

Definition at line 39 of file PorousFlowHeatConduction.C.

40 {
41  return _grad_test[_i][_qp] * (_la[_qp] * _grad_t[_qp]);
42 }
const MaterialProperty< RealGradient > & _grad_t
grad(temperature)
const MaterialProperty< RealTensorValue > & _la
thermal conductivity at the quadpoints

Member Data Documentation

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

d(gradT)/d(grad PorousFlow variable)

Definition at line 49 of file PorousFlowHeatConduction.h.

Referenced by computeQpOffDiagJacobian().

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

d(gradT)/d(PorousFlow variable)

Definition at line 46 of file PorousFlowHeatConduction.h.

Referenced by computeQpOffDiagJacobian().

const PorousFlowDictator& PorousFlowHeatConduction::_dictator
protected

holds info on the PorousFlow variables

Definition at line 34 of file PorousFlowHeatConduction.h.

Referenced by computeQpOffDiagJacobian().

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

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

Definition at line 40 of file PorousFlowHeatConduction.h.

Referenced by computeQpOffDiagJacobian().

const MaterialProperty<RealGradient>& PorousFlowHeatConduction::_grad_t
protected

grad(temperature)

Definition at line 43 of file PorousFlowHeatConduction.h.

Referenced by computeQpOffDiagJacobian(), and computeQpResidual().

const MaterialProperty<RealTensorValue>& PorousFlowHeatConduction::_la
protected

thermal conductivity at the quadpoints

Definition at line 37 of file PorousFlowHeatConduction.h.

Referenced by computeQpOffDiagJacobian(), and computeQpResidual().


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