h3. General Program Information

{float:left|border=2px solid black}
[!1.bmp|width=280px!|AutoCAD Flocculation Tank Program]
{float}
\\
\\

h5. Inputs Needed to Call the Flocculation Tank Program


h5. Inputs Defined Within the Flocculation Tank Program

*Plant{*}{*}{~}origin{~}*

* x: 0m
* y: 0m
* x: 0m

*EN{~}PipeSpec~* = 4

*W{~}InletChannel~* = 0.245m

*H{~}InletChannel~* = 0.3m

*W{~}FlocChannel~* = W{~}Sed~/2

*L{~}Sed~* = 3.021m

*W{~}Sed~* = 1m

*H{~}Sed~* = 1.1m

*N{~}FlocChannels~* = 2

*T{~}PlantWall~* = 0.15m

*T{~}Mp~* = 0.15m

*N{~}SedTanks~* = 3

*Amp{~}FlocBaffle~* = 0.5in

*Per{~}FlocBaffle~* = 8.5

*N{~}Baffle~* = 1

*X{~}FlocBaffle~* = 4in

*T{~}FlocBaffle~* = 4mm

*AN{~}FlocBaffle~* = 90deg

*N{~}FlocBaffleCol~* = 1

*Y{~}FlocBaffle~* = 7cm

*W{~}FlocPort~* = 0.379m

*L{~}Floc~* = (LSed)*(N{~}FlocChannels~)

*H{~}Floc~* = H{~}Sed~

*H{~}FlocPort~* = 0.75m

*totalfloc{~}dim~* =
* x: L{~}Floc~/N{~}FlocChannels~
* y: (N{~}FlocChannels~\*W{~}FlocChannel~) + ((N{~}FlocChannels~ \- 1)*T{~}PlantWall~)
* z: H{~}Floc~

*wall{~}dim~* =
* x: totalfloc{~}dim0~ + (2T{~}PlantWall~)
* y: T{~}PlantWall~
* z: totalfloc{~}dim2~

*flocport{~}dim~* is composed of a for loop with the range 0 to (N{~}FlocChannels~ \- 2). While in the for loop: 

*flocport{~}dim0,i~* =

* x: W{~}FlocPort~
* y: T{~}PlantWall~
* z: H{~}FlocPort~

*channelopening{~}dim~* =

* x: W{~}InletChannel~
* y: T{~}PlantWall~
* z: H{~}InletChannel~

*floc{~}origin~* =

* x: Plant{~}Origin0~
* y: Plant{~}Origin1~ + N{~}SedTanks~(W{~}Sed~ + T{~}PlantWall~)
* z: Plant{~}Origin2~

*wall{~}origin~ is composed of a for loop with the range 0 to (N{~}FlocChannels~ - 2). While in the for loop: 

*wall{~}origin0,i~* =

* x: Plant{~}Origin0~ - totalfloc{~}dim0~ - T{~}PlantWall~
* y: Plant{~}Origin1~ + N{~}SedTanks~(W{~}Sed~ + T{~}PlantWall~) + (W{~}FlocChannel~*(1 + i)) + (T{~}PlantWall~*i)
* z: Plant{~}Origin2~

*flocport{~}origin~* is composed of a for loop with an if statement embedded in the program scrip. The range of the for loop is from 0 to (N{~}FlocChannels~ - 2) 

If round(round(i/2) - (i/2)) = 0 then:

*flocport{~}origin0,i~* = 

* x: Plant{~}Origin0~ - W{~}FlocPort~
* y: Plant{~}Origin1~ + N{~}SedTanks(W{~}Sed~ + T{~}PlantWall~) + (W{~}FlocChannel~*(1 + i))
* z: Plant{~}Origin2~

If round(round(i/2) - (i/2)) = 1

*flocport{~}origin0,i~* =

* x: Plant{~}Origin0~ - totalfloc{~}dim0~
* y: Plant{~}Origin1~ + N{~}SedTanks(W{~}Sed~ + T{~}PlantWall~) + (W{~}FlocChannel~*(1 + i))
* z: Plant{~}Origin2~

*channelopening{~}origin~ = 

* x: floc{~}origin0~ - totalfloc{~}dim0~
* y: floc{~}origin1~ - T{~}PlantWall~
* z: floc{~}origin2~ + totalfloc{~}dim2~ - H{~}InletChannel~

*Y{~}FlocBaffles~ is composed of a for loop with the range 0 to (N{~}FlocChannels~ - 1). While in the for loop:

Y{~}FlocBaffles0,j~ = Plant{~}Origin1~ + (N{~}SedTanks*(W{~}Sed~ + T{~}PlantWall~)) + ((N{~}FlocChannels~ - j - 1)*(W{~}FlocChannel~ + T{~}PlantWall~)) 

h3. Technical Program Outline

{float:left|border=2px solid black}
[!2.bmp|width=280px!|AutoCAD Flocculation Tank Program]
{float}
*layer1* \- creates a floctank layer

layer1 <-\- layer{~}new~("floctank",dkgrey)

*Tank1* <-\- creates a tank. See [Tank Help|AutoCAD Tank Program] for details  on the tank function.

Tank1 <-\- Tank(floc{~}origin~, totalfloc{~}dim~, T{~}PlantWall~)

floc{~}origin~ \-

totalfloc{~}dim~ \-

T{~}PlantWall~ \-

\\
\\
{float:left|border=2px solid black}
[!3.bmp|width=280px!|AutoCAD Flocculation Tank Program]
{float}
*box1* \- creates a box

box1 <-\- box(wall{~}origin~, )

\\
\\
{float:left|border=2px solid black}
[!4.bmp|width=280px!|AutoCAD Flocculation Tank Program]
{float}
*box2* \-

box2 <-\- box(flochole{~}origin~, )

\\
\\
{float:left|border=2px solid black}
[!5.bmp|width=280px!|AutoCAD Flocculation Tank Program]
{float}
*subtract0* \-

subtract0 <-\- subtractD( , )

\\
\\
{float:left|border=2px solid black}
[!6.bmp|width=280px!|AutoCAD Flocculation Tank Program]
{float}
*union1* \-

union1 <-\- unionC( , )

\\
\\
{float:left|border=2px solid black}
[!7.bmp|width=280px!|AutoCAD Flocculation Tank Program]
{float}
*box3*\-

box3 <-\- box( , )

\\
\\
{float:left|border=2px solid black}
[!8.bmp|width=280px!|AutoCAD Flocculation Tank Program]
{float}
*subtract1* \-

subtract1 <-\- subtractD( , )

\\
\\
{float:left|border=2px solid black}
[!9.bmp|width=280px!|AutoCAD Flocculation Tank Program]
{float}
*bigunion* \-

bigunion <-\- union{~}allA~

\\
\\
{float:left|border=2px solid black}
[!10.bmp|width=280px!|AutoCAD Flocculation Tank Program]
{float}
*layerset* \-

layerset <-\- layer{~}set("0")

*layerfreeze1* \-

layer{~}freeze~("floctank")

\\
\\