Condition initial

More
3 years 5 months ago #3799 by Yarleque Medina
Hi everyone,

how can I create an initial condition of the type:
u_0 = 1, if 0.8<=x,y<=0.2
u_0 = 0, other cases

I am not finding in the documentation the if and else conditionals to create this type of condition.

Best regards,
More
3 years 5 months ago #3800 by mneunteufel
Replied by mneunteufel on topic Condition initial
Hi,

you can use (multiple) IfPos functions to create your discontinuous initial condition.

Best,
Michael
Time to create page: 0.112 seconds