Page 1 of 1

Conditional user law (for an inlet)

Posted: Mon Sep 11, 2017 9:14 am
by guicher
Hello,

I want to write a conditional inlet boundary condition on CS 5.0.

The mathematical expression editor enables the user to use conditional operators (if, else).

What is the right syntax with these operators? Can someone give me an example?

Best regards,

E. Guichard

Re: Conditional user law (for an inlet)

Posted: Mon Sep 11, 2017 4:54 pm
by Yvan Fournier
Hello,

The syntax is very similar to C language syntax, except for the "modululo" operator, which is "mod(x)" instead of "%x".

Best regards,

Yvan