Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
asmfstatoil committed Nov 25, 2024
1 parent 0d3aea7 commit e19c010
Show file tree
Hide file tree
Showing 143 changed files with 2,291 additions and 1,948 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import neqsim.thermo.system.SystemInterface;
import neqsim.thermo.system.SystemSrkEos;
import neqsim.util.ExcludeFromJacocoGeneratedReport;

/**
* <p>
Expand Down Expand Up @@ -91,6 +92,7 @@ public void run() {
*
* @param args an array of {@link java.lang.String} objects
*/
@ExcludeFromJacocoGeneratedReport
public static void main(String[] args) {
// SystemInterface tempSystem = new SystemSrkCPAstatoil(273.15 + 120, 100.0);
SystemInterface tempSystem = new SystemSrkEos(273.15 + 120, 100.0);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import neqsim.thermo.system.SystemInterface;
import neqsim.thermo.system.SystemSrkEos;
import neqsim.util.ExcludeFromJacocoGeneratedReport;

/**
* <p>
Expand Down Expand Up @@ -81,6 +82,7 @@ public void run() {
*
* @param args an array of {@link java.lang.String} objects
*/
@ExcludeFromJacocoGeneratedReport
public static void main(String[] args) {
SystemInterface tempSystem = new SystemSrkEos(273.15 + 20, 60.0);
tempSystem.addComponent("nitrogen", 0.34);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import neqsim.thermo.phase.PhaseType;
import neqsim.thermo.system.SystemInterface;
import neqsim.thermo.system.SystemSrkEos;
import neqsim.util.ExcludeFromJacocoGeneratedReport;

/**
* <p>
Expand Down Expand Up @@ -100,6 +101,7 @@ && getThermoSystem().getPhase(0).getType() == PhaseType.GAS) {
*
* @param args an array of {@link java.lang.String} objects
*/
@ExcludeFromJacocoGeneratedReport
public static void main(String[] args) {
SystemInterface tempSystem = new SystemSrkEos(298.0, 300.0);
tempSystem.addComponent("nitrogen", 0.64);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import neqsim.thermo.system.SystemInterface;
import neqsim.thermo.system.SystemSrkEos;
import neqsim.thermodynamicoperations.ThermodynamicOperations;
import neqsim.util.ExcludeFromJacocoGeneratedReport;

/**
* <p>
Expand All @@ -22,6 +23,7 @@ public class TPflash_benchmark {
*
* @param args an array of {@link java.lang.String} objects
*/
@ExcludeFromJacocoGeneratedReport
public static void main(String args[]) {
SystemInterface testSystem = new SystemSrkEos(303.15, 35.01325);
// SystemInterface testSystem = new SystemSrkCPAstatoil(303.15, 10.0);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import neqsim.thermo.system.SystemInterface;
import neqsim.thermo.system.SystemUMRPRUMCEos;
import neqsim.thermodynamicoperations.ThermodynamicOperations;
import neqsim.util.ExcludeFromJacocoGeneratedReport;

/**
* <p>
Expand All @@ -23,6 +24,7 @@ public class TPflash_benchmark_UMR {
* @param args an array of {@link java.lang.String} objects
*/
@SuppressWarnings("unused")
@ExcludeFromJacocoGeneratedReport
public static void main(String args[]) {
double[][] points;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package neqsim.thermo.util.empiric;

import neqsim.thermo.ThermodynamicConstantsInterface;
import neqsim.util.ExcludeFromJacocoGeneratedReport;

/**
* <p>
Expand Down Expand Up @@ -76,6 +77,7 @@ public static double waterDewPointTemperature(double moleFractionWaterInGas, dou
*
* @param args an array of {@link java.lang.String} objects
*/
@ExcludeFromJacocoGeneratedReport
public static void main(String[] args) {
System.out.println("water in gas " + BukacekWaterInGas.getWaterInGas(273.15 - 18.0, 70.0));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import org.apache.logging.log4j.Logger;
import neqsim.mathlib.nonlinearsolver.NewtonRhapson;
import neqsim.thermo.system.SystemInterface;
import neqsim.util.ExcludeFromJacocoGeneratedReport;

/**
* <p>
Expand Down Expand Up @@ -502,6 +503,7 @@ public void solve(int np) {
*
* @param args an array of {@link java.lang.String} objects
*/
@ExcludeFromJacocoGeneratedReport
public static void main(String[] args) {
/*
* sysNewtonRhapson test=new sysNewtonRhapson(); double[] constants = new double[]{0.4,0.4};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,38 +3,44 @@
import neqsim.thermo.system.SystemInterface;
import neqsim.thermo.system.SystemSrkEos;
import neqsim.thermodynamicoperations.ThermodynamicOperations;
import neqsim.util.ExcludeFromJacocoGeneratedReport;

/**
* <p>NaturalGasCombustion class.</p>
* <p>
* NaturalGasCombustion class.
* </p>
*
* @author asmund
* @version $Id: $Id
* @since 2.2.3
*/
public class NaturalGasCombustion extends neqsim.NeqSimTest{
/**
* <p>main.</p>
*
* @param args an array of {@link java.lang.String} objects
*/
@SuppressWarnings("unused")
public static void main(String[] args) {
SystemInterface testSystem = new SystemSrkEos(303.3, 2.8);
public class NaturalGasCombustion extends neqsim.NeqSimTest {
/**
* <p>
* main.
* </p>
*
* @param args an array of {@link java.lang.String} objects
*/
@SuppressWarnings("unused")
@ExcludeFromJacocoGeneratedReport
public static void main(String[] args) {
SystemInterface testSystem = new SystemSrkEos(303.3, 2.8);

testSystem.addComponent("methane", 5.0, "kg/sec");
// testSystem.addComponent("nitrogen", 100.0, "kg/sec");
testSystem.addComponent("oxygen", 40.0, "kg/sec");
testSystem.chemicalReactionInit();
testSystem.addComponent("methane", 5.0, "kg/sec");
// testSystem.addComponent("nitrogen", 100.0, "kg/sec");
testSystem.addComponent("oxygen", 40.0, "kg/sec");
testSystem.chemicalReactionInit();

testSystem.createDatabase(true);
testSystem.setMixingRule(2);
testSystem.init(0);
testSystem.setMaxNumberOfPhases(1);
testSystem.setNumberOfPhases(1);
testSystem.getChemicalReactionOperations().solveChemEq(0, 0);
// testSystem.getChemicalReactionOperations().solveChemEq(0,1);
testSystem.display();
ThermodynamicOperations ops = new ThermodynamicOperations(testSystem);
// ops.compustionCalc();
}
testSystem.createDatabase(true);
testSystem.setMixingRule(2);
testSystem.init(0);
testSystem.setMaxNumberOfPhases(1);
testSystem.setNumberOfPhases(1);
testSystem.getChemicalReactionOperations().solveChemEq(0, 0);
// testSystem.getChemicalReactionOperations().solveChemEq(0,1);
testSystem.display();
ThermodynamicOperations ops = new ThermodynamicOperations(testSystem);
// ops.compustionCalc();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import neqsim.process.processmodel.ProcessSystem;
import neqsim.thermo.system.SystemInterface;
import neqsim.thermo.system.SystemSrkEos;
import neqsim.util.ExcludeFromJacocoGeneratedReport;

/**
* <p>
Expand All @@ -23,6 +24,7 @@ public class WettedWall_CO2_water extends neqsim.NeqSimTest {
*
* @param args an array of {@link java.lang.String} objects
*/
@ExcludeFromJacocoGeneratedReport
public static void main(String args[]) {
SystemInterface testSystem = new SystemSrkEos((273.15 + 5.0), 45.00);
testSystem.addComponent("methane", 0.15, 0);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import neqsim.thermo.system.SystemInterface;
import neqsim.thermo.system.SystemSrkCPAstatoil;
import neqsim.thermodynamicoperations.ThermodynamicOperations;
import neqsim.util.ExcludeFromJacocoGeneratedReport;

/**
* <p>
Expand All @@ -26,6 +27,7 @@ public class TPflashTest {
* @param args an array of {@link java.lang.String} objects
*/
@SuppressWarnings("unused")
@ExcludeFromJacocoGeneratedReport
public static void main(String args[]) {
SystemInterface testSystem = new SystemSrkCPAstatoil(273.15 + 20, 30.0);
// SystemInterface testSystem = new SystemSrkCPAstatoil(273.15+20, 1.0);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import neqsim.thermo.system.SystemInterface;
import neqsim.thermo.system.SystemSrkCPAstatoil;
import neqsim.thermodynamicoperations.ThermodynamicOperations;
import neqsim.util.ExcludeFromJacocoGeneratedReport;

/**
* <p>
Expand All @@ -25,6 +26,7 @@ public class TPflashWater {
*
* @param args an array of {@link java.lang.String} objects
*/
@ExcludeFromJacocoGeneratedReport
public static void main(String args[]) {
SystemInterface testSystem = new SystemSrkCPAstatoil(273.15 + 40.0, 100.01325);
ThermodynamicOperations testOps = new ThermodynamicOperations(testSystem);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import neqsim.thermo.system.SystemInterface;
import neqsim.thermo.system.SystemSrkEos;
import neqsim.thermodynamicoperations.ThermodynamicOperations;
import neqsim.util.ExcludeFromJacocoGeneratedReport;

/**
* <p>
Expand All @@ -25,6 +26,7 @@ public class TPflash_1 {
*
* @param args an array of {@link java.lang.String} objects
*/
@ExcludeFromJacocoGeneratedReport
public static void main(String args[]) {
SystemInterface testSystem = new SystemSrkEos(273.15 + 55, 100.0);
ThermodynamicOperations testOps = new ThermodynamicOperations(testSystem);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import neqsim.thermo.system.SystemInterface;
import neqsim.thermo.system.SystemPrEos;
import neqsim.thermodynamicoperations.ThermodynamicOperations;
import neqsim.util.ExcludeFromJacocoGeneratedReport;

/**
* <p>
Expand All @@ -27,6 +28,7 @@ public class TestCondensate {
*
* @param args an array of {@link java.lang.String} objects
*/
@ExcludeFromJacocoGeneratedReport
public static void main(String args[]) {
// SystemInterface testSystem = new SystemSrkEos(273.15 + 15.0,
// ThermodynamicConstantsInterface.referencePressure);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import neqsim.thermo.system.SystemInterface;
import neqsim.thermo.system.SystemSrkEos;
import neqsim.thermodynamicoperations.ThermodynamicOperations;
import neqsim.util.ExcludeFromJacocoGeneratedReport;

/**
* <p>
Expand All @@ -25,6 +26,7 @@ public class TestDiffusionCoefficient {
*
* @param args an array of {@link java.lang.String} objects
*/
@ExcludeFromJacocoGeneratedReport
public static void main(String args[]) {
SystemInterface testSystem = new SystemSrkEos(273.15 + 28.66, 12.2);
testSystem.addComponent("nitrogen", 0.037);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import neqsim.thermo.system.SystemInterface;
import neqsim.thermo.system.SystemSrkEos;
import neqsim.thermodynamicoperations.ThermodynamicOperations;
import neqsim.util.ExcludeFromJacocoGeneratedReport;

/**
* <p>
Expand All @@ -25,6 +26,7 @@ public class TestSolidAdsorption {
*
* @param args an array of {@link java.lang.String} objects
*/
@ExcludeFromJacocoGeneratedReport
public static void main(String args[]) {
SystemInterface testSystem = new SystemSrkEos(288.15, 1.4);
testSystem.addComponent("methane", 1.0);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import neqsim.thermo.system.SystemInterface;
import neqsim.thermo.system.SystemSrkEos;
import neqsim.thermodynamicoperations.ThermodynamicOperations;
import neqsim.util.ExcludeFromJacocoGeneratedReport;

/**
* <p>
Expand All @@ -25,6 +26,7 @@ public class TestSurfaceTenison {
*
* @param args an array of {@link java.lang.String} objects
*/
@ExcludeFromJacocoGeneratedReport
public static void main(String args[]) {
SystemInterface testSystem = new SystemSrkEos(273.15 + 28.66, 12.2);
// SystemInterface testSystem = new SystemPrEos(273.15 + 10.0, 50.0);
Expand Down
Loading

0 comments on commit e19c010

Please sign in to comment.