- valueThe user defined function.
C++ Type:FunctionExpression
Description:The user defined function.
ParsedFunction
!syntax description /Functions/ParsedFunction
Description
The ParsedFunction
function takes a mathematical expression in value
. The expression can be a function of time (t) or coordinate (x, y, or z). The expression can include common mathematical functions. Examples include 4e4+1e2*t
, sqrt(x*x+y*y+z*z)
, and if(t\textless=1.0, 0.1*t, (1.0+0.1)*cos(pi/2*(t-1.0)) - 1.0)
.
Constant variables may be used in the expression if they have been declared with vars
and defined with vals
.
Further information can be found at the function parser site.
Example Input Syntax
[Functions]
[./tr_x]
type = ParsedFunction
value = sqrt(x^2+y^2)*cos(2*pi/3)
[../]
[./tr_y]
type = ParsedFunction
value = sqrt(x^2+y^2)*sin(2*pi/3)
[../]
[./itr_x]
type = ParsedFunction
value = sqrt(x^2+y^2)*cos(0)
[../]
[./itr_y]
type = ParsedFunction
value = sqrt(x^2+y^2)*sin(0) # Always Zero!
[../]
[]
(../moose/examples/ex04_bcs/trapezoid.i)Input Parameters
- valsConstant numeric values or postprocessor names for vars.
C++ Type:std::vector
Description:Constant numeric values or postprocessor names for vars.
- varsThe constant variables (excluding t,x,y,z) in the forcing function.
C++ Type:std::vector
Description:The constant variables (excluding t,x,y,z) in the forcing function.
Optional Parameters
- control_tagsAdds user-defined labels for accessing object parameters via control logic.
C++ Type:std::vector
Description:Adds user-defined labels for accessing object parameters via control logic.
- enableTrueSet the enabled status of the MooseObject.
Default:True
C++ Type:bool
Description:Set the enabled status of the MooseObject.