Conditional user law (for an inlet)

Questions and remarks about code_saturne usage
Forum rules
Please read the forum usage recommendations before posting.
Post Reply
guicher
Posts: 4
Joined: Fri Jul 28, 2017 7:16 am

Conditional user law (for an inlet)

Post 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
Yvan Fournier
Posts: 4209
Joined: Mon Feb 20, 2012 3:25 pm

Re: Conditional user law (for an inlet)

Post 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
Post Reply