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

This material computes thermal conductivity for a PorousMedium - fluid system, by using Thermal conductivity = dry_thermal_conductivity + S^exponent * (wet_thermal_conductivity - dry_thermal_conductivity), where S is the aqueous saturation. More...

#include <PorousFlowThermalConductivityIdeal.h>

Inheritance diagram for PorousFlowThermalConductivityIdeal:
[legend]

Public Member Functions

 PorousFlowThermalConductivityIdeal (const InputParameters &parameters)
 

Protected Member Functions

virtual void computeQpProperties () override
 

Protected Attributes

const RealTensorValue _la_dry
 Dry thermal conductivity of rock. More...
 
const bool _wet_and_dry_differ
 Whether _la_wet has been supplied. More...
 
const RealTensorValue _la_wet
 Wet thermal conductivity of rock. More...
 
const Real _exponent
 Exponent for saturation. More...
 
const bool _aqueous_phase
 Whether this is a fluid simulation. More...
 
const unsigned _aqueous_phase_number
 Phase number of the aqueous phase. More...
 
const MaterialProperty< std::vector< Real > > *const _saturation_qp
 Saturation of the fluid phases at the quadpoints. More...
 
const MaterialProperty< std::vector< std::vector< Real > > > *const _dsaturation_qp_dvar
 d(Saturation)/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 computes thermal conductivity for a PorousMedium - fluid system, by using Thermal conductivity = dry_thermal_conductivity + S^exponent * (wet_thermal_conductivity - dry_thermal_conductivity), where S is the aqueous saturation.

Definition at line 26 of file PorousFlowThermalConductivityIdeal.h.

Constructor & Destructor Documentation

◆ PorousFlowThermalConductivityIdeal()

PorousFlowThermalConductivityIdeal::PorousFlowThermalConductivityIdeal ( const InputParameters &  parameters)

Definition at line 44 of file PorousFlowThermalConductivityIdeal.C.

47  _la_dry(getParam<RealTensorValue>("dry_thermal_conductivity")),
48  _wet_and_dry_differ(parameters.isParamValid("wet_thermal_conductivity")),
49  _la_wet(_wet_and_dry_differ ? getParam<RealTensorValue>("wet_thermal_conductivity")
50  : getParam<RealTensorValue>("dry_thermal_conductivity")),
51  _exponent(getParam<Real>("exponent")),
53  _aqueous_phase_number(getParam<unsigned>("aqueous_phase_number")),
55  ? &getMaterialProperty<std::vector<Real>>("PorousFlow_saturation_qp")
56  : nullptr),
57  _dsaturation_qp_dvar(_aqueous_phase ? &getMaterialProperty<std::vector<std::vector<Real>>>(
58  "dPorousFlow_saturation_qp_dvar")
59  : nullptr)
60 {
62  mooseError("PorousFlowThermalConductivityIdeal: Your aqueous phase number, ",
64  " must not exceed the number of fluid phases in the system, which is ",
66  "\n");
67 }

Member Function Documentation

◆ computeQpProperties()

void PorousFlowThermalConductivityIdeal::computeQpProperties ( )
overrideprotectedvirtual

Definition at line 70 of file PorousFlowThermalConductivityIdeal.C.

71 {
72  _la_qp[_qp] = _la_dry;
74  _la_qp[_qp] +=
76 
77  _dla_qp_dvar[_qp].assign(_num_var, RealTensorValue());
79  for (unsigned v = 0; v < _num_var; ++v)
80  _dla_qp_dvar[_qp][v] =
82  (*_dsaturation_qp_dvar)[_qp][_aqueous_phase_number][v] * (_la_wet - _la_dry);
83 }

Member Data Documentation

◆ _aqueous_phase

const bool PorousFlowThermalConductivityIdeal::_aqueous_phase
protected

Whether this is a fluid simulation.

Definition at line 47 of file PorousFlowThermalConductivityIdeal.h.

Referenced by computeQpProperties(), and PorousFlowThermalConductivityIdeal().

◆ _aqueous_phase_number

const unsigned PorousFlowThermalConductivityIdeal::_aqueous_phase_number
protected

Phase number of the aqueous phase.

Definition at line 50 of file PorousFlowThermalConductivityIdeal.h.

Referenced by computeQpProperties(), and PorousFlowThermalConductivityIdeal().

◆ _dla_qp_dvar

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

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

Definition at line 32 of file PorousFlowThermalConductivityBase.h.

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

◆ _dsaturation_qp_dvar

const MaterialProperty<std::vector<std::vector<Real> > >* const PorousFlowThermalConductivityIdeal::_dsaturation_qp_dvar
protected

d(Saturation)/d(PorousFlow variable)

Definition at line 56 of file PorousFlowThermalConductivityIdeal.h.

◆ _exponent

const Real PorousFlowThermalConductivityIdeal::_exponent
protected

Exponent for saturation.

Definition at line 44 of file PorousFlowThermalConductivityIdeal.h.

Referenced by computeQpProperties().

◆ _la_dry

const RealTensorValue PorousFlowThermalConductivityIdeal::_la_dry
protected

Dry thermal conductivity of rock.

Definition at line 35 of file PorousFlowThermalConductivityIdeal.h.

Referenced by computeQpProperties().

◆ _la_qp

MaterialProperty<RealTensorValue>& PorousFlowThermalConductivityBase::_la_qp
protectedinherited

Thermal conducitivity at the qps.

Definition at line 29 of file PorousFlowThermalConductivityBase.h.

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

◆ _la_wet

const RealTensorValue PorousFlowThermalConductivityIdeal::_la_wet
protected

Wet thermal conductivity of rock.

Definition at line 41 of file PorousFlowThermalConductivityIdeal.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

◆ _saturation_qp

const MaterialProperty<std::vector<Real> >* const PorousFlowThermalConductivityIdeal::_saturation_qp
protected

Saturation of the fluid phases at the quadpoints.

Definition at line 53 of file PorousFlowThermalConductivityIdeal.h.

Referenced by computeQpProperties().

◆ _wet_and_dry_differ

const bool PorousFlowThermalConductivityIdeal::_wet_and_dry_differ
protected

Whether _la_wet has been supplied.

Definition at line 38 of file PorousFlowThermalConductivityIdeal.h.

Referenced by computeQpProperties().


The documentation for this class was generated from the following files:
PorousFlowThermalConductivityIdeal::_aqueous_phase
const bool _aqueous_phase
Whether this is a fluid simulation.
Definition: PorousFlowThermalConductivityIdeal.h:47
PorousFlowThermalConductivityIdeal::_saturation_qp
const MaterialProperty< std::vector< Real > > *const _saturation_qp
Saturation of the fluid phases at the quadpoints.
Definition: PorousFlowThermalConductivityIdeal.h:53
pow
ExpressionBuilder::EBTerm pow(const ExpressionBuilder::EBTerm &left, T exponent)
Definition: ExpressionBuilder.h:673
PorousFlowThermalConductivityIdeal::_aqueous_phase_number
const unsigned _aqueous_phase_number
Phase number of the aqueous phase.
Definition: PorousFlowThermalConductivityIdeal.h:50
PorousFlowThermalConductivityBase::PorousFlowThermalConductivityBase
PorousFlowThermalConductivityBase(const InputParameters &parameters)
Definition: PorousFlowThermalConductivityBase.C:23
PorousFlowThermalConductivityBase::_dla_qp_dvar
MaterialProperty< std::vector< RealTensorValue > > & _dla_qp_dvar
d(thermal conductivity at the qps)/d(PorousFlow variable)
Definition: PorousFlowThermalConductivityBase.h:32
PorousFlowThermalConductivityIdeal::_exponent
const Real _exponent
Exponent for saturation.
Definition: PorousFlowThermalConductivityIdeal.h:44
PorousFlowThermalConductivityIdeal::_dsaturation_qp_dvar
const MaterialProperty< std::vector< std::vector< Real > > > *const _dsaturation_qp_dvar
d(Saturation)/d(PorousFlow variable)
Definition: PorousFlowThermalConductivityIdeal.h:56
PorousFlowThermalConductivityBase::_la_qp
MaterialProperty< RealTensorValue > & _la_qp
Thermal conducitivity at the qps.
Definition: PorousFlowThermalConductivityBase.h:29
PorousFlowThermalConductivityIdeal::_la_wet
const RealTensorValue _la_wet
Wet thermal conductivity of rock.
Definition: PorousFlowThermalConductivityIdeal.h:41
PorousFlowMaterialVectorBase::_num_var
const unsigned int _num_var
Number of PorousFlow variables.
Definition: PorousFlowMaterialVectorBase.h:36
PorousFlowMaterialVectorBase::_num_phases
const unsigned int _num_phases
Number of phases.
Definition: PorousFlowMaterialVectorBase.h:30
PorousFlowThermalConductivityIdeal::_wet_and_dry_differ
const bool _wet_and_dry_differ
Whether _la_wet has been supplied.
Definition: PorousFlowThermalConductivityIdeal.h:38
PorousFlowThermalConductivityIdeal::_la_dry
const RealTensorValue _la_dry
Dry thermal conductivity of rock.
Definition: PorousFlowThermalConductivityIdeal.h:35