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.

Randomizing of objects_via math lab

Please login with a confirmed email address before reporting spam

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

1 Reply Last Post Sep 4, 2010, 3:19 a.m. EDT
Ivar KJELBERG COMSOL Multiphysics(r) fan, retired, former "Senior Expert" at CSEM SA (CH)

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago Sep 4, 2010, 3:19 a.m. EDT
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
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

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.