Skip to content

Commit

Permalink
test: test more
Browse files Browse the repository at this point in the history
  • Loading branch information
asmfstatoil committed Oct 25, 2024
1 parent aef6e0d commit 538fb10
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

import static org.junit.jupiter.api.Assertions.assertEquals;
import org.junit.jupiter.api.Test;
import neqsim.thermo.phase.PhaseType;
import neqsim.thermo.system.SystemInterface;
import neqsim.thermo.system.SystemPrEos;

public class PhysicalPropertyTypeTest {
@Test
Expand All @@ -17,5 +20,12 @@ void testValueOf() {
assertEquals(PhysicalPropertyType.DENSITY, PhysicalPropertyType.valueOf("DENSITY"));
assertEquals(PhysicalPropertyType.DENSITY,
PhysicalPropertyType.valueOf("density".toUpperCase()));

SystemInterface thermoSystem = new SystemPrEos(318.0, 20.01325);
thermoSystem.addComponent("CO2", 1.0);
thermoSystem.init(0);
thermoSystem.init(1);
thermoSystem.initPhysicalProperties("DENSITY");
thermoSystem.getPhase(PhaseType.GAS).initPhysicalProperties("viscosity");
}
}

0 comments on commit 538fb10

Please sign in to comment.