https://mooseframework.inl.gov
LinearizedInterfaceFunction.C
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://mooseframework.inl.gov
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 
11 
13 
16 {
18  params.addClassDescription(
19  "Defines the order parameter substitution for linearized interface phase field models");
20  params.addRequiredCoupledVar("phi", "Concentration variable");
21  return params;
22 }
23 
25  : DerivativeParsedMaterialHelper(parameters), _phi("phi")
26 {
27  EBFunction order_parameter;
28  // Definition of the function for the expression builder
29  order_parameter(_phi) = 1.0 / 2.0 * (1.0 + tanh(_phi / sqrt(2.0)));
30 
31  // Parse function for automatic differentiation
32  functionParse(order_parameter);
33 }
registerMooseObject("PhaseFieldApp", LinearizedInterfaceFunction)
static InputParameters validParams()
Creates the order parameter substitution used in linearized interface for phase field models...
static InputParameters validParams()
void addRequiredCoupledVar(const std::string &name, const std::string &doc_string)
User facing host object for a function. This combines a term with an argument list.
CTSub CT_OPERATOR_BINARY CTMul CTCompareLess CTCompareGreater CTCompareEqual _arg template * sqrt(_arg)) *_arg.template D< dtag >()) CT_SIMPLE_UNARY_FUNCTION(tanh
void addClassDescription(const std::string &doc_string)
LinearizedInterfaceFunction(const InputParameters &parameters)
void functionParse(const std::string &function_expression)
EBTerm _phi
Coupled variable value for the nonlinear variable .