Im trying to create a small solid spheres inside a rectangular box in ansys. im currently working in MATLAB writing a code to generate spheres but im not sure how to import it to ANSYS. Does anyone know hot to do it?

This is the MATLAB code

_______________

% length, width and height of box

L = 3; W = 2; H = 1;

% pick plenty of random points

x = L*rand(1,100); %x-coordinate of a point

y = W*rand(1,100); %y-coordinate of a point

z = H*rand(1,100); %z-coordinate of a point

blob = 10;

plot3(x, y, z,'o', 'MarkerFaceColor','b','MarkerEdgeColor','b','MarkerSize',blob);

box

______________________________________

Similar questions and discussions