Skip to content

Commit 78c1560

Browse files
authored
update (#1222)
1 parent 0638602 commit 78c1560

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/main/java/neqsim/thermodynamicoperations/flashops/RachfordRice.java

+2-3
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public class RachfordRice implements Serializable {
2222
static Logger logger = LogManager.getLogger(RachfordRice.class);
2323
private static final long serialVersionUID = 1000;
2424
private double[] beta = new double[2];
25-
private static String method = "Nielsen2023"; // alternative use Nielsen2023 or Michelsen2001
25+
private static String method = "Michelsen2001"; // alternative use Nielsen2023 or Michelsen2001
2626

2727
/**
2828
* <p>
@@ -188,8 +188,7 @@ public double calcBetaMichelsen2001(double[] K, double[] z)
188188
nybeta = 1.0 - betal;
189189
}
190190
step = gbeta / deriv;
191-
} while (Math.abs(step) >= 1.0e-11 && (Math.abs(step) >= 1e-9 && iterations < 50)
192-
&& iterations < maxIterations);
191+
} while (Math.abs(step) >= 1.0e-11 && iterations < maxIterations);
193192
if (nybeta <= tolerance) {
194193
nybeta = tolerance;
195194
} else if (nybeta >= 1.0 - tolerance) {

src/main/java/neqsim/thermodynamicoperations/flashops/TPmultiflash.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ public void stabilityAnalysis() {
373373
int iter = 0;
374374
double errOld = 1.0e100;
375375
boolean useaccsubst = true;
376-
int maxsucssubiter = 200;
376+
int maxsucssubiter = 150;
377377
int maxiter = 200;
378378
do {
379379
errOld = err;

0 commit comments

Comments
 (0)