Skip to content

Commit

Permalink
remove error messages (#1223)
Browse files Browse the repository at this point in the history
* remove error messages

* update
  • Loading branch information
EvenSol authored Dec 31, 2024
1 parent 78c1560 commit 0986c9c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public class RachfordRice implements Serializable {
static Logger logger = LogManager.getLogger(RachfordRice.class);
private static final long serialVersionUID = 1000;
private double[] beta = new double[2];
private static String method = "Michelsen2001"; // alternative use Nielsen2023 or Michelsen2001
private static String method = "Nielsen2023"; // alternative use Nielsen2023 or Michelsen2001

/**
* <p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,14 @@ public void testProcess() {
valve1.setOutletPressure(10.0, "bara");

StreamInterface recycleScrubberStream = feedStream.clone("Recycle stream");
recycleScrubberStream.setFlowRate(1.0, "kg/hr");
recycleScrubberStream.setFlowRate(0.0001, "kg/hr");

ThreePhaseSeparator secondStageSeparator =
new ThreePhaseSeparator("2nd stage separator", valve1.getOutletStream());
secondStageSeparator.addStream(recycleScrubberStream);

StreamInterface gasRecycleStream = feedStream.clone("gas recycle stream");
gasRecycleStream.setFlowRate(1.0, "kg/hr");
gasRecycleStream.setFlowRate(0.0001, "kg/hr");

Mixer gasmixer = new Mixer("gas recycle mixer");
gasmixer.addStream(secondStageSeparator.getGasOutStream());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,13 @@ void testCalcBeta() {
}

try {
String startMetod = RachfordRice.getMethod();
RachfordRice rachfordRice = new RachfordRice();
RachfordRice.setMethod("Nielsen2023");
Assertions.assertEquals(0.407070707, rachfordRice.calcBeta(K, z), 1e-6);
RachfordRice.setMethod("Michelsen2001");
Assertions.assertEquals(0.407070707, rachfordRice.calcBeta(K, z), 1e-6);
RachfordRice.setMethod(startMetod);
} catch (Exception e) {
logger.error(e.getMessage());;
}
Expand Down

0 comments on commit 0986c9c

Please sign in to comment.