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 27 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 }
PorousFlowThermalConductivityBase(const InputParameters &parameters)
const Real _exponent
Exponent for saturation.
const unsigned int _num_phases
Number of phases.
const RealTensorValue _la_wet
Wet thermal conductivity of rock.
const bool _wet_and_dry_differ
Whether _la_wet has been supplied.
const bool _aqueous_phase
Whether this is a fluid simulation.
const RealTensorValue _la_dry
Dry thermal conductivity of rock.
const MaterialProperty< std::vector< Real > > *const _saturation_qp
Saturation of the fluid phases at the quadpoints.
const unsigned _aqueous_phase_number
Phase number of the aqueous phase.
const MaterialProperty< std::vector< std::vector< Real > > > *const _dsaturation_qp_dvar
d(Saturation)/d(PorousFlow variable)

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 }
const Real _exponent
Exponent for saturation.
const RealTensorValue _la_wet
Wet thermal conductivity of rock.
MaterialProperty< std::vector< RealTensorValue > > & _dla_qp_dvar
d(thermal conductivity at the qps)/d(PorousFlow variable)
const bool _wet_and_dry_differ
Whether _la_wet has been supplied.
const bool _aqueous_phase
Whether this is a fluid simulation.
const RealTensorValue _la_dry
Dry thermal conductivity of rock.
const unsigned int _num_var
Number of PorousFlow variables.
ExpressionBuilder::EBTerm pow(const ExpressionBuilder::EBTerm &left, T exponent)
const MaterialProperty< std::vector< Real > > *const _saturation_qp
Saturation of the fluid phases at the quadpoints.
MaterialProperty< RealTensorValue > & _la_qp
Thermal conducitivity at the qps.
const unsigned _aqueous_phase_number
Phase number of the aqueous phase.

Member Data Documentation

◆ _aqueous_phase

const bool PorousFlowThermalConductivityIdeal::_aqueous_phase
protected

Whether this is a fluid simulation.

Definition at line 48 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 51 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 33 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 57 of file PorousFlowThermalConductivityIdeal.h.

◆ _exponent

const Real PorousFlowThermalConductivityIdeal::_exponent
protected

Exponent for saturation.

Definition at line 45 of file PorousFlowThermalConductivityIdeal.h.

Referenced by computeQpProperties().

◆ _la_dry

const RealTensorValue PorousFlowThermalConductivityIdeal::_la_dry
protected

Dry thermal conductivity of rock.

Definition at line 36 of file PorousFlowThermalConductivityIdeal.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 computeQpProperties(), and PorousFlowThermalConductivityFromPorosity::computeQpProperties().

◆ _la_wet

const RealTensorValue PorousFlowThermalConductivityIdeal::_la_wet
protected

Wet thermal conductivity of rock.

Definition at line 42 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 54 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 39 of file PorousFlowThermalConductivityIdeal.h.

Referenced by computeQpProperties().


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