script for exporting deformed geom from livlink matlab ?

Thread index  |  Previous thread  |  Next thread  |  Start a new discussion

RSS FeedRSS feed   |   Email notificationsTurn on email notifications   |   3 Replies   Last post: September 22, 2015 7:38am UTC
Krishna Manda

Krishna Manda

February 3, 2013 2:47pm UTC

script for exporting deformed geom from livlink matlab ?

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

Reply  |  Reply with Quote  |  Send private message  |  Report Abuse

Xiaoqing Cao

Xiaoqing Cao

April 15, 2014 12:03am UTC in response to Krishna Manda

Re: script for exporting deformed geom from livlink matlab ?


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~~

Reply  |  Reply with Quote  |  Send private message  |  Report Abuse

Zehui Yong

Zehui Yong

September 19, 2015 7:20pm UTC in response to Xiaoqing Cao

Re: script for exporting deformed geom from livlink matlab ?

www.comsol.com/community/forum...products/thread/62831/#p206493

My answer in another thread

Reply  |  Reply with Quote  |  Send private message  |  Report Abuse

Lars Gregersen

Lars Gregersen
COMSOL Employee
Denmark

September 22, 2015 7:38am UTC in response to Krishna Manda

Re: script for exporting deformed geom from livlink matlab ?

Hi

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

--
Lars Gregersen
Comsol Denmark

Reply  |  Reply with Quote  |  Report Abuse


Rules and guidelines