From fb31f035e75fcf6cf02c2758922d11c5c9aa12b9 Mon Sep 17 00:00:00 2001 From: Sviatoslav Eroshkin <109044598+Sviatose@users.noreply.github.com> Date: Mon, 28 Jul 2025 14:07:55 +0000 Subject: [PATCH] feat: UMR --- .../system/SystemUMRPRUMCEosNewTest.java | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/src/test/java/neqsim/thermo/system/SystemUMRPRUMCEosNewTest.java b/src/test/java/neqsim/thermo/system/SystemUMRPRUMCEosNewTest.java index b246a654de..bceb583bd0 100644 --- a/src/test/java/neqsim/thermo/system/SystemUMRPRUMCEosNewTest.java +++ b/src/test/java/neqsim/thermo/system/SystemUMRPRUMCEosNewTest.java @@ -303,4 +303,23 @@ public void testPseudoComptest() { testSystem.initPhysicalProperties("density"); assertEquals(6.84959007, testSystem.getDensity("kg/m3"), 0.00001); } + + + @Test + void testWithTBPfraction() { + neqsim.util.database.NeqSimDataBase.setCreateTemporaryTables(true); + + neqsim.thermo.system.SystemInterface fluid0_HC = new neqsim.thermo.system.SystemUMRPRUMCEos(288, 50); + fluid0_HC.addComponent("nitrogen", 2.5); + fluid0_HC.addComponent("CO2", 4.5); + fluid0_HC.addComponent("methane", 79.45); + fluid0_HC.addComponent("ethane", 10); + fluid0_HC.addTBPfraction4("C10", 0.05, 0.25, 0.6, 600); + fluid0_HC.createDatabase(true); + fluid0_HC.setMixingRule("HV", "UNIFAC_UMRPRU"); + neqsim.thermodynamicoperations.ThermodynamicOperations testOps = new neqsim.thermodynamicoperations.ThermodynamicOperations(fluid0_HC); + testOps.TPflash(); + fluid0_HC.prettyPrint(); + } + }