Forum Message

 

 

We have moved the forum to https://forum.ngsolve.org . This is an archived version of the topics until 05/05/23. All the topics were moved to the new forum and conversations can be continued there. This forum is just kept as legacy to not invalidate old links. If you want to continue a conversation just look for the topic in the new forum.

Notice

The forum is in read only mode.

Condition initial

More
2 years 10 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
2 years 10 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.133 seconds