writing the solution in to the txt
Hello,
I am very new to Fenics, so sorry if this is question is very simple.
I want to save the solution in a format that I can read automatically by matlab. the problem is that I can use u_nodal_values =
u.vector()
u_array = u_nodal_
coor = mesh.coordinates()
numpy.savetxt(
numpy.savetxt(
to save the coordinate and the displacement in to two different file but since I working on 3D domain, I have 3 displacement for each node and I am not sure how these are connected.
I convert the PVD file to the CSV format in paraview manually but I am not sure how can I save the nodes and corresponding displacment to each node in to a txt file.
any suggestion?
Thanks
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- DOLFIN Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Nick Davies
- Solved:
- Last query:
- Last reply: