https://mooseframework.inl.gov
Loading...
Searching...
No Matches
LinearizedInterfaceAux.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 "Calculates the order parameter from the linearized interface function");
20 params.addRequiredCoupledVar("nonlinear_variable",
21 "The variable used in the linearized interface function");
22 return params;
23}
24
26 : AuxKernel(parameters), _phi(coupledValue("nonlinear_variable"))
27{
28}
29
30Real
32{
33 return (1.0 + std::tanh(_phi[_qp] / std::sqrt(2.0))) / 2.0;
34}
registerMooseObject("PhaseFieldApp", LinearizedInterfaceAux)
static InputParameters validParams()
void addRequiredCoupledVar(const std::string &name, const std::string &doc_string)
void addClassDescription(const std::string &doc_string)
Calculates the order parameter from the linearized interface function.
static InputParameters validParams()
const VariableValue & _phi
Reference to the variable used in the linearized interface function.
LinearizedInterfaceAux(const InputParameters &parameters)
Class constructor.
virtual Real computeValue() override