Quantcast
Channel: Latest Discussions - COMSOL Forums
Viewing all articles
Browse latest Browse all 71

Creating a Random Distribution of Nanowires (Random Geometry Feature and Java scripting)

$
0
0
Hi all,

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

Viewing all articles
Browse latest Browse all 71

Trending Articles