MAMBO logo MAMBO & the MAMBO Toolbox MAMBO logo

Sample project - Pyramid

To illustrate the use of translations to represent positions.

This Mambo project contains a stationary arrangement of spheres.

R: half the distance between the centers of the spheres.

R1: spheres' radius.

  • Experiment by varying the magnitude of R1 relative to R.
  • Modify the Mambo project to generate a visualization of a variety of organic molecules. Use different colors to represent different atomic species.

pyramid.zip (zip file, 4 kb, December 30, 2012)
This zip archive contains MAMBO and the MAMBO toolbox source files to visualize the MAMBO project and regenerate visualization files using maple 16, mupad 5.6.0 (matlab R2011a), and mathematica 8.0 versions of the code found below.


Click here to expand/contract!
>with(Mambo):

Click here to expand/contract!
>DeclareObservers(W):
>DeclarePoints(W,seq(cat(S,k),k=1..5)):
>DeclareTriads(w):
>DefineObservers([W,W,w]):
>h:=sqrt(2)*R:
>DefinePoints([W,S1,w,R,R,-h],[W,S2,w,R,-R,-h],[W,S3,w,-R,-R,-h],[W,S4,w,-R,R,-h],[W,S5,NullVector()]):

Click here to expand/contract!
>DefineObjects(seq([W,'Sphere',point=cat(S,k),radius=R1,color=cat("{1,",convert(1-(k-1)/4,string),",0}")],k=1..5)):

Click here to expand/contract!
>GeometryOutput(main=W,parameters=[R=1,R1=1],checktree,checkargs,filename="pyramid.geo");
>MotionOutput(ode={},parameters=[R=1,R1=1],filename="pyramid.dyn");

Sample projects