Skip to content

Commit

Permalink
Update SystemThermo.java
Browse files Browse the repository at this point in the history
  • Loading branch information
EvenSol authored Sep 8, 2024
1 parent 8bfa9dd commit 0f1f13f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/java/neqsim/thermo/system/SystemThermo.java
Original file line number Diff line number Diff line change
Expand Up @@ -1998,6 +1998,8 @@ public double getEnthalpy(String unit) {
conversionFactor = 0.00094781712;
break;
case "kJ/kmol":
conversionFactor = 1.0 / getTotalNumberOfMoles()/1000.0;
break;
case "J/mol":
conversionFactor = 1.0 / getTotalNumberOfMoles();
break;
Expand Down Expand Up @@ -2038,6 +2040,9 @@ public double getEntropy(String unit) {
case "J/molK":
conversionFactor = 1.0 / getTotalNumberOfMoles();
break;
case "kJ/molK":
conversionFactor = 1.0 / getTotalNumberOfMoles()/1000.0;
break;
case "J/kgK":
conversionFactor = 1.0 / getTotalNumberOfMoles() / getMolarMass();
break;
Expand Down

0 comments on commit 0f1f13f

Please sign in to comment.