General Program Information
This script draws the tank that houses the inner walls and baffles of the floc tank. The script then draws the inner walls and subtracts the ports between the channels.
Technical Program Outline
local - Layernew creates a new dark grey layer, "floctank."
local <- layernew("floctank",dkgrey)
local - is redefined as the "floctank" layer and the tank that houses the inner walls of the baffles and the floc tank, both stacked.
local <- stack(local, Tank(flocorigin, totalflocdim, TPlantWall))
for loop - the for loop draws the inner walls and then subtracts the ports between channels for each wall. Local is then stacked with the inner walls and subtractions iteratively.
for i from 0..NFlocChannels - 2
local<-stack(local, box(wallorigin 0,i, wallorigin 0,i + walldim), box(flocportorigin 0,i, flocportorigin 0,i + flocportdim 0,i), subtract(wallorigin, flocportorigin))
bigunion1 unions all objects drawn thus far into a single object.
bigunion1 <- unionallA
layerset1 - selects the layer "0"
layerset1 <- layerset ("0")
layerfreeze1 - Layerfreeze locks the layer "floctank" so that it cannot be edited.
layerfreeze1 <- layerfreeze("floctank")
one <- stack(local, bigunion1, layerset1, layerfreeze1)
flocorigin =
- x: PlantOrigin0
- y: Plant~origin1~ + NSedTanks(WSed + TPlantWall)
- z: PlantOrigin2
totalflocdim =
- x: LFlocTank/NFlocChannels
- y: (NFlocChannels*WFlocChannels) + ((NFloc Channels - 1)*TPlantWall)
- z: HFloc
TPlantWall - specifies the thickness of the tank.