MAMBO logo MAMBO & the MAMBO Toolbox MAMBO logo

DefinePoints — Definition of points [mathematica]

DefinePoints[A,B,pv]

DefinePoints[{A1,B1,pv1}, ..., {An,Bn,pvn}]

A,A1, ..., An: names of declared points

B,B1, ..., Bn: names of declared points

pv,pv1, ..., pvn: vector specifications

The function DefinePoints defines a direct relation between two declared points by specifying the position vector from the first point to the second point. A pair of indirectly related points may not be defined.

The function DefinePoints results in permanent changes to the global variables GlobalPointDeclarations and GlobalPointDefinitions.

The syntax of a vector specification corresponds to that of the argument to the MakeTranslations procedure.

Restart;
DeclarePoints[Ap,Bp,Cp];
DeclareTriads[a,b,c];
DefinePoints[{Ap,Bp,a,1},{Bp,Cp,{b,2},{c,3}}];
GlobalPointDeclarations

{ Ap "->" { Bp } , Bp "->" { Ap , Cp } , Cp "->" { Bp } }

GlobalPointDefinitions

{ { Ap , Bp } "->" { Type "->" Vector , Size "->" 1 , 1 "->" { Coordinates "->" { 1 , 0 , 0 } , Triad "->" a } } , { Bp , Ap } "->" { Type "->" Vector , Size "->" 1 , 1 "->" { Coordinates "->" { - 1 , 0 , 0 } , Triad "->" a } } , { Bp , Cp } "->" { 1 "->" { Coordinates "->" { 0 , 1 , 0 } , Triad "->" b } , Type "->" Vector , Size "->" 2 , 2 "->" { Coordinates "->" { 0 , 0 , 1 } , Triad "->" c } } , { Cp , Bp } "->" { 1 "->" { Coordinates "->" { 0 , - 1 , 0 } , Triad "->" b } , Type "->" Vector , Size "->" 2 , 2 "->" { Coordinates "->" { 0 , 0 , - 1 } , Triad "->" c } } }


Toolbox functions