Skip to content

Commit

Permalink
refact: remove initType from System
Browse files Browse the repository at this point in the history
  • Loading branch information
asmfstatoil committed Nov 25, 2024
1 parent 60f5602 commit 5f5cb0d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 40 deletions.
27 changes: 0 additions & 27 deletions src/main/java/neqsim/thermo/system/SystemInterface.java
Original file line number Diff line number Diff line change
Expand Up @@ -914,15 +914,6 @@ public default double getGamma2() {
*/
public double getIdealLiquidDensity(String unit);

/**
* <p>
* Getter for property initType.
* </p>
*
* @return a int
*/
public int getInitType();

/**
* method to return interfacial tension between two phases.
*
Expand Down Expand Up @@ -1674,15 +1665,6 @@ public default boolean hasSolidPhase() {
return hasPhaseType(PhaseType.SOLID); // || hasPhaseType(PhaseType.SOLIDCOMPLEX);
}

/**
* Calculate thermodynamic properties of the fluid using the init type set in fluid.
*
* @see getInitType
*/
public default void init() {
this.init(this.getInitType());
}

/**
* method to calculate thermodynamic properties of the fluid. The temperature, pressure, number of
* phases and composition of the phases will be used as basis for calculation.
Expand Down Expand Up @@ -2269,15 +2251,6 @@ public void setImplementedPressureDeriativesofFugacity(
public void setImplementedTemperatureDeriativesofFugacity(
boolean implementedTemperatureDeriativesofFugacity);

/**
* <p>
* Setter for property initType.
* </p>
*
* @param initType a int
*/
public void setInitType(int initType);

/**
* <p>
* Setter for property <code>maxNumberOfPhases</code>.
Expand Down
13 changes: 0 additions & 13 deletions src/main/java/neqsim/thermo/system/SystemThermo.java
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ public abstract class SystemThermo implements SystemInterface {
private boolean implementedPressureDeriativesofFugacity = true;

private boolean implementedTemperatureDeriativesofFugacity = true;
protected int initType = 3;
protected InterphasePropertiesInterface interfaceProp = null;

// Initialization
Expand Down Expand Up @@ -2255,12 +2254,6 @@ public double getIdealLiquidDensity(String unit) {
}
}

/** {@inheritDoc} */
@Override
public int getInitType() {
return initType;
}

/** {@inheritDoc} */
@Override
public double getInterfacialTension(int phase1, int phase2) {
Expand Down Expand Up @@ -4435,12 +4428,6 @@ public void setImplementedTemperatureDeriativesofFugacity(
this.implementedTemperatureDeriativesofFugacity = implementedTemperatureDeriativesofFugacity;
}

/** {@inheritDoc} */
@Override
public void setInitType(int initType) {
this.initType = initType;
}

/**
* <p>
* setLastTBPasPlus.
Expand Down

0 comments on commit 5f5cb0d

Please sign in to comment.