Discussion Forum

Randomizing of objects_via math lab

Topics: no topics

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

RSS FeedRSS feed   |   Email notificationsTurn on email notifications   |   1 Reply   Last post: September 4, 2010 7:19am UTC
Manjula Wijesinghe

Manjula Wijesinghe

September 3, 2010 5:24pm UTC

Randomizing of objects_via math lab

Dear Ivar,

Thank you for the reply. I want to know whether I need to write additional coding to do this via math lab. Your support is greatly appreciated.

Thanks again.

Manjula

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

Ivar Kjelberg

Ivar Kjelberg
Moderator

September 4, 2010 7:19am UTC in response to Manjula Wijesinghe

Re: Randomizing of objects_via math lab

Hi
I havent done such a thing yet in V4, but if you use a random variable, and then call the circle geoemtrical routine and randomise the centre (with some checks to avoid overlapping I suppose) you can create a geoemtry that you might save and import, or you continue in matlab (good training, I must say I find the GUI easier in most cases :)

if you need to do this several times, or in a solver loop for analysis, I believe you must "stay" in Matlab and control Comsol from there

Hope I have understood you problem correctly

--
Good luck
Ivar

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


Rules and guidelines