Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

demo_stokes-iterative #15

Open
gdmcbain opened this issue May 10, 2020 · 4 comments
Open

demo_stokes-iterative #15

gdmcbain opened this issue May 10, 2020 · 4 comments

Comments

@gdmcbain
Copy link
Owner

Of particular interest in the Collection of documented demos #14 is 19. Stokes equations.

@gdmcbain
Copy link
Owner Author

I'm surprised that the zero pressure at the outflow is treated as a DirichletBC.

# Boundary condition for pressure at outflow
zero = Constant(0)
bc2 = DirichletBC(W.sub(1), zero, left)

cf. §4.1.4 ‘Variations on boundary conditions’ (Ern & Guermond 2004).

@gdmcbain
Copy link
Owner Author

 File "demo_stokes-iterative.py", line 53, in <module>
    W = V * Q
TypeError: unsupported operand type(s) for *: 'FunctionSpace' and 'FunctionSpace'

@gdmcbain
Copy link
Owner Author

I note that the Navier–Stokes examples in the tutorial (07, 08) didn't form such a product FunctionSpace.

@gdmcbain
Copy link
Owner Author

Ah, that was an old version (1.4.0) of Dolfin's documentation. Try the latest.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant