Fix emitter calculation

This commit is contained in:
lbutler
2025-07-05 21:24:39 -04:00
parent 3d1d6496c9
commit 375a772d2e
2 changed files with 3 additions and 6 deletions

View File

@@ -545,8 +545,7 @@ void convertunits(Project *pr)
hyd->Preq /= pr->Ucf[PRESSURE];
// Convert emitter discharge coeffs. to head loss coeff.
ecf = (parser->Unitsflag == US) ? (1.0 / PSIperFT) : (1.0 / MperFT);
ecf /= hyd->SpGrav;
ecf = (parser->Unitsflag == US) ? (PSIperFT * hyd->SpGrav) : (MperFT * hyd->SpGrav);
ucf = pow(pr->Ucf[FLOW], hyd->Qexp) / ecf;
for (i = 1; i <= net->Njuncs; i++)