MATLAB Answers


Export meshdata and solution from pdetool

Asked by Ganesh
on 16 Jul 2013

I need to run the pdetool analysis several times for different values of pde coefficients. Repeating this procedure for different meshes is not convenient using the pdetool GUI.

Is there a way to automate the whole process via a .m file? The .m file should read the pde coefficients via the Matlab command prompt and should return the mesh (p, e, t) and solution (u) after the pde solution is complete.

Appreciate help in advance.




No products are associated with this question.

1 Answer

Answer by Deepak Ramaswamy on 19 Jul 2013
Edited by Deepak Ramaswamy on 19 Jul 2013

If I understood correctly, the geometry does not change and only the pde coefficients change. If this is the case, I would recommend a one-time exporting of the mesh and the BCs from pdetool and saving it to disk. Then, rather than go through pdetool for defining coefficients, using the command-line function: assempde/parabolic/hyperolic, programmatically enter coefficients and solve. Of course you will also need to load the mesh and BCs from the matfile that you've saved to prior. This way you need to use pdetool exactly once.




Join the 15-year community celebration.

Play games and win prizes!

Learn more
Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!