How to get information on the solution

Hi, I’m struggling how to interpret the solution FeniCS gives me. Imagine I was solving the time dependent heat equation on a 1d unit interval mesh. The solution u will give me solutions for u varying with space for each time value. How can I access u and view it like a vector? I want to be able to extract this information. Could someone point me in the right direction? Thank you.

You can Get the vector for a function u by: u.vector().get_local()which returns the dof values in the order of V.tabulate_dof_coordinates().

1 Like

thanks mr Dokken :slight_smile: