...
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. In the case of a vertical flocculator, the ports are drawn at the base of the flocculator. For a horizontal flocculator, the ports heights are set to the height of the floctank.
| Wiki Markup |
|---|
{float:left|border=2px solid black}
[!Floc Tank Basics.PNG|width=450px!|AutoCAD Channel Program]
Vertical Floc Tank with Wall Removed
{float} |
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(layer1, tank1, 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
1) A new layer "floctank" is made using the Layernew function.
2) The Tank program is called by floctanktankscript to draw the outside walls of the flocculation tank.
3) The inner walls, placed to give a uniform channel width, are drawn as iteratively.
4) The ports between channels are both drawn and subtracted from the inner walls iteratively.
5) The "floctank" layer is set to zero.
6) The "floctank layer" is frozen using the Layerfreeze functionTPlantWall - specifies the thickness of the tank.