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 =
- x: PlantOrigin0 - LSed + (.5WInletChannel)
- y: PlantOrigin1 + (WSed/4)
- z: PlantOrigin2 + HSed - HInletChannel
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 =
- x: PlantOrigin0 - LSed + (.5WInletChannel)
- y: PlantOrigin1 + (3WSed/4)
- z: PlantOrigin2 + HSed - HInletChannel
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 =
- x: sedtankinletpipe2origin0 + outerradius(NDSedPipeEntrance)
- y: sedtankinletpipe2origin1 + outerradius(NDSedPipeEntrance)
- z: sedtankpipe1origin2
p2 =
- x: sedtankinletpipe1origin0 - outerradius(NDSedPipeEntrance)
- y: sedtankinlepipe1origin1 - outerradius(NDSedPipeEntrance)
- z: sedtankpipe4origin2)
layerset -
layerset <- layerset("0")
layerfreezec -
layerfreezec <- layerfreeze("channel")
layerthawis -
layerthawis <- layerthaw("inletslopes")
subtractis -
subtractis <-subtractH(PlantOrigin,p1,p2)
PlantOrigin =
p1 =
- x: sedtankinletpipe2origin0 + outerradius(NDSedPipeEntrance)
- y: sedtankinletpipe2origin1 + outerradius(NDSedPipeEntrance)
- z: sedtankpipe1origin2
p2 =
- x: sedtankinletpipe1origin0 - outerradius(NDSedPipeEntrance)
- y:sedtankinletpipe1origin1 - outerradius(NDSedPipeEntrance)
- z: sedtankpipe4origin2
layerfreezeis -
layerfreezeis <- layerfreeze("channel~)
layernewip -
layernewip <- layerthaw("inletslopes")
slopesip -
slopesip <- sedslope(PlantOrigin,p1,AN{~}SedTopInlet)
p1 =
- x: LSed
- y: WSed
- z: HSed
moveip -
moveip <-moveall(PlantOrigin,p1)
p1 =
- x: PlantOrigin0
- y: PlantOrigin1
- z: PlantOrigin2 + outerdiameter(NDSedSludge)
pipe1 -
pipe1 <- Pipe(sedtankinletpipe1origin,NDSedPipeEntrance,-sedtankinletpipelength,ENPipeSpec)
pipe2 -
pipe2 <- Pipe(sedtankinlepipe2origin,NDSedPipeEntrance,-sedtankinletpipelength~,ENPipeSpec)
subtractip -
subtractip <- subtractK(p1,p2,PlantOrigin)
p1 =
- x: sedtankinletpipe1origin0 + outerradius(ND{~}SedPipeEntrance)
- y: sedtankinletpipe1origin1
- z: sedtankinletpipe1origin2
p2 =
- x: sedtankinletpipe2origin0 + outerradius(NDSedPipeEntrance)
- y: sedtankinletpipe2origin1
- z: sedtankinletpipe2origin2
layerfreezeip -
layerfreezeip <- layerfreeze("inletpipes")