The Usage Condition (

) node puts a condition that enables or disables its children. You can use the condition in a variety of contexts — for example, for variable definitions under a feature or for solver and mesh defaults. The kind of conditions you can use differ between contexts because some conditions cannot be evaluated in all contexts.
In general, to add a Usage Condition,
right-click a node and add it from the context menu.
The Settings window has one section. The description covers all possible conditions, but some are not visible based on the context.
Select a Condition:
Explicit,
And condition, or
Or condition. For
And condition and
Or condition define a usage condition that evaluates as a Boolean operation (
and or
or) between other usage conditions. Add usage conditions to the
Input condition list. For any choice, select the
Invert condition check box to invert the entire condition.
Select the Restrict to space dimension check box to enable a condition on the geometry dimension used by the model in the Model Builder. Add any of the following:
0D,
3D,
2D,
Axial symmetry (2D),
1D, and
Axial symmetry (1D).
Select the Restrict to geometric entity levels check box to enable a condition on the geometric entity level of the context, which can be the entity level of a feature. The allowed levels are
Global,
Domain,
Boundary,
Edge, and
Point.
Select the Restrict to study types check box to enable a condition on the study type currently solved for. This is applicable for usage conditions under
Features,
Properties,
Study and Solver Defaults, and
Result Defaults. A common example is when you want to define the result of a time derivative such as:
in frequency-domain study types. The most important study types are Stationary,
Time Dependent,
Frequency Domain,
Eigenfrequency, and
Eigenvalue. There are also other alternatives, but some of these require additional licenses or modules.
If the usage condition is under a feature or property, which might contain other user inputs, choose By reference to directly refer to any of those user inputs by in the list. Choose an option from the
From list:
User input from this feature (the default) or
User input from this property. For
User input from this property, enter the
Property that contains the user input in the field. Then choose the
User input and the
User input condition. The options available depend on the user input referred to, but the condition can either check if the
User input is active, or if the
User input has any of certain values, in which case enter these in the
Values table.
Select By name to enter a name in the
User input field. Choose an option from the
From list:
User input from this feature (the default),
User input from this study step, or
User input from this property. For
User input from this property, enter the
Property that contains the user input in the field. Also choose the
User input condition as described above.
For usage conditions under Study and Solver Defaults,
Result Defaults, and
Mesh Defaults, the
By name option is the only way to refer to a user input. Furthermore, they can only refer to user input under a property, so there is no such choice either. Instead, there is an option to choose the type of condition in the
Condition on list. The option
User input in property enables the usage condition on a user input under a property. With the option
Feature is active, the usage condition is true if there exists an active feature of a certain type. You specify the type in the
Feature type field. Select the
Condition is not fulfilled for undefined references check box to if you want the condition to be treated as not fulfilled instead of throwing an error if the property is undefined.
Select In expression as a general tool that can evaluate an expression of relations and Boolean operators that are entered in the
Condition text field. It also supports some special functions and names, summarized in the following table:
The Require input is active check box is selected by default. It is only applicable when specifying a user input to check by reference or by name, not for expressions. When selected, the activation condition is only true if the checked user input is also active as decided by its activation conditions. For expressions, you can achieve the equivalent logic using the
isActive operator.
This section is available for usage conditions under Study and Solver Defaults. When you select the
Require field check box, you can specify a dependent variable reference and a physical quantity. See
Dependent Variable Definition for more information about these settings.
Select the Invert condition check box to invert (negate) the defined condition.