- Thank you received: 0
what to do with the upwind term for Navier-stokes
4 years 9 months ago #2417
by shasha
what to do with the upwind term for Navier-stokes was created 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?.
- Guosheng Fu
- Offline
- Elite Member
Less
More
- Thank you received: 6
4 years 9 months ago #2420
by Guosheng Fu
Replied by Guosheng Fu on topic what to do with the upwind term for Navier-stokes
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())
(1) fes = FESpace([V,Q], dgjumps=True)
(2) For upwinding, simply use the IfPos function:
IfPos(u*n, u, u.Other())
4 years 9 months ago - 4 years 9 months ago #2421
by shasha
Replied by shasha on topic what to do with the upwind term for Navier-stokes
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
Wang Shasha
Attachments:
Last edit: 4 years 9 months ago by shasha.
Time to create page: 0.102 seconds