Skip to content

Output a function of the solution vtk #3847

Discussion options

You must be logged in to vote

I think your issue is likely that Dx(u, 0) is a symbolic expression whereas for visualisation you want a Function. I think you can get what you want by doing

deriv = Function(V).interpolate(Dx(u, 0))

# now plot deriv

Replies: 1 comment 1 reply

Comment options

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

Answer selected by cjham
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants