Generating random non overlaping spheres inside a cylinder having certain volume fraction
Mostra commenti meno recenti
This article is for 3-d synthetic microstructure generation.
The code given in this article generates random ellipsoid in cubic domain. But my requirement is of a cylindrical domain.
So I need help on how to change this code for cylindrical domain??
6 Commenti
Jon
il 6 Dic 2022
Maybe this will get you started https://www.mathworks.com/matlabcentral/answers/461635-randomly-generated-spheres-in-a-volume-in-matlab?s_tid=srchtitle
You can further search MATLAB answers (note search bar in upper right banner of MATLAB answers) to find other previous answers on this topic
Shubham
il 7 Dic 2022
Jan
il 8 Dic 2022
Again: Do you need spheres or ellipsoids? With spheres it is trivial to adjust the solution given here: https://www.mathworks.com/matlabcentral/answers/461635-randomly-generated-spheres-in-a-volume-in-matlab#answer_374712 .
Shubham
il 9 Dic 2022
Jan
il 9 Dic 2022
Are the dimensions of the ellipsoids fixed? What do you call a,b,c? The Euler-angles? 2 angles are sufficient already.
Unfortunately the modifications of the code are not trivial, because the test for intersecting ellipsoids is more demanding than of spheres. Did you try this by your own?
Risposte (0)
Categorie
Scopri di più su Surface and Mesh Plots in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!