Skip to content

Assign and mixed space #3953

Jan 6, 2025 · 3 comments · 5 replies
Discussion options

You must be logged in to vote

You are still using sigma, u = Function(W) to set up the form, so you don't have a handle to the full Function. You need to pass this handle to solve so that it knows what to solve for. Here you are passing solve a Function that does not appear in the form.

Have you looked at any of the nonlinear examples? You can look over this one for a scalar nonlinear example: https://www.firedrakeproject.org/demos/burgers.py.html and this one for a mixed nonlinear example showing how to create a Function and use it in a nonlinear form: https://www.firedrakeproject.org/demos/navier_stokes.py.html

Replies: 3 comments 5 replies

Comment options

You must be logged in to vote
1 reply
@JHopeCollins
Comment options

Comment options

You must be logged in to vote
3 replies
@cjham
Comment options

@JHopeCollins
Comment options

Answer selected by cjham
@cjham
Comment options

Comment options

You must be logged in to vote
1 reply
@cjham
Comment options

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