Add a Control Function feature (

) by right-clicking a
Definitions node in a
Component and choosing it from the
Control Variables submenu. The function can be accessed using its
Name, and it defines variable equal to the function average. The
Control Function feature includes the following settings:
Set the Minimum argument and
Maximum argument as well as the
Extrapolation. Choose between
None (throws error outside input bounds),
Linear,
Constant,
NaN, and
Periodic. If
Piecewise Bernstein polynomial or
Helmholtz filter discretization is used, the
Periodic option causes the function to be continuous across the endpoints.
Set the Minimum value and
Maximum value of the function as well as the boundary conditions. Unless
Periodic extrapolation is used, you can set the
Start boundary condition and
End boundary condition. The options are
None,
Dirichlet,
Neumann, or
Dirichlet and Neumann, but the latter option is not available with the
Helmholtz filter. Finally, the
Initial value can be set, and one can check
Add analytic function with optimized control function, so that the result can be exported or used for further modeling.
Specify the Control type as
Bernstein polynomial,
Piecewise Bernstein polynomial, or
Helmholtz filter. The
Helmholtz filter can be regularized with the
Maximum slope setting, while the
Order can be specified for the polynomials. In the case of the
Piecewise Bernstein polynomial, the
Number of segments can also be defined. When the control type is a
Helmholtz filter, one can also set the
Number of elements to use for the control variable field. Note that the there will be continuity of the slope between segments if the polynomial order is higher thanĀ 1.