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

ConstantAnisotropicMobility provides a simple RealTensorValue type MaterialProperty that can be used as a mobility in a phase field simulation. More...

#include <ConstantAnisotropicMobility.h>

Inheritance diagram for ConstantAnisotropicMobility:
[legend]

Public Member Functions

 ConstantAnisotropicMobility (const InputParameters &parameters)
 

Protected Member Functions

virtual void computeProperties ()
 
virtual void initialSetup ()
 

Protected Attributes

std::vector< Real > _M_values
 raw tensor values as passed in from the input file More...
 
MaterialPropertyName _M_name
 Name of the mobility tensor material property. More...
 
MaterialProperty< RealTensorValue > & _M
 

Detailed Description

ConstantAnisotropicMobility provides a simple RealTensorValue type MaterialProperty that can be used as a mobility in a phase field simulation.

Definition at line 21 of file ConstantAnisotropicMobility.h.

Constructor & Destructor Documentation

ConstantAnisotropicMobility::ConstantAnisotropicMobility ( const InputParameters &  parameters)

Definition at line 22 of file ConstantAnisotropicMobility.C.

23  : Material(parameters),
24  _M_values(getParam<std::vector<Real>>("tensor")),
25  _M_name(getParam<MaterialPropertyName>("M_name")),
26  _M(declareProperty<RealTensorValue>(_M_name))
27 {
28 }
std::vector< Real > _M_values
raw tensor values as passed in from the input file
MaterialProperty< RealTensorValue > & _M
MaterialPropertyName _M_name
Name of the mobility tensor material property.

Member Function Documentation

virtual void ConstantAnisotropicMobility::computeProperties ( )
inlineprotectedvirtual

Definition at line 27 of file ConstantAnisotropicMobility.h.

27 {};
void ConstantAnisotropicMobility::initialSetup ( )
protectedvirtual

Definition at line 31 of file ConstantAnisotropicMobility.C.

Referenced by computeProperties().

32 {
33  _M.resize(_fe_problem.getMaxQps());
34  for (unsigned int qp = 0; qp < _M.size(); ++qp)
35  for (unsigned int a = 0; a < LIBMESH_DIM; ++a)
36  for (unsigned int b = 0; b < LIBMESH_DIM; ++b)
37  _M[qp](a, b) = _M_values[a * 3 + b];
38 }
std::vector< Real > _M_values
raw tensor values as passed in from the input file
MaterialProperty< RealTensorValue > & _M

Member Data Documentation

MaterialProperty<RealTensorValue>& ConstantAnisotropicMobility::_M
protected

Definition at line 35 of file ConstantAnisotropicMobility.h.

Referenced by initialSetup().

MaterialPropertyName ConstantAnisotropicMobility::_M_name
protected

Name of the mobility tensor material property.

Definition at line 34 of file ConstantAnisotropicMobility.h.

std::vector<Real> ConstantAnisotropicMobility::_M_values
protected

raw tensor values as passed in from the input file

Definition at line 31 of file ConstantAnisotropicMobility.h.

Referenced by initialSetup().


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