Skip to content

Commit

Permalink
added idSm3/hr rate unit
Browse files Browse the repository at this point in the history
  • Loading branch information
EvenSol committed Jul 14, 2023
1 parent 2c1223e commit 029a4da
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/neqsim/thermo/system/SystemInterface.java
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ public default double getGamma2() {
* method to return flow rate of fluid.
*
* @param flowunit Supported units are kg/sec, kg/min, kg/hr, kg/day, m3/sec, m3/min, m3/hr,
* Sm3/sec, Sm3/hr, Sm3/day, MSm3/day, mole/sec, mole/min, mole/hr
* idSm3/hr, Sm3/sec, Sm3/hr, Sm3/day, MSm3/day, mole/sec, mole/min, mole/hr
* @return flow rate in specified unit
*/
public double getFlowRate(String flowunit);
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/neqsim/thermo/system/SystemThermo.java
Original file line number Diff line number Diff line change
Expand Up @@ -735,6 +735,8 @@ public double getFlowRate(String flowunit) {
// return getVolume() / 1.0e5 * 3600.0;
initPhysicalProperties("density");
return totalNumberOfMoles * getMolarMass() * 3600.0 / getDensity("kg/m3");
} else if (flowunit.equals("idSm3/hr")) {
return totalNumberOfMoles * getMolarMass() * 3600.0 / getIdealLiquidDensity("kg/m3");
} else if (flowunit.equals("Sm3/sec")) {
return totalNumberOfMoles * ThermodynamicConstantsInterface.R
* ThermodynamicConstantsInterface.standardStateTemperature / 101325.0;
Expand Down

0 comments on commit 029a4da

Please sign in to comment.