Update input1.c

Fix unit conversion for emitter coefficient.
This commit is contained in:
Lew Rossman
2025-07-13 15:19:17 -04:00
committed by GitHub
parent 16f90ee4ef
commit 25068d3902

View File

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