Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
EvenSol committed Aug 16, 2023
1 parent 8dbc110 commit 954cde5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/main/java/neqsim/thermo/phase/Phase.java
Original file line number Diff line number Diff line change
Expand Up @@ -1153,6 +1153,7 @@ public double getViscosity(String unit) {
double refViscosity = getViscosity(); // viscosity in kg/msec
double conversionFactor = 1.0;
switch (unit) {
case "Pas":
case "kg/msec":
conversionFactor = 1.0;
break;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/neqsim/thermo/phase/PhaseInterface.java
Original file line number Diff line number Diff line change
Expand Up @@ -1111,7 +1111,7 @@ public default void addMolesChemReac(int component, double dn) {
/**
* method to return viscosity og the phase in a specified unit.
*
* @param unit Supported units are kg/msec, cP (centipoise)
* @param unit Supported units are kg/msec, Pas, cP (centipoise)
* @return viscosity in specified unit
*/
public double getViscosity(String unit);
Expand Down
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 @@ -5,7 +5,7 @@
import neqsim.thermo.ThermodynamicConstantsInterface;
import neqsim.thermo.characterization.WaxModelInterface;
import neqsim.thermo.component.ComponentInterface;
import neqsim.thermo.phase.PhaseInterface;g
import neqsim.thermo.phase.PhaseInterface;
import neqsim.thermo.phase.PhaseType;

/**
Expand Down

0 comments on commit 954cde5

Please sign in to comment.