h1. LFOM Entrance Tank Mathcad Code Documentation
h3. Mathcad Code
The mathcad code can be found [here|^EntranceTank 1.xmcd]. You will need to have mathcad installed on your computer in order to open the file.
h3. Variable Description: in order of appearance in code
||Variable Name|| Variable Description||
|{latex} $$ N_{Lfom} $$ {latex}|Number of riser pipes|
|{latex} $$ K_{Rm} $$ {latex}|minor loss coefficient for rapid mix|
|{latex} $$ A_{LfomOrificeTotal} $$ {latex}| Combined area of all orifices|
|{latex} $$ A_{Orifice} $$ {latex}|function for determining the orifice areas as the vertical distance on the riser pipe increases|
|{latex} $$ HL_{Lfom} $$ {latex}| headloss through the Lfom, and the minimum height of the water in the entrance tank|
|{latex} $$ Pi_{VenaContractaOrifice} $$ {latex}|minor loss coefficient for an orifice (was K orifice)|
|{latex} $$ Q_{Plant} $$ {latex}|plant flow rate|
|{latex} $$ ID_{Lfom} $$ {latex}|the inner diameter of the riser pipe|
|{latex} $$ Pi_{LfomOrificeArea} $$ {latex}|ratio of LFOM pipe area to orifice area|
|{latex} $$ ND_{Lfom} $$ {latex}|nominal diameter of the riser pipe and rapid mix pipe|
|{latex} $$ EN_{PipeSpec} $$ {latex}| enumerated type of pipe|
|{latex} $$ HL_{Rm} $$ {latex}| rapid mix head loss|
|{latex} $$ L_{RmPipe} $$ {latex}|The total pipe length betweeen the bottom of the orifices and the flocculator|
|{latex} $$ Nu_{Water} $$ {latex}|viscosity of water through the plant|
|{latex} $$ E_{Pvc} $$ {latex}|PVC pipe roughness|
|{latex} $$ H_{Ramp} $$ {latex}| Function based off of ramp functions, this is an incremental function that all ows other funtions to evaluate one level of orifices at a time|
|{latex} $$ B_{LfomOrifice} $$ {latex}|vertical distance between orifices|
|{latex} $$ Pi_{LfomH} $$ {latex}|elevation between orifice rows at which the flow is calibrated, a 0 or 1 value. 0 corresponds to the current row and 1 corresponds to the next row|
|{latex} $$ Q_{Ramp} $$ {latex}|funtion to determine target riser pipe flow, incrementally calculates flows| |