Note: This discussion is about an older version of the COMSOL Multiphysics® software. The information provided may be out of date.
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.
Creating a Random Distribution of Nanowires (Random Geometry Feature and Java scripting)
Posted Mar 22, 2011, 5:39 a.m. EDT API, Simulation Apps Version 4.1 1 Reply
Please login with a confirmed email address before reporting spam
I am new user of COMSOL and Programming languages (in general). I want to model a random distribution of nanowires in a rectangular area. I have two questions....
1) Is it possible using COMSOL GUI to generate random distribution of a geomatery feature?
2) I tried saving my with single geometry feature in .java format so that I define a random function and can make a loop in java text editor to have randomly distributed copies of my geometry feature and import back the .class file. However, I am unable to write loop in Java or define random function, since I do not know the syntex and format of the commands. Can anyone tell me where I can find Java routines in such a format that COMSOL .class file can be compiled?
3) Using MATLAB can also be one option but I want to aviod that, unless its very much required.
Any other suggestions how this can be achieved will be really appreciated.
Best Regards,
Rameez Ahmad
Hello Rameez Ahmad
Your Discussion has gone 30 days without a reply. If you still need help with COMSOL and have an on-subscription license, please visit our Support Center for help.
If you do not hold an on-subscription license, you may find an answer in another Discussion or in the Knowledge Base.