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

Homogenization of Temperature-Dependent Thermal Conductivity in Composite Materials, Journal of Thermophysics and Heat Transfer, Vol. More...

#include <HomogenizedThermalConductivity.h>

Inheritance diagram for HomogenizedThermalConductivity:
[legend]

Public Member Functions

 HomogenizedThermalConductivity (const InputParameters &parameters)
 
virtual void initialize ()
 
virtual void execute ()
 
virtual Real getValue ()
 
virtual void threadJoin (const UserObject &y)
 

Protected Member Functions

virtual Real computeQpIntegral ()
 

Private Attributes

const VariableGradient & _grad_temp_x
 
const VariableGradient & _grad_temp_y
 
const VariableGradient & _grad_temp_z
 
const unsigned int _component
 
const MaterialProperty< Real > & _diffusion_coefficient
 
Real _volume
 
Real _integral_value
 
const Real _scale
 

Detailed Description

Homogenization of Temperature-Dependent Thermal Conductivity in Composite Materials, Journal of Thermophysics and Heat Transfer, Vol.

15, No. 1, January-March 2001.

Definition at line 20 of file HomogenizedThermalConductivity.h.

Constructor & Destructor Documentation

◆ HomogenizedThermalConductivity()

HomogenizedThermalConductivity::HomogenizedThermalConductivity ( const InputParameters &  parameters)

Definition at line 36 of file HomogenizedThermalConductivity.C.

37  : ElementAverageValue(parameters),
38  _grad_temp_x(coupledGradient("temp_x")),
39  _grad_temp_y(_subproblem.mesh().dimension() >= 2 ? coupledGradient("temp_y") : _grad_zero),
40  _grad_temp_z(_subproblem.mesh().dimension() == 3 ? coupledGradient("temp_z") : _grad_zero),
41  _component(getParam<unsigned int>("component")),
42  _diffusion_coefficient(getMaterialProperty<Real>("diffusion_coefficient")),
43  _scale(getParam<Real>("scale_factor"))
44 {
45 }
const MaterialProperty< Real > & _diffusion_coefficient

Member Function Documentation

◆ computeQpIntegral()

Real HomogenizedThermalConductivity::computeQpIntegral ( )
protectedvirtual

Definition at line 81 of file HomogenizedThermalConductivity.C.

82 {
83  Real value = 1.0;
84 
85  switch (_component)
86  {
87  case 0:
88  value += _grad_temp_x[_qp](0);
89  break;
90 
91  case 1:
92  value += _grad_temp_y[_qp](1);
93  break;
94 
95  case 2:
96  value += _grad_temp_z[_qp](2);
97  break;
98 
99  default:
100  mooseError("Internal error.");
101  }
102 
103  return _scale * _diffusion_coefficient[_qp] * value;
104 }
const MaterialProperty< Real > & _diffusion_coefficient

◆ execute()

void HomogenizedThermalConductivity::execute ( )
virtual

Definition at line 55 of file HomogenizedThermalConductivity.C.

56 {
57  _integral_value += computeIntegral();
58  _volume += _current_elem_volume;
59 }

◆ getValue()

Real HomogenizedThermalConductivity::getValue ( )
virtual

Definition at line 62 of file HomogenizedThermalConductivity.C.

◆ initialize()

void HomogenizedThermalConductivity::initialize ( )
virtual

◆ threadJoin()

void HomogenizedThermalConductivity::threadJoin ( const UserObject &  y)
virtual

Definition at line 71 of file HomogenizedThermalConductivity.C.

72 {
73  const HomogenizedThermalConductivity & pps =
74  dynamic_cast<const HomogenizedThermalConductivity &>(y);
75 
77  _volume += pps._volume;
78 }
Homogenization of Temperature-Dependent Thermal Conductivity in Composite Materials, Journal of Thermophysics and Heat Transfer, Vol.

Member Data Documentation

◆ _component

const unsigned int HomogenizedThermalConductivity::_component
private

Definition at line 37 of file HomogenizedThermalConductivity.h.

Referenced by computeQpIntegral().

◆ _diffusion_coefficient

const MaterialProperty<Real>& HomogenizedThermalConductivity::_diffusion_coefficient
private

Definition at line 38 of file HomogenizedThermalConductivity.h.

Referenced by computeQpIntegral().

◆ _grad_temp_x

const VariableGradient& HomogenizedThermalConductivity::_grad_temp_x
private

Definition at line 34 of file HomogenizedThermalConductivity.h.

Referenced by computeQpIntegral().

◆ _grad_temp_y

const VariableGradient& HomogenizedThermalConductivity::_grad_temp_y
private

Definition at line 35 of file HomogenizedThermalConductivity.h.

Referenced by computeQpIntegral().

◆ _grad_temp_z

const VariableGradient& HomogenizedThermalConductivity::_grad_temp_z
private

Definition at line 36 of file HomogenizedThermalConductivity.h.

Referenced by computeQpIntegral().

◆ _integral_value

Real HomogenizedThermalConductivity::_integral_value
private

Definition at line 40 of file HomogenizedThermalConductivity.h.

Referenced by execute(), getValue(), initialize(), and threadJoin().

◆ _scale

const Real HomogenizedThermalConductivity::_scale
private

Definition at line 41 of file HomogenizedThermalConductivity.h.

Referenced by computeQpIntegral().

◆ _volume

Real HomogenizedThermalConductivity::_volume
private

Definition at line 39 of file HomogenizedThermalConductivity.h.

Referenced by execute(), getValue(), initialize(), and threadJoin().


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