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.
how to reinitialize model components within an external script...?
Posted 24 sept. 2010, 07:55 UTC−4 3 Replies
Please login with a confirmed email address before reporting spam
Hello,
I am wondering which command to use in order to reinitialize/reset a mode orl some parts of a model such as, model.sol, model.study, model.mesh.. and so forth,
during the course of an externally controlled script that run a comsol model.
I have tried things like
" model.physics.clear" and their likes but they do not work obviously, so when the script try to execute for a second time say, "model.physics", it stops telling me the study already exists....
I cannot find anything in the comsol api doc or matlab livelink on this subject. [ or I dont know where to look and th e various indexes does not provide any clues... and still have to put my hand on one example where this feature will be used....
Any suggestion??? it must be pretty basic I am sure
Thanks
I am wondering which command to use in order to reinitialize/reset a mode orl some parts of a model such as, model.sol, model.study, model.mesh.. and so forth,
during the course of an externally controlled script that run a comsol model.
I have tried things like
" model.physics.clear" and their likes but they do not work obviously, so when the script try to execute for a second time say, "model.physics", it stops telling me the study already exists....
I cannot find anything in the comsol api doc or matlab livelink on this subject. [ or I dont know where to look and th e various indexes does not provide any clues... and still have to put my hand on one example where this feature will be used....
Any suggestion??? it must be pretty basic I am sure
Thanks
3 Replies Last Post 24 sept. 2010, 09:50 UTC−4