by AntDavison » Sun Jan 22, 2006 11:59 pm
in my posted script, the distance between mounting holes is calculated by summing lots of tangents, not 100% accurate, more like 99.9%; when i wrote the script i was more concerned about drawing the interleaved spirals into a bitmap .... any way, as the spirals increase linearly, its easy to write some code that is 100% accurate in calculating the inter-hole mounting distances
---------------------------------------------------
id = 23.749
spacing = 3.2766
turns = 3.75
plates = 2
decrement = plates * 2 * spacing
od = (turns * decrement) + id
lngth = 0
print "0.0mm = 0.0"
for z = (od - (decrement / 8)) to (id + (decrement / 8)) by (-decrement / 4) do
(
lngth += (z * pi / 4.)
print ((lngth as string) +"mm = " + ((lngth/25.4) as string))
)
_____________________________________
with your figures the 100% accurate pure maths method spits out the below
0.0mm = 0.0"
55.9672mm = 2.20343"
109.361mm = 4.30555"
160.181mm = 6.30635"
208.428mm = 8.20584"
254.102mm = 10.004"
297.202mm = 11.7009"
337.728mm = 13.2964"
375.682mm = 14.7906"
411.061mm = 16.1835"
443.868mm = 17.4751"
474.101mm = 18.6654"
501.76mm = 19.7543"
526.846mm = 20.742"
549.359mm = 21.6283"
569.298mm = 22.4133"
overall its 0.6mm shorter than previously quoted, so nothing significant in it really, with my 4 plate kettle, with 1069mm plate lengths, the pure maths method suggested a plate length of 1068mm, so the figures i used to constrct my kettle were 99.9% accurate