Generating random non overlaping spheres inside a cylinder having certain volume fraction

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 件のコメント

Jon
Jon 2022 年 12 月 6 日
You can further search MATLAB answers (note search bar in upper right banner of MATLAB answers) to find other previous answers on this topic
Jan
Jan 2022 年 12 月 6 日
編集済み: Jan 2022 年 12 月 8 日
Spheres or ellipsoids? The paper concerns a surface, but your question a volume?
Shubham
Shubham 2022 年 12 月 7 日
Those surfaces are like snapshots at different heights. If it is possible to change that surface to a circle instead of square it will be a great help to me
Jan
Jan 2022 年 12 月 8 日
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
Shubham 2022 年 12 月 9 日
@Jan Ellipsoids will do good. It will be more generic.. I am also trying to get the centre of ellipsoids and parameters a,b and c of ellipse as an output so that I can build a cad model out of it. Also the cylindrical domain boundary should also be visible
Jan
Jan 2022 年 12 月 9 日
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?

サインインしてコメントする。

回答 (0 件)

カテゴリ

質問済み:

2022 年 12 月 6 日

コメント済み:

Jan
2022 年 12 月 9 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by