Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refact: reorder methods system #961

Merged
merged 1 commit into from
Mar 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading