- #1
Purahei
- 9
- 0
Does anyone know a simple implementation in FORTRAN 90 of collisions of particles?
Have you done any research on your own?Purahei said:Does anyone know a simple implementation in FORTRAN 90 of collisions of particles?
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.pbuk said:Can you clarify what you are looking for - is it
- 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
- some Fortran code that models a collision between two particles so you can copy it for an assignment?
Very ambitious indeed. Again: This your first assignment ? Do you have programming experience with other languages ?Purahei said:program in Fortran that models a system of particles
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.
Yes, and then make an animation with those results.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 (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: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.
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?Purahei said:It is an academic requirement
The Discrete Element Method is a computational technique used to simulate the dynamics of systems consisting of a large number of discrete particles. It works by solving the equations of motion for each individual particle, taking into account the interactions between particles and with their surrounding environment. This allows for the simulation of complex systems where the behavior of each particle is important.
FORTRAN 90 is a high-level programming language with a long history in scientific computing. It is known for its efficiency and speed, making it a popular choice for implementing DEM simulations that involve large numbers of particles and complex calculations. Additionally, FORTRAN 90 has built-in array operations and supports parallel programming, which are both essential for efficient implementation of DEM algorithms.
In DEM simulations, particle collisions are modeled using contact detection algorithms and contact models. These algorithms determine when particles come into contact based on their positions and velocities, and the contact models calculate the forces that act on the particles during the collision. This allows for a realistic representation of particle interactions, including friction and restitution.
Yes, DEM can be used to simulate a wide range of particle types, including rigid and deformable particles, as well as particles with different shapes and sizes. The behavior of each particle is defined by its material properties and the contact models used in the simulation. This allows for the study of various systems, such as granular materials, powders, and biomaterials.
While DEM is a powerful tool for simulating particle collisions, it also has some limitations. One limitation is that it does not take into account the effects of fluid or gas flow, which can be important in certain systems. Additionally, DEM simulations can be computationally expensive, especially when simulating large numbers of particles or complex systems. Finally, the accuracy of DEM results can also be affected by the choice of contact models and parameters used in the simulation.