Currently, there are two ways to obtain a copy of MercuryDPM, by download or svn-access:
tar -zxf MercuryDPM.tar.gz) in a directory of your choice.
Type in a terminal the following command
svn checkout https://svn.MercuryDPM.org/SourceCode/Release/0.9 MercurySource
MD/DRIVERS/directory and type
You should get lots of output.
index.htmlinto your web browser, by typing
or otherwise. This will give you this documentation, which you are currently reading, it is not complete, as we are not fully ready to go open source, but there is some description of what is in each directory, including the scripts, which you may find useful. The main reason for doing this is it gives you the a local update version of the documentation. Please now swap to folling the instructions in this version.
ln -s sc ../scripts
This will create a link to the script files, which are needed for the self testing to work.
This will run the tests. If any fail let me know then there is a problem on your computer.
This will run a simulation of a single particle falling under gravity. The output from this code will appear in a directory called
This should launch Stefan Luding's MD visualisation program. You may get an error message here if so when me know and I will get you a version for your operating system.
sc/quick_run free_cooling ./free_cooling/free_cooling_hgrid.disp
This will display a short animations of 100 particles moving under gravity bouncing off a wall and interacting inelastically.
You should notice this code runs twice, once using the HGRID and once not. The use of the HGRID should be a lot faster, this is the third party code I said that is used to make the code go faster. I would base any code you write on the HGRID version of this code. Have a look at free_cooling.cpp. Gravity defaults to 9.8 in the z-direction can this can changed my setting the gravity vector see documentation.