Jeff Hiller
COMSOL Employee
Please login with a confirmed email address before reporting spam
Posted:
8 years ago
Dec 15, 2016, 5:13 p.m. EST
Hello Roberto,
There are two basic ways of creating a random geometry for use in COMSOL:
a/ using MATLAB - This requires that your license includes LiveLink for MATLAB
b/ using an app - This requires that your license be version 4.4 or more recent and that you run the software on the Windows operating system.
You should be able to find thread discussing both approaches in the Discussion Forum, but you can also contact the COMSOL support team if your license is on subscription.
Best regards,
Jeff
Hello Roberto,
There are two basic ways of creating a random geometry for use in COMSOL:
a/ using MATLAB - This requires that your license includes LiveLink for MATLAB
b/ using an app - This requires that your license be version 4.4 or more recent and that you run the software on the Windows operating system.
You should be able to find thread discussing both approaches in the Discussion Forum, but you can also contact the COMSOL support team if your license is on subscription.
Best regards,
Jeff
Please login with a confirmed email address before reporting spam
Posted:
8 years ago
Jan 3, 2017, 11:56 a.m. EST
Thanks for the answer.
At the moment I resolve my problem using Matlab but without interfacing with Comsol. I only use it to generate random height for a subset of my carbon nanotube (cylinders). Then I multiply this subset in the 3D space through array function and generating random position with a matlab code.
Anyway i think that in my case matlab livelink could be not useful because I created my cylinders through array function. So i think that putting a random height in matlab code from livelink this number would be copied for every cylinder in the array. Am I wrong?
Best regard
Thanks for the answer.
At the moment I resolve my problem using Matlab but without interfacing with Comsol. I only use it to generate random height for a subset of my carbon nanotube (cylinders). Then I multiply this subset in the 3D space through array function and generating random position with a matlab code.
Anyway i think that in my case matlab livelink could be not useful because I created my cylinders through array function. So i think that putting a random height in matlab code from livelink this number would be copied for every cylinder in the array. Am I wrong?
Best regard
Please login with a confirmed email address before reporting spam
Posted:
8 years ago
Feb 4, 2017, 6:24 a.m. EST
Hello Jeff,
I have been trying to include nanotubes within my thin film model and the nanotubes need to randomly distributed cylinders.
It would greatly help me if there is a prior model with some sort of random distribution used within to get a start off point for the same.
Please reply asap as im running on a clock.
Hello Jeff,
I have been trying to include nanotubes within my thin film model and the nanotubes need to randomly distributed cylinders.
It would greatly help me if there is a prior model with some sort of random distribution used within to get a start off point for the same.
Please reply asap as im running on a clock.
Jeff Hiller
COMSOL Employee
Please login with a confirmed email address before reporting spam
Posted:
8 years ago
Feb 6, 2017, 8:41 a.m. EST
I posted a model that generated a geometry through an application using a method in this thread:
www.comsol.com/community/forums/general/thread/133541
The geometry is not random, but by modifying the method you can easily make the size or the location of the cubes random, for instance.
Best,
Jeff
I posted a model that generated a geometry through an application using a method in this thread:
https://www.comsol.com/community/forums/general/thread/133541
The geometry is not random, but by modifying the method you can easily make the size or the location of the cubes random, for instance.
Best,
Jeff
Walter Frei
COMSOL Employee
Please login with a confirmed email address before reporting spam
Posted:
8 years ago
Jun 5, 2017, 11:29 a.m. EDT
Hello,
You may also find this approach (new to version 5.3) helpful:
www.comsol.com/blogs/how-to-create-a-randomized-geometry-using-model-methods/
Best Regards,
Hello,
You may also find this approach (new to version 5.3) helpful:
https://www.comsol.com/blogs/how-to-create-a-randomized-geometry-using-model-methods/
Best Regards,