Mirror PDE plot that has been solved simply

조회 수: 2 (최근 30일)
Ben Sheard
Ben Sheard 2017년 9월 13일
편집: Svetlana Pease 2017년 9월 21일
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

답변 (1개)

Svetlana Pease
Svetlana Pease 2017년 9월 20일
편집: Svetlana Pease 2017년 9월 20일
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
Ben Sheard
Ben Sheard 2017년 9월 20일
Thank you for your reply
But then my model takes twice as Long to solve, therefore removign the Point in a symmetric time saver.
There is really no quick way to also plot in the negative? I know how to do it with a normal plot with a simple hold on and re plot with a negative sign, but not PDEplot.
Svetlana Pease
Svetlana Pease 2017년 9월 21일
편집: Svetlana Pease 2017년 9월 21일
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.

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

카테고리

Help CenterFile Exchange에서 Geometry and Mesh에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by