-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove seldom used libraries from fatjar (#294)
* Update pom.xml * updates to energy calc of stream
- Loading branch information
Showing
4 changed files
with
66 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
54 changes: 54 additions & 0 deletions
54
src/test/java/neqsim/processSimulation/processEquipment/stream/StreamTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
/** | ||
* | ||
*/ | ||
package neqsim.processSimulation.processEquipment.stream; | ||
|
||
import static org.junit.jupiter.api.Assertions.*; | ||
|
||
import org.junit.jupiter.api.BeforeAll; | ||
import org.junit.jupiter.api.BeforeEach; | ||
import org.junit.jupiter.api.Test; | ||
|
||
import neqsim.processSimulation.processSystem.ProcessSystem; | ||
import neqsim.standards.gasQuality.Standard_ISO6976; | ||
import neqsim.thermo.system.SystemSrkEos; | ||
import neqsim.thermo.system.SystemSrkEos; | ||
import neqsim.processSimulation.processEquipment.stream.Stream; | ||
import neqsim.processSimulation.processSystem.ProcessSystem; | ||
/** | ||
* @author ESOL | ||
* | ||
*/ | ||
class StreamTest { | ||
static neqsim.thermo.system.SystemInterface testSystem = null; | ||
double pressure_inlet = 85.0; | ||
double temperature_inlet = 35.0; | ||
double gasFlowRate = 5.0; | ||
ProcessSystem processOps = null; | ||
/** | ||
* @throws java.lang.Exception | ||
*/ | ||
@BeforeEach | ||
public void setUpBeforeClass() throws Exception { | ||
testSystem = new SystemSrkEos(298.0, 10.0); | ||
testSystem.addComponent("methane", 100.0); | ||
processOps = new ProcessSystem(); | ||
Stream inletStream = new Stream(testSystem); | ||
inletStream.setName("inlet stream"); | ||
inletStream.setPressure(pressure_inlet, "bara"); | ||
inletStream.setTemperature(temperature_inlet, "C"); | ||
inletStream.setFlowRate(gasFlowRate, "MSm3/day"); | ||
|
||
processOps.add(inletStream); | ||
processOps.run(); | ||
} | ||
|
||
@Test | ||
public void testLCV() { | ||
processOps.run(); | ||
((Stream)processOps.getUnit("inlet stream")).LCV(); | ||
assertEquals(3.58980282482032E7, ((Stream)processOps.getUnit("inlet stream")).LCV(), 1.0); | ||
// 18978 J/Sm3 | ||
} | ||
|
||
} |