MAMBO logo MAMBO & the MAMBO Toolbox MAMBO logo

GeometryOutput — Construction of a MAMBO geometry description [mathematica]

GeometryOutput["main"->W,options]

W: name of declared observer

options: optional arguments for error checking and automatic spooling to output file

The function GeometryOutput generates a MAMBO geometry description corresponding to a connected components of the MAMBO toolbox geometry based at the observer W.

The optional arguments passed to GeometryOutput allow the user to spool the output directly to a file; to check that the resulting MAMBO geometry description is syntactically correct; and to check that the resulting MAMBO geometry description contains nothing but numbers, MAMBO parameters, MAMBO animated variables, and MAMBO state variables.
"filename"->String
specifies the name (and path) of the output file in the Mathematica string String.
"checktree"
aborts the generation of a MAMBO geometry description if the reference point or reference triad of some observer have not been defined. An error message is thrown.
"checkargs"
aborts the generation of a MAMBO geometry description if any algebraic symbol in the geometry description has not been declared as a MAMBO parameter, a MAMBO animated variable, a MAMBO state variable, or the MAMBO time variable using any of the following optional arguments. An error message is thrown.
"states"->statelist
where statelist is a Mathematica list of substitution rules with left-hand sides given by the names of MAMBO state variables and right-hand sides given by their initial values. In the absence of a substitution arrow and a right-hand side, the initial value is assumed to equal 0.
"parameters"->parlist
where parlist is a Mathematica list of substitution rules with left-hand sides given by the names of MAMBO parameters and right-hand sides given by their values. In the absence of a substitution arrow and a right-hand side, the value is assumed to equal 0.
"anims"->animlist
where animlist is a Mathematica list of substitution rules with left-hand sides given by the names of MAMBO animated variables and right-hand sides given by algebraic expressions defining the animated variables.

Restart;
DeclareObservers[A,B,C];
DeclarePoints[A,B,C];
DeclareTriads[a,b,c];
DefineObservers[{A,A,a},{B,B,b},{C,C,c}];
DefinePoints[{A,B,a,Cos[s],p1,p2},{B,C,c,r-s,0,1}];
DefineTriads[{a,b,theta,1},{a,c,{s-Pi/2,1},{Pi/2,2}}];
DefineNeighbors[{A,B},{B,C}]
SetTime[s];
GeometryOutput["main"->B,"states"->{theta->0},"parameters"->{p1->1,p2->2},
   "anims"->{r->s^2*p1-Cos[p2*s]},"checktree","checkargs",
   "filename"->"output.geo"];


Toolbox functions