https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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{
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()
User facing host object for a function. This combines a term with an argument list.
void addRequiredCoupledVar(const std::string &name, const std::string &doc_string)
void addClassDescription(const std::string &doc_string)
Creates the order parameter substitution used in linearized interface for phase field models.
EBTerm _phi
Coupled variable value for the nonlinear variable .
LinearizedInterfaceFunction(const InputParameters &parameters)
void functionParse(const std::string &function_expression)