MATLAB Answers

Export pde solution out of matlab

조회 수: 5(최근 30일)
Lalson Vincent
Lalson Vincent 2020년 3월 10일
댓글: Lalson Vincent 2020년 3월 11일
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 ?

채택된 답변

Ravi Kumar
Ravi Kumar 2020년 3월 10일
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
Lalson Vincent
Lalson Vincent 2020년 3월 11일
Thanks, I will workout a script for exporting data out of matlab.

댓글을 달려면 로그인하십시오.

추가 답변(0개)

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by