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 24 of file ConstantAnisotropicMobility.h.

## ◆ ConstantAnisotropicMobility()

 ConstantAnisotropicMobility::ConstantAnisotropicMobility ( const InputParameters & parameters )

Definition at line 27 of file ConstantAnisotropicMobility.C.

28  : Material(parameters),
29  _M_values(getParam<std::vector<Real>>("tensor")),
30  _M_name(getParam<MaterialPropertyName>("M_name")),
31  _M(declareProperty<RealTensorValue>(_M_name))
32 {
33 }
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.

## ◆ computeProperties()

 virtual void ConstantAnisotropicMobility::computeProperties ( )
inlineprotectedvirtual

Definition at line 30 of file ConstantAnisotropicMobility.h.

30 {};

## ◆ initialSetup()

 void ConstantAnisotropicMobility::initialSetup ( )
protectedvirtual

Definition at line 36 of file ConstantAnisotropicMobility.C.

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

## ◆ _M

 MaterialProperty& ConstantAnisotropicMobility::_M
protected

Definition at line 38 of file ConstantAnisotropicMobility.h.

Referenced by initialSetup().

## ◆ _M_name

 MaterialPropertyName ConstantAnisotropicMobility::_M_name
protected

Name of the mobility tensor material property.

Definition at line 37 of file ConstantAnisotropicMobility.h.

## ◆ _M_values

 std::vector ConstantAnisotropicMobility::_M_values
protected

raw tensor values as passed in from the input file

Definition at line 34 of file ConstantAnisotropicMobility.h.

Referenced by initialSetup().

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