summaryrefslogtreecommitdiff
path: root/cad/doc/old_doc/mmpformat
blob: d92112233c3913af88861e5c0fdadb7f6e80a052 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
mmp file format

record types

part xxx <comment>
  xxx is vdw, bns, or nil

atom n (e) (x, y, z)
  n is atom number -- intended to rise sequentially from 1
  e is element number, e.g. carbon = 6
  x, y, z, the position in 1e-13m

bond1 <atom #> <atom #> ... (up to 25)
  bonds the last-defined atom to the indicated ones

waals <atom #> <atom #> ... (up to 25)
  indicates vanderwaals interaction to be simulated between
   indicated and last-defined atoms
   (NB vdW interactions are automatically simulated between atoms 
    of different parts)

show xxx
  xxx is vdw, bns, or nil

ground <atom #> <atom #> ... (up to 25)
  given atoms are "welded to space"

motor <torque>, <speed>, (cx, cy, cz) (ax, ay, az) 
  torque in nN*nm (float)
  speed in gHz (float)
  cx, cy, cz is center of rotation (same format as atom posns)
  ax, xy, az is axis of ratation (ditto)

shaft <atom #> <atom #> ... (up to 25) (must follow motor immediately)
  atoms to which the motor is connected

kelvin n
  n is temperature in kelvins (int)

end
  logical end of file

unimplemented:

link (x1, y1, z1) (x2, y2, z2)
shaft ...
shaft ... or ground

bearing (cx, cy, cz) (ax, ay, az) 
shaft ...
shaft ... or ground

ball (cx, cy, cz)
shaft ...
shaft ... or ground

linear (ax, ay, az)
shaft ...
shaft ... or ground

planar (nx, ny, nz) 
shaft ...
shaft ... or ground

hooke (cx, cy, cz) (a1x, a1y, a1z) (a2x, a2y, a2z) 
shaft ...
shaft ... or ground

prism (ax, ay, az)
shaft ...
shaft ... or ground