re-formulating function space from u.vector().array()
Asked by
nicole t
hi, i'm quite new to FEniCS so i apologise if this is a silly question.
I have as an output to a program the solution field U = u.vector().array(), i.e. it exists as a numpy array and is not a function object anymore.
I would like to use it as an input to another program, but am not sure how to convert it back into a function object - i can't just use interpolate(U,V) since U is not a function or expression but is a numpy array right? Hence, how would i go about doing this?
Thanks!
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.