Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.

script for exporting deformed geom from livlink matlab ?

Please login with a confirmed email address before reporting spam

Hi all,

In GUI, I could remesh the deformed configuration from the results dataset, and from there i could export to a new geometry (xx.mphbin). But how can i do the same from matlab livelink ?

I wrote, "model.result.dataset('dset3').createDeformedConfig('deform1', 'mesh2');", but what could be the next lines in the script for exporting to a new geometry file ? Of course I tried to do it from GUI and then save model as m-file to see the script for exporting, but it didn't show anything equivalent java or matlab command for 'exporting to file' action.

Any help is appreciated ! Thanks.

/Krishna

4 Replies Last Post 15 nov. 2016, 06:07 UTC−5
COMSOL Moderator

Hello Krishna Manda

Your Discussion has gone 30 days without a reply. If you still need help with COMSOL and have an on-subscription license, please visit our Support Center for help.

If you do not hold an on-subscription license, you may find an answer in another Discussion or in the Knowledge Base.


Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 14 avr. 2014, 20:03 UTC−4

Hi all,

In GUI, I could remesh the deformed configuration from the results dataset, and from there i could export to a new geometry (xx.mphbin). But how can i do the same from matlab livelink ?

I wrote, "model.result.dataset('dset3').createDeformedConfig('deform1', 'mesh2');", but what could be the next lines in the script for exporting to a new geometry file ? Of course I tried to do it from GUI and then save model as m-file to see the script for exporting, but it didn't show anything equivalent java or matlab command for 'exporting to file' action.

Any help is appreciated ! Thanks.

/Krishna


I have the same question, does anyone in this community know about this matlab script?

Appreciate your help~~
[QUOTE] Hi all, In GUI, I could remesh the deformed configuration from the results dataset, and from there i could export to a new geometry (xx.mphbin). But how can i do the same from matlab livelink ? I wrote, "model.result.dataset('dset3').createDeformedConfig('deform1', 'mesh2');", but what could be the next lines in the script for exporting to a new geometry file ? Of course I tried to do it from GUI and then save model as m-file to see the script for exporting, but it didn't show anything equivalent java or matlab command for 'exporting to file' action. Any help is appreciated ! Thanks. /Krishna [/QUOTE] I have the same question, does anyone in this community know about this matlab script? Appreciate your help~~

Please login with a confirmed email address before reporting spam

Posted: 9 years ago 19 sept. 2015, 15:20 UTC−4
www.comsol.com/community/forums/livelink-products/thread/62831/#p206493

My answer in another thread
https://www.comsol.com/community/forums/livelink-products/thread/62831/#p206493 My answer in another thread

Lars Gregersen COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 9 years ago 22 sept. 2015, 03:38 UTC−4
Hi

This should work:
model.result.dataset('dset1').createDeformedConfig('deform1', 'mesh2');
model.geom('deform1').export('newgeomfilename');

--
Lars Gregersen
Comsol Denmark
Hi This should work: model.result.dataset('dset1').createDeformedConfig('deform1', 'mesh2'); model.geom('deform1').export('newgeomfilename'); -- Lars Gregersen Comsol Denmark

Please login with a confirmed email address before reporting spam

Posted: 7 years ago 15 nov. 2016, 06:07 UTC−5
thank you
--
Nicolas LE CORVEC, PhD
Planetary Volcanologist - Postdoctoral Fellow
ClerVolc, the Clermont-Ferrand Centre for Volcano Research
Laboratoire Magmas et Volcans
thank you -- Nicolas LE CORVEC, PhD Planetary Volcanologist - Postdoctoral Fellow ClerVolc, the Clermont-Ferrand Centre for Volcano Research Laboratoire Magmas et Volcans

Note that while COMSOL employees may participate in the discussion forum, COMSOL® software users who are on-subscription should submit their questions via the Support Center for a more comprehensive response from the Technical Support team.