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

This Material calculates rock-fluid combined thermal conductivity for the single phase, fully saturated case by using a linear weighted average. More...

#include <PorousFlowThermalConductivityFromPorosity.h>

Inheritance diagram for PorousFlowThermalConductivityFromPorosity:
[legend]

Public Member Functions

 PorousFlowThermalConductivityFromPorosity (const InputParameters &parameters)
 

Protected Member Functions

virtual void computeQpProperties () override
 

Protected Attributes

const RealTensorValue _la_s
 Thermal conductivity of the solid phase. More...
 
const RealTensorValue _la_f
 Thermal conductivity of the single fluid phase. More...
 
const MaterialProperty< Real > & _porosity_qp
 Quadpoint porosity. More...
 
const MaterialProperty< std::vector< Real > > & _dporosity_qp_dvar
 d(quadpoint porosity)/d(PorousFlow variable) More...
 
MaterialProperty< RealTensorValue > & _la_qp
 Thermal conducitivity at the qps. More...
 
MaterialProperty< std::vector< RealTensorValue > > & _dla_qp_dvar
 d(thermal conductivity at the qps)/d(PorousFlow variable) More...
 
const unsigned int _num_phases
 Number of phases. More...
 
const unsigned int _num_components
 Number of fluid components. More...
 
const unsigned int _num_var
 Number of PorousFlow variables. More...
 

Detailed Description

This Material calculates rock-fluid combined thermal conductivity for the single phase, fully saturated case by using a linear weighted average.

Thermal conductivity = phi * lambda_f + (1 - phi) * lambda_s, where phi is porosity, and lambda_f, lambda_s are thermal conductivities of the fluid and solid (assumed constant)

Definition at line 28 of file PorousFlowThermalConductivityFromPorosity.h.

Constructor & Destructor Documentation

◆ PorousFlowThermalConductivityFromPorosity()

PorousFlowThermalConductivityFromPorosity::PorousFlowThermalConductivityFromPorosity ( const InputParameters &  parameters)

Definition at line 32 of file PorousFlowThermalConductivityFromPorosity.C.

35  _la_s(getParam<RealTensorValue>("lambda_s")),
36  _la_f(getParam<RealTensorValue>("lambda_f")),
37  _porosity_qp(getMaterialProperty<Real>("PorousFlow_porosity_qp")),
38  _dporosity_qp_dvar(getMaterialProperty<std::vector<Real>>("dPorousFlow_porosity_qp_dvar"))
39 {
40  if (_num_phases != 1)
41  paramError("fluid_phase",
42  "The Dictator proclaims that the number of phases is ",
43  _dictator.numPhases(),
44  " whereas this material can only be used for single phase "
45  "simulations. Be aware that the Dictator has noted your mistake.");
46 }
PorousFlowThermalConductivityBase(const InputParameters &parameters)
const unsigned int _num_phases
Number of phases.
const RealTensorValue _la_f
Thermal conductivity of the single fluid phase.
const MaterialProperty< Real > & _porosity_qp
Quadpoint porosity.
const MaterialProperty< std::vector< Real > > & _dporosity_qp_dvar
d(quadpoint porosity)/d(PorousFlow variable)
const RealTensorValue _la_s
Thermal conductivity of the solid phase.

Member Function Documentation

◆ computeQpProperties()

void PorousFlowThermalConductivityFromPorosity::computeQpProperties ( )
overrideprotectedvirtual

Definition at line 49 of file PorousFlowThermalConductivityFromPorosity.C.

50 {
51  _la_qp[_qp] = _la_s * (1.0 - _porosity_qp[_qp]) + _la_f * _porosity_qp[_qp];
52 
53  _dla_qp_dvar[_qp].assign(_num_var, RealTensorValue());
54  for (unsigned v = 0; v < _num_var; ++v)
55  _dla_qp_dvar[_qp][v] = (_la_f - _la_s) * _dporosity_qp_dvar[_qp][v];
56 }
const RealTensorValue _la_f
Thermal conductivity of the single fluid phase.
const MaterialProperty< Real > & _porosity_qp
Quadpoint porosity.
MaterialProperty< std::vector< RealTensorValue > > & _dla_qp_dvar
d(thermal conductivity at the qps)/d(PorousFlow variable)
const MaterialProperty< std::vector< Real > > & _dporosity_qp_dvar
d(quadpoint porosity)/d(PorousFlow variable)
const unsigned int _num_var
Number of PorousFlow variables.
MaterialProperty< RealTensorValue > & _la_qp
Thermal conducitivity at the qps.
const RealTensorValue _la_s
Thermal conductivity of the solid phase.

Member Data Documentation

◆ _dla_qp_dvar

MaterialProperty<std::vector<RealTensorValue> >& PorousFlowThermalConductivityBase::_dla_qp_dvar
protectedinherited

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

Definition at line 33 of file PorousFlowThermalConductivityBase.h.

Referenced by PorousFlowThermalConductivityIdeal::computeQpProperties(), and computeQpProperties().

◆ _dporosity_qp_dvar

const MaterialProperty<std::vector<Real> >& PorousFlowThermalConductivityFromPorosity::_dporosity_qp_dvar
protected

d(quadpoint porosity)/d(PorousFlow variable)

Definition at line 46 of file PorousFlowThermalConductivityFromPorosity.h.

Referenced by computeQpProperties().

◆ _la_f

const RealTensorValue PorousFlowThermalConductivityFromPorosity::_la_f
protected

Thermal conductivity of the single fluid phase.

Definition at line 40 of file PorousFlowThermalConductivityFromPorosity.h.

Referenced by computeQpProperties().

◆ _la_qp

MaterialProperty<RealTensorValue>& PorousFlowThermalConductivityBase::_la_qp
protectedinherited

Thermal conducitivity at the qps.

Definition at line 30 of file PorousFlowThermalConductivityBase.h.

Referenced by PorousFlowThermalConductivityIdeal::computeQpProperties(), and computeQpProperties().

◆ _la_s

const RealTensorValue PorousFlowThermalConductivityFromPorosity::_la_s
protected

Thermal conductivity of the solid phase.

Definition at line 37 of file PorousFlowThermalConductivityFromPorosity.h.

Referenced by computeQpProperties().

◆ _num_components

const unsigned int PorousFlowMaterialVectorBase::_num_components
protectedinherited

◆ _num_phases

const unsigned int PorousFlowMaterialVectorBase::_num_phases
protectedinherited

◆ _num_var

const unsigned int PorousFlowMaterialVectorBase::_num_var
protectedinherited

◆ _porosity_qp

const MaterialProperty<Real>& PorousFlowThermalConductivityFromPorosity::_porosity_qp
protected

Quadpoint porosity.

Definition at line 43 of file PorousFlowThermalConductivityFromPorosity.h.

Referenced by computeQpProperties().


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