https://mooseframework.inl.gov
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 
10 #include "LinearizedInterfaceAux.h"
11 
13 
16 {
18  params.addClassDescription(
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 
30 Real
32 {
33  return (1.0 + std::tanh(_phi[_qp] / std::sqrt(2.0))) / 2.0;
34 }
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.
registerMooseObject("PhaseFieldApp", LinearizedInterfaceAux)
void addRequiredCoupledVar(const std::string &name, const std::string &doc_string)
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
void addClassDescription(const std::string &doc_string)
static InputParameters validParams()
virtual Real computeValue() override
LinearizedInterfaceAux(const InputParameters &parameters)
Class constructor.