Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

General Program Information

Inputs Needed to Call the Flocculation Tank Program
Inputs Defined Within the Flocculation Tank Program

Dimensions

totalflocdim =

  • x: flocdim0
  • y: (numfloctanks*flocdim1) + ((numfloctanks - 1)*tankthick)
  • z: flocdim2

walldim =

  • x: totalflocdim0 + (2tankthick)
  • y: tankthick
  • z: totalflocdim2

Origin Points

flocorigin =

  • x: tankorigin0
  • y: tankorigin1 + numtanks(tankdim1 + tankthick)
  • z: tankorigin2

wallorigin =

  • x: tankorigin0 - flocdim0 - tankthick
  • y: tankorigin1 + numtanks(tankdim1 + tankthick) + flocdim1)
  • z: tankorigin2

holeorigin =

  • x: tankorigin0 - flocholedim0
  • y: tankorigin1 + numtanks(tankdim1 + tankthick) + flocdim1
  • z: tankorigin2

baffletank1origin =

  • x: tankorigin0 - tankdim0
  • y: tankorigin1 + numtanks*(tankdim1 + tankthick) + flocdim1 + walldim1
  • z: tankorigin2

baffletank2origin =

  • x: tankorigin0 - tankdim0
  • y: tankorigin1 + numtanks*(tankdim1 + tankthick)
  • z: tankorigin2

Technical Program Outline

layer1 -

layer1 <- layernew("floctank",dkgrey)

tank1

tank1 <- Tank(flocorigin,totalflocdim,tankthick)

box1 -

box1 <- box(wallorigin,wallorigin + walldim)

box2 -

box2 <- box(holeorigin,holeorigin + flocholedim)

subtract0 -

subtract0 <- subtractD(p1,holeorigin)

p1 =

  • x: holeorigin0 + flocholedim0 + tankthick
  • y: holeorigin1
  • z: holeorigin2

union1 -

union1 <- unionC(p1,p2)

p1 =

  • x: flocorigin0 - totalflocdim0 - tankthick - zc
  • y: flocorigin1 - tankthick - zc
  • z: flocorigin2

p2 =

  • x: flocorigin0 + tankthick + zc
  • y: flocorigin1 + totalflocdim1 + tankthick + zc
  • z: flocorigin2

box3 -

box3 <- box(p1,p2)

p1 =

  • x: flocorigin0 - totalflocdim0
  • y: flocorigin1 - tankthick
  • z: flocorigin2 + totalflocdim2 - channeldim2

p2 =

  • x: flocorigin0 - totalflocdim0 + channeldim1
  • y: flocorigin1
  • z: flocorigin2 + totalflocdim2

subtract1 -

subtract1 <- subtractD(flocorigin,p1)

p1 =

  • x: flocorigin0 - flocdim0
  • y: flocorigin1 - tankthick
  • z: flocorigin2 + flocdim2 - channeldim2

layerset

layerset <- layerset("0")

layerfreeze -

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

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 function.layerfreeze <- layerfreeze("floctank")