Is there any way to save your comsol models as .m files that also display the equations? I know you can view this in the Comsol desktop interface but it would be useful to view (and edit) these in a matlab script.
Hi Markus, thanks for the reply. I know how to do that but I was wondering if there was a way of saving the mfile so that it shows the equations rather then just showing me the path to different comsol libraries and functions. For example if I want to see the equations for a particular boundary condition is there a way I can view these instead of just being show, for example, model.physics.create...?
Have you tried generating the report from COMSOL? It will not give you in .m file format, but may be it will help you to view the equations which you have used throughout your model.
There is actually a way of generating state-space matrices for Comsol model. You should consult Comsol forums. It is not the exact match of what you would like to get, but at least something.
I generate 2D model in Comsol and save in .m file. I changed some modification in .m file and I want to develop in Comsol. Can any body help u , how to import .m file in to Comsol ? Appreciated for this answer.