Inlet Pipe Drawing Script

layerthaw - Layerthaw unlocks the layer "channel" so that it can be edited.

layerthaw <-layerthaw("channel")

viewtop - Rotates the object so that it is being viewed from the top.

viewtop <-viewtop1

cylinder1 - CylinderC is used to create a cylinder based on a point, radius and length.

cylinder1 <- cylinderC(sedtankinletpipe1origin,outerradius(NDSedPipeEntrance),-sedtankinletpipelength)

sedtankinletpipe1origin =

outerradius(NDSedPipeEntrance) = specifies the radius of the cylinder.

sedtankinletpipelength = specifies the length of the cylinder.

cylinder2 - CylinderC is used to create a cylinder based on a point, radius and length.

cylinder2 <- cylinderC(sedtankinletpipe2origin,outerradius(NDSedPipeEntrance),-sedtankinletpipelength)

sedtankinletpipe2origin =

outerradius(NDSedPipeEntrance) = specifies the radius of the cylinder.

sedtankinletpipelength = specifies the length of the cylinder.

subtractc - SubtractC subtracts one object from the other based on three points.

subtractc <- subtractH(channelorigin,p1,p2)

When sedlayout = 1, channelorigin is 3*1 matrix with x,y,z points corresponding to where the channel will be drawn. Channelorigin is called from the Channel Program.

p1 =

p2 =

layerset -

layerset <- layerset("0")

layerfreezec -

layerfreezec <- layerfreeze("channel")

layerthawis -

layerthawis <- layerthaw("inletslopes")

subtractis -

subtractis <-subtractH(PlantOrigin,p1,p2)

PlantOrigin =

p1 =

p2 =

layerfreezeis -

layerfreezeis <- layerfreeze("channel~)

layernewip -

layernewip <- layerthaw("inletslopes")

slopesip -

slopesip <- sedslope(PlantOrigin,p1,AN{~}SedTopInlet)

p1 =

moveip -

moveip <-moveall(PlantOrigin,p1)

p1 =

pipe1 -

pipe1 <- Pipe(sedtankinletpipe1origin,NDSedPipeEntrance,-sedtankinletpipelength,ENPipeSpec)

pipe2 -

pipe2 <- Pipe(sedtankinlepipe2origin,NDSedPipeEntrance,-sedtankinletpipelength~,ENPipeSpec)

subtractip -

subtractip <- subtractK(p1,p2,PlantOrigin)

p1 =

p2 =

layerfreezeip -

layerfreezeip <- layerfreeze("inletpipes")