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 =

p2 =

p3 =

p4 =

p5 =

p6 =

p7 =

ND =

R3 =

L =

n1 =

n2 =

d1 =

win1 =

win2 =

EN =

Technical Program Outline

Note: All coordinates are referenced in top view in the program unless otherwise specified.

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