https://mooseframework.inl.gov
SmoothTransitionFunction.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 
14 {
16 
17  MooseEnum axis("x=0 y=1 z=2 t=3");
19  "axis", axis, "Coordinate axis on which the transition occurs");
20  params.addRequiredParam<FunctionName>("function1", "First function");
21  params.addRequiredParam<FunctionName>("function2", "Second function");
22  params.addRequiredParam<Real>("transition_center", "Center position of transition");
23  params.addRequiredParam<Real>("transition_width", "Width of transition");
24 
25  return params;
26 }
27 
29  : Function(parameters),
30  FunctionInterface(this),
31 
32  _component(getParam<MooseEnum>("axis")),
33  _use_time(_component == 3),
34 
35  _function1(getFunction("function1")),
36  _function2(getFunction("function2")),
37 
38  _x_center(getParam<Real>("transition_center")),
39  _transition_width(getParam<Real>("transition_width"))
40 {
41 }
static InputParameters validParams()
static const std::string axis
Definition: NS.h:27
void addRequiredParam(const std::string &name, const std::string &doc_string)
SmoothTransitionFunction(const InputParameters &parameters)
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
static InputParameters validParams()