|
10 | 10 | import org.junit.jupiter.api.Test;
|
11 | 11 | import neqsim.pvtsimulation.simulation.SaturationPressure;
|
12 | 12 | import neqsim.thermodynamicoperations.ThermodynamicOperations;
|
| 13 | +import neqsim.util.database.NeqSimDataBase; |
13 | 14 |
|
14 | 15 | class SystemUMRPRUMCEosNewTest extends neqsim.NeqSimTest {
|
15 | 16 | static Logger logger = LogManager.getLogger(SystemUMRPRUMCEosNewTest.class);
|
@@ -273,4 +274,31 @@ public void checkPhaseEnvelope2() throws Exception {
|
273 | 274 | satPresSim.run();
|
274 | 275 | assertEquals(104.7532901763, satPresSim.getThermoSystem().getPressure(), 0.001);
|
275 | 276 | }
|
| 277 | + |
| 278 | + /** |
| 279 | + * <p> |
| 280 | + * checkPhaseEnvelope2. |
| 281 | + * </p> |
| 282 | + * |
| 283 | + * @throws Exception |
| 284 | + */ |
| 285 | + @Test |
| 286 | + @DisplayName("test UMR with pseudo comp") |
| 287 | + public void testPseudoComptest() { |
| 288 | + NeqSimDataBase.setCreateTemporaryTables(true); |
| 289 | + SystemInterface testSystem = new SystemUMRPRUMCEos(273.15 + 15, 10.0); |
| 290 | + ThermodynamicOperations testOps = new ThermodynamicOperations(testSystem); |
| 291 | + testSystem.addComponent("methane", 80); |
| 292 | + testSystem.addTBPfraction("C7", .0010, 85.5 / 1000.0, 0.66533); |
| 293 | + testSystem.createDatabase(true); |
| 294 | + testSystem.setMixingRule("HV", "UNIFAC_UMRPRU"); |
| 295 | + NeqSimDataBase.setCreateTemporaryTables(false); |
| 296 | + try { |
| 297 | + testOps.TPflash(); |
| 298 | + } catch (Exception ex) { |
| 299 | + logger.error(ex.getMessage(), ex); |
| 300 | + } |
| 301 | + testSystem.initPhysicalProperties("density"); |
| 302 | + assertEquals(6.84959007, testSystem.getDensity("kg/m3"), 0.00001); |
| 303 | + } |
276 | 304 | }
|
0 commit comments