Hi,
Does anyone have experience in transferring over models between various versions of COMSOL? I recently started using COMSOL 5.0, and before that was using 4.4, and before that started on 4.3. I have been mostly building models through the COMSOL interface (in the GUI) and then saving as a .m so I can continue working and updating models directly through MATLAB. For some of my models, I used the code I already had from 4.3 and just ran the .m through the 5.0 version and got what looks to be the same model, but from comparing the language I see there are some slight differences in the code - for instance:
model.geom('geom1').create('cyl1', 'Cylinder');
vs.
model.geom('geom1').feature.create('cyl1', 'Cylinder');
It seems that in updating COMSOL, some parts of the code were changed as well. Will this impact anything? Do I need to go through line by line (it's a long code!) and fix those sort of things, or will it work the same way? I have not yet noticed any differences but of course I want to preserve accuracy and not run into problems later on.
Thanks,
Shoshana
Does anyone have experience in transferring over models between various versions of COMSOL? I recently started using COMSOL 5.0, and before that was using 4.4, and before that started on 4.3. I have been mostly building models through the COMSOL interface (in the GUI) and then saving as a .m so I can continue working and updating models directly through MATLAB. For some of my models, I used the code I already had from 4.3 and just ran the .m through the 5.0 version and got what looks to be the same model, but from comparing the language I see there are some slight differences in the code - for instance:
model.geom('geom1').create('cyl1', 'Cylinder');
vs.
model.geom('geom1').feature.create('cyl1', 'Cylinder');
It seems that in updating COMSOL, some parts of the code were changed as well. Will this impact anything? Do I need to go through line by line (it's a long code!) and fix those sort of things, or will it work the same way? I have not yet noticed any differences but of course I want to preserve accuracy and not run into problems later on.
Thanks,
Shoshana