www.mooseframework.org
GBDependentDiffusivity.C
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
3 //*
4 //* All rights reserved, see COPYRIGHT for full restrictions
5 //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6 //*
7 //* Licensed under LGPL 2.1, please see LICENSE for details
8 //* https://www.gnu.org/licenses/lgpl-2.1.html
9 
10 #include "GBDependentDiffusivity.h"
11 
13 
16 {
18  params.addClassDescription("Compute diffusivity rank two tensor based on GB phase variable");
19  return params;
20 }
21 
23  : GBDependentTensorBase(parameters)
24 {
25 }
26 
27 void
29 {
30  _gb_dependent_tensor[_qp].zero();
31 }
32 
33 void
35 {
37  RankTwoTensor gb_tensor;
38 
39  gb_tensor = (1.0 - _gb[_qp]) * _bulk_parameter * iden +
40  _gb[_qp] * _gb_parameter * (iden - _gb_normal_tensor[_qp]);
42 }
MaterialProperty< RealTensorValue > & _gb_dependent_tensor
const MaterialProperty< RankTwoTensor > & _gb_normal_tensor
registerMooseObject("PhaseFieldApp", GBDependentDiffusivity)
static InputParameters validParams()
Base class to define GB dependent properties.
GBDependentDiffusivity(const InputParameters &parameters)
GB dependent diffusivity Ref.
void fillRealTensor(libMesh::TensorValue< Real > &)
static InputParameters validParams()
void addClassDescription(const std::string &doc_string)
const VariableValue & _gb
virtual void initQpStatefulProperties()