PDA changes to improve convergence

This commit is contained in:
Lew Rossman
2020-11-19 16:23:24 -05:00
parent 9525d73cf3
commit 533466b796
2 changed files with 5 additions and 1 deletions

View File

@@ -486,7 +486,7 @@ void demandheadloss(Project *pr, int i, double dp, double n,
}
// Use power head loss function for demand less than full
else if (r < 1.0)
else if (r <= 1.0) //(2.2.1)
{
*hgrad = n * dp * pow(r, n - 1.0) / dfull;
// ... use linear function for very small gradient