Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by Kututo

  1. Kututo

    FORTRAN check particle distance to centre of an object.

    No fear, this isn't for school. I'm trying to learn fortran and see what it can do. I have seen some simulations in conferences and was curious to see how it was achieved and if it can be used to help me. I don't have anyone I know who does fortran hence why I was asking here, I couldn't find it...
  2. Kututo

    FORTRAN check particle distance to centre of an object.

    Thank you for your help. This is going to sound like a really silly question. I have the statements to define if a particle is in the cylinder, how would I code to store the particle co-ordinates within the cylinder, and delete the particle if it is outside? Many thanks,
  3. Kututo

    FORTRAN check particle distance to centre of an object.

    Thank you for your help. I have come up with this, which I think might solve it: (xP(i) and zP(i) are the particle co-ordinates) IF ((((xP(i)-cylinder_x)**2)+((zP(i)-cylinder_z)**2)) < (cylinder_radius**2)) THEN what are your thoughts?
  4. Kututo

    FORTRAN check particle distance to centre of an object.

    Sorry to post on the thread I made before other people have posted. I have worked out mostly what I need to do. I have 3 co-ordinates for the top and base of the cylinder, such that the base is 1.00, 1.00, 1.00 and the top is 1.00, 3.00, 1.00, with a radius of 1.00 The generated particles have...
  5. Kututo

    FORTRAN check particle distance to centre of an object.

    Hi, I am quite new to FORTRAN and am currently making programs to gain an understanding of it. I have made a program in FORTRAN 90, this spawns particles in which then land on a plane. What I would like to do is to check to see if any of the particles are within any cylinders in a line. If...

Part and Inventory Search