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...
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,
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?
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...
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...