Subloop
The Subloop node can be added as a child node to a parent Subloop node (maximum three levels of subloop nodes are supported) or to a Load Cycle node.
The node is not available if Use elapsed time only has been enabled on the Load Cycle node.
Subloop break conditions
The cycle will loop over all child nodes to the Subloop node until any of the conditions defined in this section has been fulfilled. The cycle will then proceed to the next sibling node (the next node at the same level in the model tree) or to the first node, if the present node is the last. Multiple conditions, internally defined using implicit solver events, can be enabled.
The Elapsed subloop time condition can be used to break the subloop and proceed to the next node after a certain time, counted from the activation of the subloop.
The Number of completed subloop cycles condition can be used to exit the subloop after a specified number of complete subloop cycles.
A User defined condition can be used to trigger a break of the subloop based on the value of any globally available expression in the model. The transition will be defined to occur when the Induser expression switches from negative to positive. For instance, to define a temperature-dependent break condition to occur when the maximum temperature variable T_max exceeds 50[degC], define Induser as T_max-50[degC]. (Here, T_max can for instance be defined using a Definitions > Nonlocal Couplings > Maximum operator on a domain.)