Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
EvenSol committed Dec 31, 2024
1 parent e4015aa commit 176b694
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ public static void main(String[] args) {
SystemInterface tempSystem = new SystemSrkEos(298.0, 10.0);
tempSystem.addComponent("methane", 6.78);

tempSystem.addTBPfraction("C19", 10.13, 170.0 / 1000.0, 0.7814);
tempSystem.addTBPfraction(false);"C19", 10.13, 170.0 / 1000.0, 0.7814);
tempSystem.addPlusFraction("C20", 10.62, 381.0 / 1000.0, 0.850871882888);

tempSystem.getCharacterization().characterisePlusFraction();
Expand All @@ -171,7 +171,7 @@ public static void main(String[] args) {
tempSystem.setMultiPhaseCheck(true);
tempSystem.init(0);
tempSystem.init(1);

NeqSimDataBase.setCreateTemporaryTables(false);
WaxFractionSim sepSim = new WaxFractionSim(tempSystem);
double[] temps = {293.15, 283.15, 273.15, 264.15, 263, 262, 261};
double[] pres = {5, 5, 5.0, 5.0, 5.0, 5.0, 5.0};
Expand Down
1 change: 0 additions & 1 deletion src/main/java/neqsim/thermo/system/SystemThermo.java
Original file line number Diff line number Diff line change
Expand Up @@ -1392,7 +1392,6 @@ public void createDatabase(boolean reset) {

try (neqsim.util.database.NeqSimDataBase database = new neqsim.util.database.NeqSimDataBase()) {
String names = new String();
NeqSimDataBase.setCreateTemporaryTables(reset);
for (int k = 0; k < getPhase(0).getNumberOfComponents() - 1; k++) {
names += "'" + this.getComponentNames()[k] + "', ";
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ void testRunCalc() {
tempSystem.addSolidComplexPhase("wax");
tempSystem.setMultiphaseWaxCheck(true);
tempSystem.setMultiPhaseCheck(true);
NeqSimDataBase.setCreateTemporaryTables(false);
WaxFractionSim sepSim = new WaxFractionSim(tempSystem);
double[] temps = {293.15, 283.15, 273.15, 264.15, 263, 262, 261};
double[] pres = {5, 5, 5.0, 5.0, 5.0, 5.0, 5.0};
Expand All @@ -43,6 +44,7 @@ void testRunCalc2() {
tempSystem.addSolidComplexPhase("wax");
tempSystem.setMultiphaseWaxCheck(true);
tempSystem.setMultiPhaseCheck(true);
NeqSimDataBase.setCreateTemporaryTables(false);
tempSystem.init(0);
tempSystem.init(1);
WaxFractionSim sepSim = new WaxFractionSim(tempSystem);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import org.junit.jupiter.api.Test;
import neqsim.pvtsimulation.simulation.SaturationPressure;
import neqsim.thermodynamicoperations.ThermodynamicOperations;
import neqsim.util.database.NeqSimDataBase;

class SystemUMRPRUMCEosNewTest extends neqsim.NeqSimTest {
static Logger logger = LogManager.getLogger(SystemUMRPRUMCEosNewTest.class);
Expand Down Expand Up @@ -284,12 +285,14 @@ public void checkPhaseEnvelope2() throws Exception {
@Test
@DisplayName("test UMR with pseudo comp")
public void testPseudoComptest() {
NeqSimDataBase.setCreateTemporaryTables(true);
SystemInterface testSystem = new SystemUMRPRUMCEos(273.15 + 15, 10.0);
ThermodynamicOperations testOps = new ThermodynamicOperations(testSystem);
testSystem.addComponent("methane", 80);
testSystem.addTBPfraction("C7", .0010, 85.5 / 1000.0, 0.66533);
testSystem.createDatabase(true);
testSystem.setMixingRule("HV", "UNIFAC_UMRPRU");
NeqSimDataBase.setCreateTemporaryTables(false);
try {
testOps.TPflash();
} catch (Exception ex) {
Expand Down

0 comments on commit 176b694

Please sign in to comment.