//Depth of water at the upstream(on feet): Du=1.5; //Depth of water at the vena contracta downstream from the gate(in inches): Dd=2; //Acceleration due to gravity(in ft/sec^2): g=32.2;