Use the Switch node (
) under the
Global Definitions node (
) to switch between global functions during a solver sweep. You add the functions as subnodes under the
Switch node. The switch for functions acts essentially as a switch statement in a programming language; that is, it dynamically chooses one of its underlying branches depending on a parameter that can be controlled from the solvers using a
Function Sweep study.
In addition to the Label, you can also enter a name for the switch in the
Function name field (default:
sw1). Use that function name where you want to switch across the functions under the
Switch node using a function sweep. Without a sweep, the function name for the switch uses the first function node under the
Switch node by default.
The parameter name used by Function Sweep studies is constructed based on the name of the Switch node, prepending the special namespace funsw. For example, the parameter controlling a Switch node on the global level will typically be
funsw.sw1, while for a component-level Switch it will be
funsw.comp1.sw1.