Discrete Element Method in FORTRAN 90 for collisions of particles

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
13 replies · 3K views
Purahei
Messages
9
Reaction score
0
Does anyone know a simple implementation in FORTRAN 90 of collisions of particles?
 
Physics news on Phys.org
Purahei said:
Does anyone know a simple implementation in FORTRAN 90 of collisions of particles?
Have you done any research on your own?
 
Yes, but most of them are in C++. Actually I'm beginner in Fortran.
 
Why do you want a FORTRAN implementation?
 
It is an academic requirement
 
Can you clarify what you are looking for - is it
  1. a library that implements a (not simple) algorithm for modelling collisions in a system of many particles so that you can incorporate it into a project? Or
  2. some Fortran code that models a collision between two particles so you can copy it for an assignment?
 
So the goal for you is to learn Fortran, not google. This your first assignment ?

Reason I ask is because you mention 'discrete element method' in your thread title: pretty narrow.

Whilst post #1 mentions 'collisions of particles' which is xxxx wide ( just try to imagine how much code sixty years of high energy physics has generated ).

Before you even begin programming: work out a plan what you want to do, collect the relevant FORmulas, and don't start TRANslating into code until you have put together the simplest possible case, written an algorithm in pseudo-language and worked it out by hand, on a piece of paper .
 
  • Like
Likes   Reactions: enosis_, Purahei and pbuk
pbuk said:
Can you clarify what you are looking for - is it
  1. a library that implements a (not simple) algorithm for modelling collisions in a system of many particles so that you can incorporate it into a project? Or
  2. some Fortran code that models a collision between two particles so you can copy it for an assignment?
I have to create a program in Fortran that models a system of particles. Because I'm new in that language, I would like to have a reference to start.
 
I get plenty hits with 'fortran code for simple collisions of particles' or 'computer code for simple collisions of particles'.
Purahei said:
program in Fortran that models a system of particles
Very ambitious indeed. Again: This your first assignment ? Do you have programming experience with other languages ?

Why not start with the simplest possible situations
More than good enough to learn fortran

Making things difficult can be a second step :smile:
(see first -animated- picture same page)​

Anyway: what do you have in mind in the form of output ? long lists of t, x, y, ... or something else ?
 
Purahei said:
I have to create a program in Fortran that models a system of particles. Because I'm new in that language, I would like to have a reference to start.

The references would be :

a) creating a suitable math algorithm for doing that, and
b) a Fortran reference card, and
c) a decent methodology suitable for the problem.
 
Last edited:
BvU said:
I get plenty hits with 'fortran code for simple collisions of particles' or 'computer code for simple collisions of particles'.
Very ambitious indeed. Again: This your first assignment ? Do you have programming experience with other languages ?

Why not start with the simplest possible situations
More than good enough to learn fortran

Making things difficult can be a second step :smile:
(see first -animated- picture same page)​

Anyway: what do you have in mind in the form of output ? long lists of t, x, y, ... or something else ?
Yes, and then make an animation with those results.
 
You sure you are required to use fortran for that animation too ? Perhaps with the use of some library ?
 
Purahei said:
Does anyone know a simple implementation in FORTRAN 90 of collisions of particles?
Purahei said:
Yes, but most of them are in C++. Actually I'm beginner in Fortran.
Purahei said:
It is an academic requirement
This all seems very odd to me, if you're expected to write a program about particle collisions, but have no experience in writing Fortran code. Are you in a university class, and is the expectation that you already know how to write programs?
 
  • Like
Likes   Reactions: BvU