Hi all,(adsbygoogle = window.adsbygoogle || []).push({});

Im trying to think of a way of generating non-intersecting randomly oriented cylinders within a unit cell volume for micromechanical analysis.

Several research papers suggest a monte-carlo approach was used by displacing cylinders by vectors until the "condition was satisfied" - the condition is never stated. (also, i do not know what the monte carlo approach is)

My initial thought was to treat each cylinder as a line segment, and calculate the minimum distance between line segments, if that distance is > twice the radius of the cylinder, then they should not intersect. However, this also means that co-linear cylinders cannot be closer than twice the radius axially, which is not necessarily a condition i would like to impose.

Anyone have any thoughts on this?

**Physics Forums - The Fusion of Science and Community**

Dismiss Notice

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Generating randomly oriented non-intersecting cylinders in a unit cell

Loading...

Similar Threads - Generating randomly oriented | Date |
---|---|

How to find the Cartan Subalgebra for a random algebra given by a set of generators | Dec 11, 2012 |

Generate random irreducible matrix | Dec 26, 2011 |

Random Number Generator, Lottery, and duplicats | Aug 31, 2006 |

Random Number Generator | Jul 3, 2006 |

**Physics Forums - The Fusion of Science and Community**