Exporting PDE toolbox solutions

88 Ansichten (letzte 30 Tage)
Tzachi rafaeli
Tzachi rafaeli am 25 Jan. 2011
Kommentiert: Irla Mantilla am 13 Mär. 2023
I want to export PDE solution (potential over the plan) back to the MATLAB environment and be able to transform it to a solution on a rectangular grid (simple matrix - not the triangle nodes data). How can it be done?

Antworten (2)

Ivan
Ivan am 25 Jun. 2012
After solving
1) Export from GUI the mesh (main menu - > Mesh-> Export mesh) ;
2) Export the solution (main menu - > Solve -> Export Solution);
3) define x,y -mesh e.g.:
x=-1:0.01:1;
y=-1:0.01:1;
4) convert to xy-grid and plot the solution:
uxy=tri2grid(p,t,u,x,y);
mesh(x,y,uxy)
  1 Kommentar
Florian Baumgartner
Florian Baumgartner am 4 Aug. 2015
Hey,
I also have a question. Is it possible that Matlab exports the boundary conditions autmatically? So that I dont have to do it manually?

Melden Sie sich an, um zu kommentieren.


Alan Weiss
Alan Weiss am 5 Aug. 2015
Alan Weiss
MATLAB mathematical toolbox documentation

Community Treasure Hunt

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

Start Hunting!

Translated by