The comsol geometry generation script developed based on java can generate randomly distributed geometry structures (circles) in two-dimensional geometry space without overlapping each other, and can customize parameters such as generation space, particle size, and particle spacing. Running the script may enter an infinite loop, so you can manually terminate the script.
COMSOL script for random object generation
The comsol geometry generation script developed based on java can generate randomly distributed geometry structures (circles) in two-dimensional geometry space without overlapping each other, and can customize parameters such as generation space (Xlim & Ylim), particle size (CirR) and number (CirNum), and particle spacing (space). Running the script may enter an infinite loop, so you can manually terminate the script.
Create a new method in COMSOL App developer and copy the code to run it: