Skip to content

Commit

Permalink
refact: reorder methods system (#961)
Browse files Browse the repository at this point in the history
  • Loading branch information
asmfstatoil authored Mar 19, 2024
1 parent a2bcfbb commit f1970c1
Show file tree
Hide file tree
Showing 7 changed files with 4,492 additions and 4,518 deletions.
2 changes: 1 addition & 1 deletion checkstyle_neqsim.xml
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@
<property name="braceAdjustment" value="2" />
<property name="caseIndent" value="2" />
<property name="throwsIndent" value="4" />
<property name="lineWrappingIndentation" value="4" />
<property name="lineWrappingIndentation" value="2" />
<property name="arrayInitIndent" value="2" />
</module>
<module name="AbbreviationAsWordInName">
Expand Down
26 changes: 0 additions & 26 deletions src/main/java/neqsim/thermo/system/SystemDuanSun.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import neqsim.thermo.phase.PhaseDuanSun;
import neqsim.thermo.phase.PhasePureComponentSolid;
import neqsim.thermo.phase.PhaseSrkEos;
import neqsim.thermodynamicOperations.ThermodynamicOperations;

/**
* This class defines a thermodynamic system using the Duan Sun method used for CO2.
Expand Down Expand Up @@ -82,29 +81,4 @@ public SystemDuanSun clone() {

return clonedSystem;
}

/**
* <p>
* main.
* </p>
*
* @param args an array of {@link java.lang.String} objects
*/
public static void main(String[] args) {
SystemInterface fluid1 = new SystemSrkCPA(298.15, 10.0);

fluid1.addComponent("CO2", 1.0);
fluid1.addComponent("nitrogen", 1.0);
fluid1.addComponent("water", 1.0);
fluid1.addComponent("NaCl", 1.0);
fluid1.setMixingRule(2);

try {
ThermodynamicOperations testOps = new ThermodynamicOperations(fluid1);
testOps.TPflash();
} catch (Exception ex) {
logger.error(ex.getMessage(), ex);
}
fluid1.display();
}
}
Loading

0 comments on commit f1970c1

Please sign in to comment.