General Program Information
Inputs Needed to Call the Manifold Function
manifoldorigin - a 3 by 1 matrix with x,y,z positions corresponding to the point where the manifold will be drawn
NDManifold - the nominal diameter of the manifold 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.
orificerad - the radius of the orifice hole
tanklength - the length of the tank
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.
radhole - the radius of the orifice hole
Inputs Found in the Pipe Database Function
manifoldinr is the radius of the inner cylinder defined by innerD(NDManifold,ENPipeSpec)/2
manifoldoutr is the radius of the outer cylinder defined by outerradius(NDManifold)
Inputs Defined Within the Manifold Function
p1 = manifoldorigin
p2 =
- x = manifold.origin0
- y = manifold.origin1
- z = manifold.origin2 + tanklength - orificedist
p3 =
- x = manifold.origin0
- y = manifold.origin1 - manifoldoutr
p4 =
- x = manifold.origin0 + manifoldoutr*cos(pi/6) + manifoldoutr
- y = manifold.origin1 + manifoldoutr*sin(pi/6) + manifoldoutr
- z = manifold.origin2 + tanklength - orificedist
p5 =
- x = manifold.origin1 + manifoldoutr*sin(pi/6) + manifoldoutr
- y = manifold.origin2 + tanklength - orificedist
p6 =
- x = manifold.origin0
- y = manifold.origin1
p7 =
- x = manifold.origin0 + manifoldoutr*cos(pi/3) + 2zc
- y = manifold.origin0 + manifoldoutr*sin(pi/3) + 2zc
ND =
R3 =
L =
n1 =
n2 =
d1 =
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.
Technical Program Outline
Note: All coordinates are referenced in top view in the program unless otherwise specified.
The Manifold program is build on the Sludge Pipe Program.
zoomwin - zooms on a window space
pipe1 - draws a pipe (from the pipe program)
cylinder1 - draws a cylinder with pipeoutr as radius
cylinder2 - draws a cylinder with pipeinras radius
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
mirror1 - mirror the orifices on to the other side of the pipe at 2*tan(Pi)/3
subtract1 - subtract unneeded portion of the cylinders