Skip to content

Commit

Permalink
refact: removed unnecessary code in run (#742)
Browse files Browse the repository at this point in the history
  • Loading branch information
asmfstatoil authored Jun 20, 2023
1 parent 051fd3a commit 264a4b3
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/main/java/neqsim/PVTsimulation/simulation/SlimTubeSim.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,18 @@ public SlimTubeSim(SystemInterface tempSystem, SystemInterface injectionGas) {
public void run() {
slimTubeNodeSystem = new SystemInterface[numberOfSlimTubeNodes + 1];

double totalReferenceNodeVolumeAtStadardConditions = 0;
getThermoSystem().setPressure(1.01325);
getThermoSystem().setTemperature(288.15);
thermoOps.TPflash();
totalReferenceNodeVolumeAtStadardConditions =
getThermoSystem().getPhase(0).getVolume() * numberOfSlimTubeNodes;

if (getThermoSystem().getNumberOfPhases() > 1) {
totalReferenceNodeVolumeAtStadardConditions =
getThermoSystem().getPhase(1).getVolume() * numberOfSlimTubeNodes;
}

/*
* double totalReferenceNodeVolumeAtStadardConditions; if (getThermoSystem().getNumberOfPhases()
* > 1) { totalReferenceNodeVolumeAtStadardConditions =
* getThermoSystem().getPhase(1).getVolume() * numberOfSlimTubeNodes; } else {
* totalReferenceNodeVolumeAtStadardConditions = getThermoSystem().getPhase(0).getVolume() *
* numberOfSlimTubeNodes; }
*/

getThermoSystem().setPressure(getPressure());
getThermoSystem().setTemperature(getTemperature());
Expand All @@ -71,7 +72,6 @@ public void run() {
}

slimTubeNodeSystem[numberOfSlimTubeNodes].reset();
// slimTubeNodeSystem[numberOfSlimTubeNodes].init(0);
slimTubeNodeSystem[numberOfSlimTubeNodes].init(1);

ThermodynamicOperations slimOps0 = new ThermodynamicOperations(slimTubeNodeSystem[0]);
Expand Down

0 comments on commit 264a4b3

Please sign in to comment.