Update input1.c
Fix unit conversion for emitter coefficient.
This commit is contained in:
@@ -545,7 +545,7 @@ void convertunits(Project *pr)
|
|||||||
hyd->Preq /= pr->Ucf[PRESSURE];
|
hyd->Preq /= pr->Ucf[PRESSURE];
|
||||||
|
|
||||||
// Convert emitter discharge coeffs. to head loss coeff.
|
// 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;
|
ucf = pow(pr->Ucf[FLOW], hyd->Qexp) / ecf;
|
||||||
for (i = 1; i <= net->Njuncs; i++)
|
for (i = 1; i <= net->Njuncs; i++)
|
||||||
|
|||||||
Reference in New Issue
Block a user