🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

How to avoid collision

User: "satri"
Altair Community Member
Updated by satri

Hello

I am trying to create a chain of particles in random positions. I wanted to use the built-in random position and orientation but unfortunately, i am getting a biased generation of fibers hence i am using the custom factory tutorial (T6) and particle replacement tutorial (T1) as references and generating the particles by myself. Now I can generate the particles but when i generate the particles these are going into each other as you see in the image.

image

Could anyone please suggest to me how i can avoid the collision between the meta particles? 

The login i am using to create the particle is as follows

I want to generate 10 particles at a height of 50e-6m i am picking 10 random points around the origin and computing the angle the random point makes with the origin. and then find the angle made by the normal vector to this point. This angle is being used to give the orientation in the xy plane. I am not giving the orientation in the z-axis as of now but i can change that. I am currently detecting collision between the fibers. I am not sure how i could avoid that because the two reference APIs don't know the position of other particles. 

Find more posts tagged with

Sort by:
1 - 3 of 31
    User: "satri"
    Altair Community Member
    OP
    Updated by satri

    This is what random orientation means which the inbuilt random orientation program will not generate. This will be generated based on what i described above

    image

    But i am not sure how to get rid of the collision. 

    User: "satri"
    Altair Community Member
    OP
    Updated by satri

    I have an alternative so far by adding all the single fibers in different layers in z axis that works but this increases the simulation time. Is there any way to cycle through all the old coordinates and just change the z-orientation angle slightly? How to do this? how can i store the coordinates of all the previous fibers and check for collision? Is this even possible?

    User: "Stephen Cole"
    Altair Employee
    Updated by Stephen Cole

    I have an alternative so far by adding all the single fibers in different layers in z axis that works but this increases the simulation time. Is there any way to cycle through all the old coordinates and just change the z-orientation angle slightly? How to do this? how can i store the coordinates of all the previous fibers and check for collision? Is this even possible?

    Hi Shyam, as you say the API doesn't have any contact detection, so if you are using a custom model then the particles will be placed as specified by the code, which makes it very difficult to avoid collisions. 

     

    With the random orientation of the in-built particles have you confirmed there is enough space to generate the particles, that they are not been constrained by the factory size?


    Regards

    Stephen