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 26 of file PorousFlowThermalConductivityFromPorosity.h.

Constructor & Destructor Documentation

PorousFlowThermalConductivityFromPorosity::PorousFlowThermalConductivityFromPorosity ( const InputParameters &  parameters)

Definition at line 29 of file PorousFlowThermalConductivityFromPorosity.C.

31  : PorousFlowMaterialVectorBase(parameters),
32  _la_s(getParam<RealTensorValue>("lambda_s")),
33  _la_f(getParam<RealTensorValue>("lambda_f")),
34  _porosity_qp(getMaterialProperty<Real>("PorousFlow_porosity_qp")),
35  _dporosity_qp_dvar(getMaterialProperty<std::vector<Real>>("dPorousFlow_porosity_qp_dvar")),
36  _la_qp(declareProperty<RealTensorValue>("PorousFlow_thermal_conductivity_qp")),
38  declareProperty<std::vector<RealTensorValue>>("dPorousFlow_thermal_conductivity_qp_dvar"))
39 {
40  if (_num_phases != 1)
41  mooseError("The Dictator proclaims that the number of phases is ",
42  _dictator.numPhases(),
43  " whereas PorousFlowThermalConductivityFromPorosity can only be used for 1-phase "
44  "simulations. Be aware "
45  "that the Dictator has noted your mistake.");
46  if (_nodal_material == true)
47  mooseError("PorousFlowThermalConductivity classes are only defined for at_nodes = false");
48 }
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
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)
PorousFlowMaterialVectorBase(const InputParameters &parameters)
MaterialProperty< RealTensorValue > & _la_qp
Thermal conducitivity at the qps.
const RealTensorValue _la_s
Thermal conductivity of the solid phase.

Member Function Documentation

void PorousFlowThermalConductivityFromPorosity::computeQpProperties ( )
overrideprotectedvirtual

Definition at line 51 of file PorousFlowThermalConductivityFromPorosity.C.

52 {
53  _la_qp[_qp] = _la_s * (1.0 - _porosity_qp[_qp]) + _la_f * _porosity_qp[_qp];
54 
55  _dla_qp_dvar[_qp].assign(_num_var, RealTensorValue());
56  for (unsigned v = 0; v < _num_var; ++v)
57  _dla_qp_dvar[_qp][v] = (_la_f - _la_s) * _dporosity_qp_dvar[_qp][v];
58 }
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

MaterialProperty<std::vector<RealTensorValue> >& PorousFlowThermalConductivityFromPorosity::_dla_qp_dvar
protected

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

Definition at line 50 of file PorousFlowThermalConductivityFromPorosity.h.

Referenced by computeQpProperties().

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

d(quadpoint porosity)/d(PorousFlow variable)

Definition at line 44 of file PorousFlowThermalConductivityFromPorosity.h.

Referenced by computeQpProperties().

const RealTensorValue PorousFlowThermalConductivityFromPorosity::_la_f
protected

Thermal conductivity of the single fluid phase.

Definition at line 38 of file PorousFlowThermalConductivityFromPorosity.h.

Referenced by computeQpProperties().

MaterialProperty<RealTensorValue>& PorousFlowThermalConductivityFromPorosity::_la_qp
protected

Thermal conducitivity at the qps.

Definition at line 47 of file PorousFlowThermalConductivityFromPorosity.h.

Referenced by computeQpProperties().

const RealTensorValue PorousFlowThermalConductivityFromPorosity::_la_s
protected

Thermal conductivity of the solid phase.

Definition at line 35 of file PorousFlowThermalConductivityFromPorosity.h.

Referenced by computeQpProperties().

const unsigned int PorousFlowMaterialVectorBase::_num_components
protectedinherited
const unsigned int PorousFlowMaterialVectorBase::_num_phases
protectedinherited
const unsigned int PorousFlowMaterialVectorBase::_num_var
protectedinherited
const MaterialProperty<Real>& PorousFlowThermalConductivityFromPorosity::_porosity_qp
protected

quadpoint porosity

Definition at line 41 of file PorousFlowThermalConductivityFromPorosity.h.

Referenced by computeQpProperties().


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