Example of condition to activate calculation conditions etc.¶
Examples of conditions to activate calculation conditions, grid generating conditions, and boundary conditions are shown in this subsection. As these examples show, complex conditions can be defined using conditions with types "and" and "or".
var1 = 1¶
1<Condition type="isEqual" target="var1" value="1" />
var1 = 1 and var2 > 3¶
1<Condition type="or">
2 <Condition type="isEqual" target="var1" value="1" />
3 <Condition type="isGreaterThan" target="var2" value="3" />
4</Condition>
(var1 = 1 or var2 < 5) and var3 = 100¶
1<Condition type="and">
2 <Condition type="or">
3 <Condition type="isEqual" target="var1" value="1" />
4 <Condition type="isLessThan" target="var2" value="5" />
5 </Condition>
6 <Condition type="isEqual" target="var3" value="100" />
7</Condition>