Difference between revisions of "Using mgpost"

From Yade

Line 1: Line 1:
== mgpost ==
+
== Brief description ==
 
<code>mgpost</code> is a tool for post-processing and visualization of 3D DEM simulations. The source code can be found within yade repository, in the folder extra. A quick user guide is also provided.
 
<code>mgpost</code> is a tool for post-processing and visualization of 3D DEM simulations. The source code can be found within yade repository, in the folder extra. A quick user guide is also provided.
   
Line 6: Line 6:
 
<code>mgpost</code> uses the standard openGL API for 2D and 3D vectorial graphics. It can currently be compiled on unix-like operating system such as kubuntu or Mac OS X, and have already be builded on windows in the past.
 
<code>mgpost</code> uses the standard openGL API for 2D and 3D vectorial graphics. It can currently be compiled on unix-like operating system such as kubuntu or Mac OS X, and have already be builded on windows in the past.
   
  +
<code>mgpost</code> uses a very basic C style programming (unlike Yade that is build with a very nice C++ design), but meanwhile a great software for 3D visualization, it just work fine !
  +
  +
== Compiling mgpost ==
  +
  +
mgpost is not yet compiled with scons but a simple Makefile. From yade home directory type:
  +
$ cd extra/mgpost
  +
For unix-like OS on standard PC type:
  +
$ make
  +
And for Mac OS X type:
  +
$ make macosx
  +
If you want to install mgpost in /usr/local/bin by default type:
  +
$ sudo make install
  +
and enter your password... That all.
   
 
== Generating MGP files with yade ==
 
== Generating MGP files with yade ==

Revision as of 17:08, 15 September 2009

Brief description

mgpost is a tool for post-processing and visualization of 3D DEM simulations. The source code can be found within yade repository, in the folder extra. A quick user guide is also provided.

As I sortly said, mgpost is a small soft for viewing 2D or 3D discrete element simulations. These simulations can be performed with the computer code of your choice (I hope it is yade!). The 'comunication' between the simulation code and mgpost is performed through MGP files. It is actually a XML format with specific tags (described in the user guide).

mgpost uses the standard openGL API for 2D and 3D vectorial graphics. It can currently be compiled on unix-like operating system such as kubuntu or Mac OS X, and have already be builded on windows in the past.

mgpost uses a very basic C style programming (unlike Yade that is build with a very nice C++ design), but meanwhile a great software for 3D visualization, it just work fine !

Compiling mgpost

mgpost is not yet compiled with scons but a simple Makefile. From yade home directory type:

$ cd extra/mgpost

For unix-like OS on standard PC type:

$ make

And for Mac OS X type:

$ make macosx

If you want to install mgpost in /usr/local/bin by default type:

$ sudo make install

and enter your password... That all.

Generating MGP files with yade

A basic (StandAlone)Engine is provided for this purpose: MGPRecorder. It works only for spheres for the moment.


Screenshots

Here are some screenshots generated with mgpost.

A meshed tomography for SpherePadder
A packing of about 800 000 spheres obtained from the previous tomography
Normal forces between polyhedra
Packing of 40 000 polyhedra (the walls are not shown). The colors correspond to velocity magnitude of the particles