sludgepipeorigin - a 3 by 1 matrix with x,y,z positions corresponding to the point where the manifold will be drawn
NDsludge - the nominal diameter of the sludge waste pipe - from this we can find the actual inner diameter and actual outer diameter of the pipe based on the schedule of pipe being used.
tanklength - the length of the tank
orificerad - the radius of the orifice hole
orificedist - the distance between successive orifices
ENPipeSpec - an enumerated pipe schedule which specifies a number which corresponds to a pipe schedule that states the amount of water pressure the pipe can handle before it fails. The pipe schedule affects the inner and outer diameter of the pipe.
sludepipeinr - the radius of the inner cylinder defined by inner(NDsludge,ENPipeSpec)/2
sludgepipeoutr - the radius of the outer cylinder defined by outerradius(NDsludge)
p1 =
p2 =
p3 =
p4 =
p5 =
p6 =
p7 =
ND = NDsludge
R1 = sludgepipeoutr
R2 = sludgepipeinr
R3 = radhole
L = tanklength
n1 = floor( tanklength / orificedist )
n2 = 1
d1 = orificedist
win1 =
win2 =
EN = ENPipeSpec
Note: zc corresponds to the zoom constant used within AutoCAD and created in the basics file that is referenced by the pipe program.
Note: All coordinates are referenced in top view in the program unless otherwise specified
pipe1 - using the pipe function draws a pipe (from the pipe program) with no zoom
zoomwin - zooms on a window space
cylinder3 - is to draw a cylinder for orifice purpose
viewrightside - change view to viewrightside
array1 - draw starting at point p1, n1 -- as many rows as the tank length/orifice dist, n2 - 1 and provide orifice distance as the next draw point for the cylinder
subtract2 - subtract unneeded portion of the cylinders