Mirror PDE plot that has been solved simply
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
My PDE plot plots images like the one above. Like the thermal rod example only the positive radial solutions were calculated and displayed as the solution is symmetrical about the center line (y=0). But for presenting the solution I would also like to include the repeated negative information in the plots.
Is there a simple and fast way to mirror my PDE plot?
Thanks in advance
Ben
0 Kommentare
Antworten (1)
Svetlana Pease
am 20 Sep. 2017
Bearbeitet: Svetlana Pease
am 20 Sep. 2017
No, there is no shortcut for this. You have to define a new geometry, include it in the model, and solve for that new geometry.
Regards,
Svetlana
2 Kommentare
Svetlana Pease
am 21 Sep. 2017
Bearbeitet: Svetlana Pease
am 21 Sep. 2017
You can try using a handle to pdeplot:
h = pdeplot(model,'XYData',u)
After that, you can access and modify data used by pdeplot, such as XData, YData, ZData, and CData (color):
h(1,1).XData
That doesn't look like a great solution though, since it's error-prone and requires you to keep all the array sizes consistent (including, for example, ZData, which you don't even use here). I would still recommend re-creating the geometry and letting the solver return the solution for both parts.
Siehe auch
Kategorien
Mehr zu Geometry and Mesh finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!