Skip to content

OpenMP-Accelerated Simulation of Biological Crystal Growth via Diffusion-Limited Aggregation

Notifications You must be signed in to change notification settings

tunnellm/OpenMP-Crystal-Growth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenMP-Crystal-Growth

OpenMP-Accelerated Simulation of Biological Crystal Growth via Diffusion-Limited Aggregation

Multi-threaded implementation of biological crystal growth through random movement contained within an n-dimensional cubic structure. In essence, we allocate enough elements for the n-dimensional cube, flatten to a 1-dimensional vector, and cast from a 1-dimensional coordinate system into the appropriate coordinate system for the n-dimensional cube. Directional movement is allowed on any adjacent square in a hypersphere around the object, with the relative rules for movement being generated at run-time based on user input.

Compile as: g++ main.cpp functions.cpp -o out.o

Run as: ./out.o

or

./out.o numThreads dimensions structureSize initialFloaters g_max seedingPercentChance

e.g. ./out 16 3 100 1000 10000 20

Program outputs a csv file of coordinates.

About

OpenMP-Accelerated Simulation of Biological Crystal Growth via Diffusion-Limited Aggregation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages