MATLAB Answers

Export pde solution out of matlab

8 views (last 30 days)
Is there a way to export the pde solution out of matlab. I have solved a electrostatic problem using matlab solvepde. I want to export the solution outside matlab in pvd file format(pvd file format is readable in paraview)
Is it possible ?

  0 Comments

Sign in to comment.

Accepted Answer

Ravi Kumar
Ravi Kumar on 10 Mar 2020
Hi Lalson,
Solution is availble as a matrix in NodalSolution property of the result object obtained using solvepde. You may need to write a short script that takes NodalSolution, Mesh, (and gradients, if needed) and write a script that writes pvd format file, say using fprintf.
Regards,
Ravi

  1 Comment

Lalson Vincent
Lalson Vincent on 11 Mar 2020
Thanks, I will workout a script for exporting data out of matlab.

Sign in to comment.

More Answers (0)

Sign in to answer this question.

Tags