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 17 of file ElectricalConductivity.h.

Constructor & Destructor Documentation

ElectricalConductivity::ElectricalConductivity ( const InputParameters &  parameters)

Definition at line 24 of file ElectricalConductivity.C.

25  : DerivativeMaterialInterface<Material>(parameters),
26  _length_scale(getParam<Real>("length_scale")),
27  _ref_resis(getParam<Real>("ref_resistivity")),
28  _temp_coeff(getParam<Real>("temp_coeff")),
29  _ref_temp(getParam<Real>("ref_temp")),
30  _T(coupledValue("temp")),
31  _base_name(isParamValid("base_name") ? getParam<std::string>("base_name") + "_" : ""),
32  _electric_conductivity(declareProperty<Real>(_base_name + "electrical_conductivity")),
33  _delectric_conductivity_dT(declarePropertyDerivative<Real>(
34  _base_name + "electrical_conductivity", getVar("temp", 0)->name()))
35 {
36 }
MaterialProperty< Real > & _delectric_conductivity_dT
MaterialProperty< Real > & _electric_conductivity
const VariableValue & _T

Member Function Documentation

void ElectricalConductivity::computeQpProperties ( )
protectedvirtual

Definition at line 39 of file ElectricalConductivity.C.

40 {
41  const Real ref_resis = _ref_resis / _length_scale;
42  const Real resistivity = ref_resis * (1.0 + _temp_coeff * (_T[_qp] - _ref_temp));
43  const Real dresistivity_dT = ref_resis * _temp_coeff;
44  _electric_conductivity[_qp] = 1.0 / resistivity;
45  _delectric_conductivity_dT[_qp] = -1.0 / (resistivity * resistivity) * dresistivity_dT;
46 }
MaterialProperty< Real > & _delectric_conductivity_dT
MaterialProperty< Real > & _electric_conductivity
const VariableValue & _T

Member Data Documentation

std::string ElectricalConductivity::_base_name
private

Definition at line 32 of file ElectricalConductivity.h.

MaterialProperty<Real>& ElectricalConductivity::_delectric_conductivity_dT
private

Definition at line 34 of file ElectricalConductivity.h.

Referenced by computeQpProperties().

MaterialProperty<Real>& ElectricalConductivity::_electric_conductivity
private

Definition at line 33 of file ElectricalConductivity.h.

Referenced by computeQpProperties().

const Real ElectricalConductivity::_length_scale
private

Definition at line 26 of file ElectricalConductivity.h.

Referenced by computeQpProperties().

const Real ElectricalConductivity::_ref_resis
private

Definition at line 27 of file ElectricalConductivity.h.

Referenced by computeQpProperties().

const Real ElectricalConductivity::_ref_temp
private

Definition at line 29 of file ElectricalConductivity.h.

Referenced by computeQpProperties().

const VariableValue& ElectricalConductivity::_T
private

Definition at line 30 of file ElectricalConductivity.h.

Referenced by computeQpProperties().

const Real ElectricalConductivity::_temp_coeff
private

Definition at line 28 of file ElectricalConductivity.h.

Referenced by computeQpProperties().


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