Control Function
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:
Input
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.
Output
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.
The behavior of the Initial value depends on the Control type in the sense that the polynomial discretization will only satisfy the condition in Lagrange points, while the Helmholtz discretization just initializes the controls and thus the initial value is only approximately satisfied.
Control Variable Discretization
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.
Units
Set the units of the Argument and Function.
Shape Optimization of a Rectangular Loudspeaker Horn in 3D: Application Library path Acoustics_Module/Optimization/rectangular_horn_shape_optimization