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

Calculates resistivity and electrical conductivity as a function of temperature. More...

#include <ElectricalConductivity.h>

Inheritance diagram for ElectricalConductivity:
[legend]

Public Member Functions

 ElectricalConductivity (const InputParameters &parameters)
 

Protected Member Functions

virtual void computeQpProperties ()
 

Private Attributes

const Real _length_scale
 
const Real _ref_resis
 
const Real _temp_coeff
 
const Real _ref_temp
 
const VariableValue & _T
 
std::string _base_name
 
MaterialProperty< Real > & _electric_conductivity
 
MaterialProperty< Real > & _delectric_conductivity_dT
 

Detailed Description

Calculates resistivity and electrical conductivity as a function of temperature.

It is assumed that resistivity varies linearly with temperature.

Definition at line 25 of file ElectricalConductivity.h.

Constructor & Destructor Documentation

◆ ElectricalConductivity()

ElectricalConductivity::ElectricalConductivity ( const InputParameters &  parameters)

Definition at line 34 of file ElectricalConductivity.C.

35  : DerivativeMaterialInterface<Material>(parameters),
36  _length_scale(getParam<Real>("length_scale")),
37  _ref_resis(getParam<Real>("ref_resistivity")),
38  _temp_coeff(getParam<Real>("temp_coeff")),
39  _ref_temp(getParam<Real>("ref_temp")),
40  _T(coupledValue("temp")),
41  _base_name(isParamValid("base_name") ? getParam<std::string>("base_name") + "_" : ""),
42  _electric_conductivity(declareProperty<Real>(_base_name + "electrical_conductivity")),
43  _delectric_conductivity_dT(declarePropertyDerivative<Real>(
44  _base_name + "electrical_conductivity", getVar("temp", 0)->name()))
45 {
46 }
MaterialProperty< Real > & _delectric_conductivity_dT
MaterialProperty< Real > & _electric_conductivity
const std::string name
Definition: Setup.h:22
const VariableValue & _T

Member Function Documentation

◆ computeQpProperties()

void ElectricalConductivity::computeQpProperties ( )
protectedvirtual

Definition at line 49 of file ElectricalConductivity.C.

50 {
51  const Real ref_resis = _ref_resis / _length_scale;
52  const Real resistivity = ref_resis * (1.0 + _temp_coeff * (_T[_qp] - _ref_temp));
53  const Real dresistivity_dT = ref_resis * _temp_coeff;
54  _electric_conductivity[_qp] = 1.0 / resistivity;
55  _delectric_conductivity_dT[_qp] = -1.0 / (resistivity * resistivity) * dresistivity_dT;
56 }
MaterialProperty< Real > & _delectric_conductivity_dT
MaterialProperty< Real > & _electric_conductivity
const VariableValue & _T

Member Data Documentation

◆ _base_name

std::string ElectricalConductivity::_base_name
private

Definition at line 40 of file ElectricalConductivity.h.

◆ _delectric_conductivity_dT

MaterialProperty<Real>& ElectricalConductivity::_delectric_conductivity_dT
private

Definition at line 42 of file ElectricalConductivity.h.

Referenced by computeQpProperties().

◆ _electric_conductivity

MaterialProperty<Real>& ElectricalConductivity::_electric_conductivity
private

Definition at line 41 of file ElectricalConductivity.h.

Referenced by computeQpProperties().

◆ _length_scale

const Real ElectricalConductivity::_length_scale
private

Definition at line 34 of file ElectricalConductivity.h.

Referenced by computeQpProperties().

◆ _ref_resis

const Real ElectricalConductivity::_ref_resis
private

Definition at line 35 of file ElectricalConductivity.h.

Referenced by computeQpProperties().

◆ _ref_temp

const Real ElectricalConductivity::_ref_temp
private

Definition at line 37 of file ElectricalConductivity.h.

Referenced by computeQpProperties().

◆ _T

const VariableValue& ElectricalConductivity::_T
private

Definition at line 38 of file ElectricalConductivity.h.

Referenced by computeQpProperties().

◆ _temp_coeff

const Real ElectricalConductivity::_temp_coeff
private

Definition at line 36 of file ElectricalConductivity.h.

Referenced by computeQpProperties().


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