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

Material class to provide the switching function \( h(\eta) \) for the KKS system. More...

#include <MixedSwitchingFunctionMaterial.h>

Inheritance diagram for MixedSwitchingFunctionMaterial:
[legend]

Public Member Functions

 MixedSwitchingFunctionMaterial (const InputParameters &parameters)
 

Protected Member Functions

virtual void computeQpProperties ()
 

Protected Attributes

MooseEnum _h_order
 Polynomial order of the switching function \( h(\eta) \). More...
 
Real _weight
 Weight parameter of mixed-type h(eta) More...
 
const VariableValue & _eta
 Coupled variable value for the order parameter \( \eta \). More...
 
unsigned int _eta_var
 
VariableName _eta_name
 
std::string _function_name
 name of the function of eta (used to generate the material property names) More...
 
MaterialProperty< Real > & _prop_f
 Material property to store \( f(\eta) \). More...
 
MaterialProperty< Real > & _prop_df
 Material property to store the derivative \( df(\eta)/d\eta \). More...
 
MaterialProperty< Real > & _prop_d2f
 Material property to store the second derivative \( d^2f(\eta)/d\eta^2 \). More...
 

Detailed Description

Material class to provide the switching function \( h(\eta) \) for the KKS system.

See also
KKSPhaseChemicalPotential
KKSCHBulk

Definition at line 25 of file MixedSwitchingFunctionMaterial.h.

Constructor & Destructor Documentation

MixedSwitchingFunctionMaterial::MixedSwitchingFunctionMaterial ( const InputParameters &  parameters)

Definition at line 27 of file MixedSwitchingFunctionMaterial.C.

28  : OrderParameterFunctionMaterial(parameters),
29  _h_order(getParam<MooseEnum>("h_order")),
30  _weight(getParam<Real>("weight"))
31 {
32 }
MooseEnum _h_order
Polynomial order of the switching function .
OrderParameterFunctionMaterial(const InputParameters &parameters)
Real _weight
Weight parameter of mixed-type h(eta)

Member Function Documentation

void MixedSwitchingFunctionMaterial::computeQpProperties ( )
protectedvirtual

Definition at line 35 of file MixedSwitchingFunctionMaterial.C.

36 {
37  Real n = _eta[_qp];
38  n = n > 1 ? 1 : (n < 0 ? 0 : n);
39 
40  switch (_h_order)
41  {
42  case 0: // MIX234
43  _prop_f[_qp] =
44  n * n * (3.0 * _weight + (4.0 - 6.0 * _weight) * n + (3.0 * _weight - 3.0) * n * n);
45  _prop_df[_qp] =
46  n * (6.0 * _weight + (12.0 - 18.0 * _weight) * n + (12.0 * _weight - 12.0) * n * n);
47  _prop_d2f[_qp] = 6.0 * _weight + ((24.0 - 36.0 * _weight) + (36.0 * _weight - 36.0) * n) * n;
48  break;
49 
50  case 1: // MIX246
51  _prop_f[_qp] =
52  n * n * (2.0 * _weight + n * n * ((3.0 - 4.0 * _weight) + (2.0 * _weight - 2.0) * n * n));
53  _prop_df[_qp] =
54  n * (4.0 * _weight + n * n * ((12.0 - 16.0 * _weight) + (12.0 * _weight - 12.0) * n * n));
55  _prop_d2f[_qp] =
56  4.0 * _weight + n * n * ((36.0 - 48.0 * _weight) + (60.0 * _weight - 60.0) * n * n);
57  break;
58 
59  default:
60  mooseError("Internal error");
61  }
62 }
MooseEnum _h_order
Polynomial order of the switching function .
MaterialProperty< Real > & _prop_d2f
Material property to store the second derivative .
Real _weight
Weight parameter of mixed-type h(eta)
MaterialProperty< Real > & _prop_df
Material property to store the derivative .
MaterialProperty< Real > & _prop_f
Material property to store .
const VariableValue & _eta
Coupled variable value for the order parameter .

Member Data Documentation

const VariableValue& OrderParameterFunctionMaterial::_eta
protectedinherited

Coupled variable value for the order parameter \( \eta \).

Definition at line 31 of file OrderParameterFunctionMaterial.h.

Referenced by BarrierFunctionMaterial::computeQpProperties(), computeQpProperties(), and SwitchingFunctionMaterial::computeQpProperties().

VariableName OrderParameterFunctionMaterial::_eta_name
protectedinherited

Definition at line 33 of file OrderParameterFunctionMaterial.h.

unsigned int OrderParameterFunctionMaterial::_eta_var
protectedinherited

Definition at line 32 of file OrderParameterFunctionMaterial.h.

std::string OrderParameterFunctionMaterial::_function_name
protectedinherited

name of the function of eta (used to generate the material property names)

Definition at line 36 of file OrderParameterFunctionMaterial.h.

MooseEnum MixedSwitchingFunctionMaterial::_h_order
protected

Polynomial order of the switching function \( h(\eta) \).

Definition at line 34 of file MixedSwitchingFunctionMaterial.h.

Referenced by computeQpProperties().

MaterialProperty<Real>& OrderParameterFunctionMaterial::_prop_d2f
protectedinherited

Material property to store the second derivative \( d^2f(\eta)/d\eta^2 \).

Definition at line 45 of file OrderParameterFunctionMaterial.h.

Referenced by BarrierFunctionMaterial::computeQpProperties(), computeQpProperties(), and SwitchingFunctionMaterial::computeQpProperties().

MaterialProperty<Real>& OrderParameterFunctionMaterial::_prop_df
protectedinherited

Material property to store the derivative \( df(\eta)/d\eta \).

Definition at line 42 of file OrderParameterFunctionMaterial.h.

Referenced by BarrierFunctionMaterial::computeQpProperties(), computeQpProperties(), and SwitchingFunctionMaterial::computeQpProperties().

MaterialProperty<Real>& OrderParameterFunctionMaterial::_prop_f
protectedinherited
Real MixedSwitchingFunctionMaterial::_weight
protected

Weight parameter of mixed-type h(eta)

Definition at line 37 of file MixedSwitchingFunctionMaterial.h.

Referenced by computeQpProperties().


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