SUPG stabilisation in advection-diffusion demo
Asked by
Chris Richardson
I am trying to do an advection-diffusion problem with SUPG stabilisation,
but looking at the demo, I think the velocity norm is in the numerator, when it should be in the denominator, or am I missing something?
From the demo python file:-
# Galerkin variational problem
F = v*(u-u0)*dx + dt*(v*dot(velocity, grad(u_mid))*dx + c*dot(grad(v), grad(u_mid))*dx)
# Add SUPG stabilisation terms
vnorm = sqrt(dot(velocity, velocity))
F += (h/2.0*
Normally, 'tau' the stabilisation coefficient, should look like h/(2.0*vnorm) ?
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- DOLFIN Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Johan Hake
- Solved:
- Last query:
- Last reply:
To post a message you must log in.