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

Calculate phase normal tensor based on gradient. More...

#include <PhaseNormalTensor.h>

Inheritance diagram for PhaseNormalTensor:
[legend]

Public Member Functions

 PhaseNormalTensor (const InputParameters &parameters)
 

Protected Member Functions

virtual void initQpStatefulProperties ()
 
virtual void computeQpProperties ()
 

Protected Attributes

const VariableGradient & _grad_u
 
MaterialProperty< RankTwoTensor > & _normal_tensor
 

Detailed Description

Calculate phase normal tensor based on gradient.

Definition at line 22 of file PhaseNormalTensor.h.

Constructor & Destructor Documentation

PhaseNormalTensor::PhaseNormalTensor ( const InputParameters &  parameters)

Definition at line 20 of file PhaseNormalTensor.C.

21  : DerivativeMaterialInterface<Material>(parameters),
22  _grad_u(coupledGradient("phase")),
24  declareProperty<RankTwoTensor>(getParam<MaterialPropertyName>("normal_tensor_name")))
25 {
26 }
const VariableGradient & _grad_u
MaterialProperty< RankTwoTensor > & _normal_tensor

Member Function Documentation

void PhaseNormalTensor::computeQpProperties ( )
protectedvirtual

Definition at line 35 of file PhaseNormalTensor.C.

36 {
37  const Real magnitude = _grad_u[_qp].norm();
38 
39  if (magnitude > 0.0)
40  {
41  RealVectorValue vector = _grad_u[_qp] / magnitude;
42  _normal_tensor[_qp].vectorOuterProduct(vector, vector);
43  }
44  else
45  _normal_tensor[_qp].zero();
46 }
const VariableGradient & _grad_u
MaterialProperty< RankTwoTensor > & _normal_tensor
void PhaseNormalTensor::initQpStatefulProperties ( )
protectedvirtual

Definition at line 29 of file PhaseNormalTensor.C.

30 {
31  _normal_tensor[_qp].zero();
32 }
MaterialProperty< RankTwoTensor > & _normal_tensor

Member Data Documentation

const VariableGradient& PhaseNormalTensor::_grad_u
protected

Definition at line 31 of file PhaseNormalTensor.h.

Referenced by computeQpProperties().

MaterialProperty<RankTwoTensor>& PhaseNormalTensor::_normal_tensor
protected

Definition at line 32 of file PhaseNormalTensor.h.

Referenced by computeQpProperties(), and initQpStatefulProperties().


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