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.

what to do with the upwind term for Navier-stokes

More
4 years 2 months ago #2417 by shasha
Hello everyone! I'm debugging the H (div)-DG code for steady-steady Navier-Stokes now, but I don't know what to do with the upwind term. Which command code should I use?.
More
4 years 2 months ago #2420 by Guosheng Fu
You need two things in your DG formulation:
(1) fes = FESpace([V,Q], dgjumps=True)
(2) For upwinding, simply use the IfPos function:
IfPos(u*n, u, u.Other())
More
4 years 2 months ago - 4 years 2 months ago #2421 by shasha
Hi! Guosheng. Since I just started to contact this software, I have a few problems. Please help me to have a look . Thank you!

Wang Shasha

File Attachment:

File Name: Hdiv-DG-NS...02-22.py
File Size:3 KB
Last edit: 4 years 2 months ago by shasha.
Time to create page: 0.150 seconds