From 85fcdb8ac3f5e1f719fd85868bf353f8e1d232a5 Mon Sep 17 00:00:00 2001
From: Even Solbraa <41290109+EvenSol@users.noreply.github.com>
Date: Tue, 12 Jul 2022 23:16:43 +0200
Subject: [PATCH] removed references to NETCDF and iTEXT (#466)
---
pom.xml | 22 --
.../fileHandeling/createNetCDF/NetCdf.java | 140 ----------
.../createNetCDF/netCDF2D/NetCdf2D.java | 150 -----------
.../createNetCDF/netCDF3D/NetCdf3D.java | 144 ----------
.../dataPresentation/iTextPDF/PdfCreator.java | 82 ------
.../statistical2DPlot/lineFitPlot.java | 250 ------------------
.../visAD/visAd2D/visAd2dBaseClass.java | 223 ----------------
.../visAD/visAd2D/visAdContourPlot.java | 179 -------------
.../statistical3DPlot/surfaceFitPlot.java | 206 ---------------
.../visAD/visAd3D/visAd3DPlot.java | 229 ----------------
.../visAD/visAd3D/visAd3dBaseClass.java | 22 --
.../visAD/visAdBaseClass.java | 32 ---
.../visAD/visAdInterface.java | 29 --
.../PipeFlowVisualization.java | 9 +-
.../TwoPhasePipeFlowVisualization.java | 5 +-
.../diffusivity/TestDiffusivity.java | 2 +-
.../parameterFitting/StatisticsBaseClass.java | 41 +--
.../parameterFitting/StatisticsInterface.java | 2 +-
.../neqsim/thermo/system/SystemInterface.java | 18 --
.../neqsim/thermo/system/SystemThermo.java | 45 ----
...arameterFittingToSolubilityData_Lucia.java | 2 +-
...AParameterFittingToSolubilityGlycolHC.java | 2 +-
...ParameterFittingToSolubilityDataEinar.java | 2 +-
.../TestSolidAntoine.java | 2 +-
.../TestIonicInteractionParameterFitting.java | 2 +-
...stIonicInteractionParameterFittingCH4.java | 2 +-
...nicInteractionParameterFittingCo2nacl.java | 2 +-
...ractionParameterFittingMDEAPiperazine.java | 2 +-
...InteractionParameterFittingPiperazine.java | 2 +-
.../AntoineParameter/TestSolidAntoine.java | 4 +-
.../AntoineParameter/TestSolidAntoine_S8.java | 4 +-
.../TestFurstIonicParameterFunction.java | 2 +-
.../BaseOperation.java | 4 +-
.../OperationInterface.java | 2 +-
.../ThermodynamicOperations.java | 2 +
.../ChemicalEquilibrium.java | 3 +-
.../flashOps/Flash.java | 3 +-
.../saturationOps/constantDutyFlash.java | 3 +-
.../HPTphaseEnvelope.java | 6 +-
.../pTphaseEnvelope.java | 7 +-
.../pTphaseEnvelope1.java | 7 +-
.../pTphaseEnvelopeMay.java | 7 +-
.../pTphaseEnvelopeNew.java | 7 +-
.../reactiveCurves/pLoadingCurve.java | 18 --
.../reactiveCurves/pLoadingCurve2.java | 4 +-
45 files changed, 60 insertions(+), 1871 deletions(-)
delete mode 100644 src/main/java/neqsim/dataPresentation/fileHandeling/createNetCDF/NetCdf.java
delete mode 100644 src/main/java/neqsim/dataPresentation/fileHandeling/createNetCDF/netCDF2D/NetCdf2D.java
delete mode 100644 src/main/java/neqsim/dataPresentation/fileHandeling/createNetCDF/netCDF3D/NetCdf3D.java
delete mode 100644 src/main/java/neqsim/dataPresentation/iTextPDF/PdfCreator.java
delete mode 100644 src/main/java/neqsim/dataPresentation/visAD/visAd2D/statistical2DPlot/lineFitPlot.java
delete mode 100644 src/main/java/neqsim/dataPresentation/visAD/visAd2D/visAd2dBaseClass.java
delete mode 100644 src/main/java/neqsim/dataPresentation/visAD/visAd2D/visAdContourPlot.java
delete mode 100644 src/main/java/neqsim/dataPresentation/visAD/visAd3D/statistical3DPlot/surfaceFitPlot.java
delete mode 100644 src/main/java/neqsim/dataPresentation/visAD/visAd3D/visAd3DPlot.java
delete mode 100644 src/main/java/neqsim/dataPresentation/visAD/visAd3D/visAd3dBaseClass.java
delete mode 100644 src/main/java/neqsim/dataPresentation/visAD/visAdBaseClass.java
delete mode 100644 src/main/java/neqsim/dataPresentation/visAD/visAdInterface.java
diff --git a/pom.xml b/pom.xml
index 7384997bab..10d524871b 100644
--- a/pom.xml
+++ b/pom.xml
@@ -20,11 +20,6 @@
- * NetCdf class.
- *
- * Constructor for NetCdf.
- *
- * setOutputFileName.
- *
- * Setter for the field
- * Setter for the field
- * Setter for the field
- * createFile.
- *
- * NetCdf2D class.
- *
- * Constructor for NetCdf2D.
- *
- * setOutputFileName.
- *
- * Setter for the field
- * Setter for the field
- * createFile.
- *
- * main.
- *
- * NetCdf3D class.
- *
- * Constructor for NetCdf3D.
- *
- * setOutputFileName.
- *
- * Setter for the field
- * Setter for the field
- * Setter for the field
- * createFile.
- *
- * PdfCreator class.
- *
- * Getter for the field
- * closeDocument.
- *
- * generatePDF.
- *
- * openPDF.
- *
- * lineFitPlot class.
- *
- * Constructor for lineFitPlot.
- *
- * setXYVals.
- *
- * setXYVals2.
- *
- * setLineXYVals.
- *
- * init.
- *
- * main.
- *
- * visAd2dBaseClass class.
- *
- * Constructor for visAd2dBaseClass.
- *
- * setXYVals.
- *
- * setLineXYVals.
- *
- * main.
- *
- * visAdContourPlot class.
- *
- * Constructor for visAdContourPlot.
- *
- * setXYvals.
- *
- * setZvals.
- *
- * init.
- *
- * main.
- *
- * surfaceFitPlot class.
- *
- * Constructor for surfaceFitPlot.
- *
- * setXYvals.
- *
- * setZvals.
- *
- * init.
- *
- * main.
- *
- * visAd3DPlot class.
- *
- * Constructor for visAd3DPlot.
- *
- * setXYvals.
- *
- * setXYvals.
- * xvalues
.
- * yvalues
.
- * zvalues
.
- * xvalues
.
- * yvalues
.
- * xvalues
.
- * yvalues
.
- * zvalues
.
- * document
.
- *
- * main. - *
- * - * @param args an array of {@link java.lang.String} objects - * @throws java.rmi.RemoteException if any. - * @throws visad.VisADException if any. - */ - public static void main(String[] args) throws RemoteException, VisADException { - visAd3DPlot test = new visAd3DPlot("long", "alt", "height"); - test.setXYvals(0, 10, 4, 0, 10, 4); - - double[][] z = {{3, 2, 1, 3,}, {2, 6, 4, 1,}, {1, 3, 2, 1,}, {3, 2, 1, 3,}}; - - test.setZvals(z); - test.init(); - } -} diff --git a/src/main/java/neqsim/dataPresentation/visAD/visAd3D/visAd3dBaseClass.java b/src/main/java/neqsim/dataPresentation/visAD/visAd3D/visAd3dBaseClass.java deleted file mode 100644 index 08516a8cc6..0000000000 --- a/src/main/java/neqsim/dataPresentation/visAD/visAd3D/visAd3dBaseClass.java +++ /dev/null @@ -1,22 +0,0 @@ -package neqsim.dataPresentation.visAD.visAd3D; - -import neqsim.dataPresentation.visAD.visAdBaseClass; - -/** - *- * visAd3dBaseClass class. - *
- * - * @author esol - * @version $Id: $Id - */ -public class visAd3dBaseClass extends visAdBaseClass { - private static final long serialVersionUID = 1000; - - /** - *- * Constructor for visAd3dBaseClass. - *
- */ - public visAd3dBaseClass() {} -} diff --git a/src/main/java/neqsim/dataPresentation/visAD/visAdBaseClass.java b/src/main/java/neqsim/dataPresentation/visAD/visAdBaseClass.java deleted file mode 100644 index d578d64683..0000000000 --- a/src/main/java/neqsim/dataPresentation/visAD/visAdBaseClass.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * visAdBaseClass.java - * - * Created on 24. mai 2001, 19:46 - */ -package neqsim.dataPresentation.visAD; - -import java.rmi.RemoteException; -import visad.VisADException; - -/** - *- * visAdBaseClass class. - *
- * - * @author esol - * @version $Id: $Id - */ -public class visAdBaseClass implements visAdInterface, java.io.Serializable { - private static final long serialVersionUID = 1000; - - /** - *- * Constructor for visAdBaseClass. - *
- */ - public visAdBaseClass() {} - - /** {@inheritDoc} */ - @Override - public void init() throws RemoteException, VisADException {} -} diff --git a/src/main/java/neqsim/dataPresentation/visAD/visAdInterface.java b/src/main/java/neqsim/dataPresentation/visAD/visAdInterface.java deleted file mode 100644 index f489e765cb..0000000000 --- a/src/main/java/neqsim/dataPresentation/visAD/visAdInterface.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * visAdInterface.java - * - * Created on 24. mai 2001, 19:50 - */ -package neqsim.dataPresentation.visAD; - -import java.rmi.RemoteException; -import visad.*; - -/** - *- * visAdInterface interface. - *
- * - * @author esol - * @version $Id: $Id - */ -public interface visAdInterface { - /** - *- * init. - *
- * - * @throws java.rmi.RemoteException if any. - * @throws visad.VisADException if any. - */ - public void init() throws RemoteException, VisADException; -} diff --git a/src/main/java/neqsim/fluidMechanics/util/fluidMechanicsVisualization/flowSystemVisualization/onePhaseFlowVisualization/pipeFlowVisualization/PipeFlowVisualization.java b/src/main/java/neqsim/fluidMechanics/util/fluidMechanicsVisualization/flowSystemVisualization/onePhaseFlowVisualization/pipeFlowVisualization/PipeFlowVisualization.java index d096ff802e..ca4759d384 100644 --- a/src/main/java/neqsim/fluidMechanics/util/fluidMechanicsVisualization/flowSystemVisualization/onePhaseFlowVisualization/pipeFlowVisualization/PipeFlowVisualization.java +++ b/src/main/java/neqsim/fluidMechanics/util/fluidMechanicsVisualization/flowSystemVisualization/onePhaseFlowVisualization/pipeFlowVisualization/PipeFlowVisualization.java @@ -21,7 +21,6 @@ public class PipeFlowVisualization extends public double[][][] bulkComposition; double[] xPlace = new double[10]; double[] timeArray = new double[10]; - neqsim.dataPresentation.visAD.visAdInterface plot; /** *@@ -101,7 +100,7 @@ public void calcPoints(String name) { if (name.equals("composition")) { points = bulkComposition[0]; } - +/* try { System.out.println("points: " + points.length); @@ -125,6 +124,7 @@ public void calcPoints(String name) { System.out.println(e.toString()); System.out.println("plotting failed"); } + */ } /** {@inheritDoc} */ @@ -145,7 +145,7 @@ public void displayResult(String name) { if (name.equals("composition")) { points = bulkComposition[0]; } - +/* try { System.out.println("points: " + points.length); @@ -170,9 +170,11 @@ public void displayResult(String name) { System.out.println(e.toString()); System.out.println("plotting failed"); } + */ } /** {@inheritDoc} */ + /* @Override public void createNetCdfFile(String name) { calcPoints(name); @@ -191,4 +193,5 @@ public void createNetCdfFile(String name) { } file.createFile(); } + */ } diff --git a/src/main/java/neqsim/fluidMechanics/util/fluidMechanicsVisualization/flowSystemVisualization/twoPhaseFlowVisualization/twoPhasePipeFlowVisualization/TwoPhasePipeFlowVisualization.java b/src/main/java/neqsim/fluidMechanics/util/fluidMechanicsVisualization/flowSystemVisualization/twoPhaseFlowVisualization/twoPhasePipeFlowVisualization/TwoPhasePipeFlowVisualization.java index c2bf588695..1a4ec9c527 100644 --- a/src/main/java/neqsim/fluidMechanics/util/fluidMechanicsVisualization/flowSystemVisualization/twoPhaseFlowVisualization/twoPhasePipeFlowVisualization/TwoPhasePipeFlowVisualization.java +++ b/src/main/java/neqsim/fluidMechanics/util/fluidMechanicsVisualization/flowSystemVisualization/twoPhaseFlowVisualization/twoPhasePipeFlowVisualization/TwoPhasePipeFlowVisualization.java @@ -1,6 +1,5 @@ package neqsim.fluidMechanics.util.fluidMechanicsVisualization.flowSystemVisualization.twoPhaseFlowVisualization.twoPhasePipeFlowVisualization; -import neqsim.dataPresentation.visAD.visAdInterface; import neqsim.fluidMechanics.flowSystem.FlowSystem; import neqsim.fluidMechanics.util.fluidMechanicsVisualization.flowNodeVisualization.twoPhaseFlowNodeVisualization.TwoPhaseFlowNodeVisualization; @@ -30,7 +29,6 @@ public class TwoPhasePipeFlowVisualization extends public double[][][][] totalVolumetricMassTransferRate; double[] xPlace = new double[10]; double[] timeArray = new double[10]; - visAdInterface plot; /** *
@@ -162,7 +160,9 @@ public void displayResult(String name) { // file.createFile(); // } + /** {@inheritDoc} */ + /* @Override public void createNetCdfFile(String name) { setPoints(); @@ -206,4 +206,5 @@ public void createNetCdfFile(String name) { // file.setYvalues(temperaturePoint[0][0], "time","sec"); file.createFile(); } + */ } diff --git a/src/main/java/neqsim/physicalProperties/util/parameterFitting/binaryComponentParameterFitting/diffusivity/TestDiffusivity.java b/src/main/java/neqsim/physicalProperties/util/parameterFitting/binaryComponentParameterFitting/diffusivity/TestDiffusivity.java index def8bc74b2..f7f7fa5d61 100644 --- a/src/main/java/neqsim/physicalProperties/util/parameterFitting/binaryComponentParameterFitting/diffusivity/TestDiffusivity.java +++ b/src/main/java/neqsim/physicalProperties/util/parameterFitting/binaryComponentParameterFitting/diffusivity/TestDiffusivity.java @@ -77,7 +77,7 @@ public static void main(String[] args) { // do simulations // optim.solve(); // optim.runMonteCarloSimulation(); - optim.displayGraph(); + //optim.displayGraph(); // optim.writeToTextFile("c:/testFit.txt"); } } diff --git a/src/main/java/neqsim/statistics/parameterFitting/StatisticsBaseClass.java b/src/main/java/neqsim/statistics/parameterFitting/StatisticsBaseClass.java index 52f0669af1..4447f6ad15 100644 --- a/src/main/java/neqsim/statistics/parameterFitting/StatisticsBaseClass.java +++ b/src/main/java/neqsim/statistics/parameterFitting/StatisticsBaseClass.java @@ -14,7 +14,6 @@ import javax.swing.JScrollPane; import javax.swing.JTable; import Jama.Matrix; -import neqsim.dataPresentation.visAD.visAd2D.statistical2DPlot.lineFitPlot; /** *
@@ -690,42 +689,6 @@ public void calcDeviation() { 0.5 * chiSquare); } - /** - *
- * displayGraph. - *
- */ - public void displayGraph() { - try { - if (sampleSet.getSample(0).getDependentValues().length <= 1) { - lineFitPlot plot = new lineFitPlot("test", "test"); - plot.setXYVals(xVal[0], calcVal); - // plot.setXYVals2(xVal[0], calcVal); - plot.setLineXYVals(xVal[0], expVal); - plot.init(); - } else { - lineFitPlot plot = new lineFitPlot("test", "test"); - plot.setXYVals(xVal[0], expVal); - // plot.setXYVals2(xVal[0], calcVal); - plot.setLineXYVals(xVal[0], calcVal); - plot.init(); - } - } catch (Exception e) { - } - } - - /** {@inheritDoc} */ - @Override - public void writeToCdfFile(String name) { - neqsim.dataPresentation.fileHandeling.createNetCDF.netCDF2D.NetCdf2D file = - new neqsim.dataPresentation.fileHandeling.createNetCDF.netCDF2D.NetCdf2D(); - file.setOutputFileName(name); - file.setXvalues(xVal[0], "x", "sec"); - file.setYvalues(expVal, "experimental", "meter"); - file.setYvalues(calcVal, "calculated", "meter"); - file.createFile(); - } - /** {@inheritDoc} */ @Override public void writeToTextFile(String name) { @@ -744,7 +707,7 @@ public void writeToTextFile(String name) { public void displaySimple() { calcAbsDev(); try { - displayGraph(); + //displayGraph(); } catch (Exception e) { System.out.println("could not display graph"); e.printStackTrace(); @@ -768,7 +731,7 @@ public void displaySimple() { public void displayCurveFit() { calcAbsDev(); try { - displayGraph(); + //displayGraph(); } catch (Exception e) { System.out.println("could not display graph"); e.printStackTrace(); diff --git a/src/main/java/neqsim/statistics/parameterFitting/StatisticsInterface.java b/src/main/java/neqsim/statistics/parameterFitting/StatisticsInterface.java index ca40abed2e..ca6ac8f765 100644 --- a/src/main/java/neqsim/statistics/parameterFitting/StatisticsInterface.java +++ b/src/main/java/neqsim/statistics/parameterFitting/StatisticsInterface.java @@ -76,7 +76,7 @@ public interface StatisticsInterface { * * @param name a {@link java.lang.String} object */ - public void writeToCdfFile(String name); + //public void writeToCdfFile(String name); /** *diff --git a/src/main/java/neqsim/thermo/system/SystemInterface.java b/src/main/java/neqsim/thermo/system/SystemInterface.java index 3b0d5d4afd..866f701dba 100644 --- a/src/main/java/neqsim/thermo/system/SystemInterface.java +++ b/src/main/java/neqsim/thermo/system/SystemInterface.java @@ -2266,24 +2266,6 @@ public double calcBeta() */ public void saveToDataBase(); - /** - *
- * generatePDF. - *
- * - * @return PdfCreator PdfCreator - */ - public neqsim.dataPresentation.iTextPDF.PdfCreator generatePDF(); - - /** - *- * displayPDF. - *
- */ - public default void displayPDF() { - generatePDF().openPDF(); - } - /** ** getMixingRule. diff --git a/src/main/java/neqsim/thermo/system/SystemThermo.java b/src/main/java/neqsim/thermo/system/SystemThermo.java index d9a5eb7fe5..f1e1ab2292 100644 --- a/src/main/java/neqsim/thermo/system/SystemThermo.java +++ b/src/main/java/neqsim/thermo/system/SystemThermo.java @@ -4111,51 +4111,6 @@ public neqsim.standards.StandardInterface getStandard(String standardName) { return standard; } - /** {@inheritDoc} */ - @Override - public neqsim.dataPresentation.iTextPDF.PdfCreator generatePDF() { - neqsim.dataPresentation.iTextPDF.PdfCreator pdfDocument = null; - pdfDocument = new neqsim.dataPresentation.iTextPDF.PdfCreator(); - pdfDocument.getDocument().addTitle("NeqSim Thermo Simulation Report"); - pdfDocument.getDocument().addKeywords("Temperature "); - - pdfDocument.getDocument().open(); - try { - pdfDocument.getDocument() - .add(new com.lowagie.text.Paragraph("Properties of fluid: " + getFluidName(), - com.lowagie.text.FontFactory.getFont(com.lowagie.text.FontFactory.TIMES_ROMAN, 12))); - - com.lowagie.text.List list = new com.lowagie.text.List(true, 20); - list.add(new com.lowagie.text.ListItem("Thermodynamic model: " + getModelName())); - list.add(new com.lowagie.text.ListItem("Mixing rule: " + getMixingRuleName())); - list.add(new com.lowagie.text.ListItem("Number of phases: " + getNumberOfPhases())); - list.add(new com.lowagie.text.ListItem("Status of calculation: ok")); - pdfDocument.getDocument().add(list); - - com.lowagie.text.Table resTable = - new com.lowagie.text.Table(6, getPhases()[0].getNumberOfComponents() + 30); - String[][] tempTable = createTable(getFluidName()); - for (int i = 0; i < getPhases()[0].getNumberOfComponents() + 30; i++) { - for (int j = 0; j < 6; j++) { - resTable.addCell(tempTable[i][j]); - } - } - pdfDocument.getDocument().add(resTable); - - com.lowagie.text.Anchor anchor = new com.lowagie.text.Anchor("NeqSim Website", - com.lowagie.text.FontFactory.getFont(com.lowagie.text.FontFactory.HELVETICA, 12, - com.lowagie.text.Font.UNDERLINE, new Color(0, 0, 255))); - anchor.setReference("http://www.stud.ntnu.no/~solbraa/neqsim"); - anchor.setName("NeqSim Website"); - - pdfDocument.getDocument().add(anchor); - } catch (Exception e) { - logger.error("error", e); - } - pdfDocument.getDocument().close(); - return pdfDocument; - } - /** * {@inheritDoc} * diff --git a/src/main/java/neqsim/thermo/util/parameterFitting/binaryInteractionParameterFitting/EosInteractionParameterFitting/TestCPAParameterFittingToSolubilityData_Lucia.java b/src/main/java/neqsim/thermo/util/parameterFitting/binaryInteractionParameterFitting/EosInteractionParameterFitting/TestCPAParameterFittingToSolubilityData_Lucia.java index 4d5e586c96..6c6af6ab9f 100644 --- a/src/main/java/neqsim/thermo/util/parameterFitting/binaryInteractionParameterFitting/EosInteractionParameterFitting/TestCPAParameterFittingToSolubilityData_Lucia.java +++ b/src/main/java/neqsim/thermo/util/parameterFitting/binaryInteractionParameterFitting/EosInteractionParameterFitting/TestCPAParameterFittingToSolubilityData_Lucia.java @@ -185,7 +185,7 @@ public static void main(String[] args) { // optim.runMonteCarloSimulation(); // optim.displayResult(); optim.displayCurveFit(); - optim.writeToCdfFile("c:/testFit.nc"); + //optim.writeToCdfFile("c:/testFit.nc"); optim.writeToTextFile("c:/testFit.txt"); } } diff --git a/src/main/java/neqsim/thermo/util/parameterFitting/binaryInteractionParameterFitting/EosInteractionParameterFitting/TestCPAParameterFittingToSolubilityGlycolHC.java b/src/main/java/neqsim/thermo/util/parameterFitting/binaryInteractionParameterFitting/EosInteractionParameterFitting/TestCPAParameterFittingToSolubilityGlycolHC.java index acde6e90aa..9f5ec66852 100644 --- a/src/main/java/neqsim/thermo/util/parameterFitting/binaryInteractionParameterFitting/EosInteractionParameterFitting/TestCPAParameterFittingToSolubilityGlycolHC.java +++ b/src/main/java/neqsim/thermo/util/parameterFitting/binaryInteractionParameterFitting/EosInteractionParameterFitting/TestCPAParameterFittingToSolubilityGlycolHC.java @@ -133,7 +133,7 @@ public static void main(String[] args) { // optim.runMonteCarloSimulation(); // optim.displayResult(); optim.displayCurveFit(); - optim.writeToCdfFile("c:/testFit.nc"); + //optim.writeToCdfFile("c:/testFit.nc"); optim.writeToTextFile("c:/testFit.txt"); } } diff --git a/src/main/java/neqsim/thermo/util/parameterFitting/binaryInteractionParameterFitting/EosInteractionParameterFitting/TestParameterFittingToSolubilityDataEinar.java b/src/main/java/neqsim/thermo/util/parameterFitting/binaryInteractionParameterFitting/EosInteractionParameterFitting/TestParameterFittingToSolubilityDataEinar.java index 5ea8f17f5c..373f9b843f 100644 --- a/src/main/java/neqsim/thermo/util/parameterFitting/binaryInteractionParameterFitting/EosInteractionParameterFitting/TestParameterFittingToSolubilityDataEinar.java +++ b/src/main/java/neqsim/thermo/util/parameterFitting/binaryInteractionParameterFitting/EosInteractionParameterFitting/TestParameterFittingToSolubilityDataEinar.java @@ -80,7 +80,7 @@ public static void main(String[] args) { // optim.runMonteCarloSimulation(); // optim.displayResult(); optim.displayCurveFit(); - optim.writeToCdfFile("c:/testFit.nc"); + //optim.writeToCdfFile("c:/testFit.nc"); optim.writeToTextFile("c:/testFit.txt"); } } diff --git a/src/main/java/neqsim/thermo/util/parameterFitting/binaryInteractionParameterFitting/HuronVidalParameterFitting/TestSolidAntoine.java b/src/main/java/neqsim/thermo/util/parameterFitting/binaryInteractionParameterFitting/HuronVidalParameterFitting/TestSolidAntoine.java index 2f86fbb329..4cb5d76cf0 100644 --- a/src/main/java/neqsim/thermo/util/parameterFitting/binaryInteractionParameterFitting/HuronVidalParameterFitting/TestSolidAntoine.java +++ b/src/main/java/neqsim/thermo/util/parameterFitting/binaryInteractionParameterFitting/HuronVidalParameterFitting/TestSolidAntoine.java @@ -75,7 +75,7 @@ public static void main(String[] args) { optim.solve(); // optim.runMonteCarloSimulation(); optim.displayCurveFit(); - optim.writeToCdfFile("c:/testFit.nc"); + //optim.writeToCdfFile("c:/testFit.nc"); optim.writeToTextFile("c:/testFit.txt"); } } diff --git a/src/main/java/neqsim/thermo/util/parameterFitting/binaryInteractionParameterFitting/ionicInteractionCoefficientFitting/TestIonicInteractionParameterFitting.java b/src/main/java/neqsim/thermo/util/parameterFitting/binaryInteractionParameterFitting/ionicInteractionCoefficientFitting/TestIonicInteractionParameterFitting.java index 7b80e8e3ae..6ec81f20eb 100644 --- a/src/main/java/neqsim/thermo/util/parameterFitting/binaryInteractionParameterFitting/ionicInteractionCoefficientFitting/TestIonicInteractionParameterFitting.java +++ b/src/main/java/neqsim/thermo/util/parameterFitting/binaryInteractionParameterFitting/ionicInteractionCoefficientFitting/TestIonicInteractionParameterFitting.java @@ -278,7 +278,7 @@ public static void main(String[] args) { // optim.displayCurveFit(); // optim.displayGraph(); optim.displayCurveFit(); - optim.writeToCdfFile("c:/testFit.nc"); + //optim.writeToCdfFile("c:/testFit.nc"); optim.writeToTextFile("c:/testFit.txt"); } } diff --git a/src/main/java/neqsim/thermo/util/parameterFitting/binaryInteractionParameterFitting/ionicInteractionCoefficientFitting/TestIonicInteractionParameterFittingCH4.java b/src/main/java/neqsim/thermo/util/parameterFitting/binaryInteractionParameterFitting/ionicInteractionCoefficientFitting/TestIonicInteractionParameterFittingCH4.java index 4b67429060..1c40cf4dd9 100644 --- a/src/main/java/neqsim/thermo/util/parameterFitting/binaryInteractionParameterFitting/ionicInteractionCoefficientFitting/TestIonicInteractionParameterFittingCH4.java +++ b/src/main/java/neqsim/thermo/util/parameterFitting/binaryInteractionParameterFitting/ionicInteractionCoefficientFitting/TestIonicInteractionParameterFittingCH4.java @@ -154,7 +154,7 @@ public static void main(String[] args) { // optim.displayCurveFit(); // optim.displayGraph(); optim.displayCurveFit(); - optim.writeToCdfFile("c:/testFit.nc"); + //optim.writeToCdfFile("c:/testFit.nc"); optim.writeToTextFile("c:/testFit.txt"); } } diff --git a/src/main/java/neqsim/thermo/util/parameterFitting/binaryInteractionParameterFitting/ionicInteractionCoefficientFitting/TestIonicInteractionParameterFittingCo2nacl.java b/src/main/java/neqsim/thermo/util/parameterFitting/binaryInteractionParameterFitting/ionicInteractionCoefficientFitting/TestIonicInteractionParameterFittingCo2nacl.java index 7950906056..0e64b4c7b5 100644 --- a/src/main/java/neqsim/thermo/util/parameterFitting/binaryInteractionParameterFitting/ionicInteractionCoefficientFitting/TestIonicInteractionParameterFittingCo2nacl.java +++ b/src/main/java/neqsim/thermo/util/parameterFitting/binaryInteractionParameterFitting/ionicInteractionCoefficientFitting/TestIonicInteractionParameterFittingCo2nacl.java @@ -93,7 +93,7 @@ public static void main(String[] args) { // optim.displayCurveFit(); // optim.displayGraph(); optim.displayCurveFit(); - optim.writeToCdfFile("c:/testFit.nc"); + //optim.writeToCdfFile("c:/testFit.nc"); optim.writeToTextFile("c:/testFit.txt"); } } diff --git a/src/main/java/neqsim/thermo/util/parameterFitting/binaryInteractionParameterFitting/ionicInteractionCoefficientFitting/TestIonicInteractionParameterFittingMDEAPiperazine.java b/src/main/java/neqsim/thermo/util/parameterFitting/binaryInteractionParameterFitting/ionicInteractionCoefficientFitting/TestIonicInteractionParameterFittingMDEAPiperazine.java index d336968553..7cdc44652e 100644 --- a/src/main/java/neqsim/thermo/util/parameterFitting/binaryInteractionParameterFitting/ionicInteractionCoefficientFitting/TestIonicInteractionParameterFittingMDEAPiperazine.java +++ b/src/main/java/neqsim/thermo/util/parameterFitting/binaryInteractionParameterFitting/ionicInteractionCoefficientFitting/TestIonicInteractionParameterFittingMDEAPiperazine.java @@ -88,7 +88,7 @@ public static void main(String[] args) { // optim.displayCurveFit(); // optim.displayGraph(); optim.displayCurveFit(); - optim.writeToCdfFile("c:/testFit.nc"); + //optim.writeToCdfFile("c:/testFit.nc"); optim.writeToTextFile("c:/testFit.txt"); } } diff --git a/src/main/java/neqsim/thermo/util/parameterFitting/binaryInteractionParameterFitting/ionicInteractionCoefficientFitting/TestIonicInteractionParameterFittingPiperazine.java b/src/main/java/neqsim/thermo/util/parameterFitting/binaryInteractionParameterFitting/ionicInteractionCoefficientFitting/TestIonicInteractionParameterFittingPiperazine.java index 7999683cd7..d8cacfb957 100644 --- a/src/main/java/neqsim/thermo/util/parameterFitting/binaryInteractionParameterFitting/ionicInteractionCoefficientFitting/TestIonicInteractionParameterFittingPiperazine.java +++ b/src/main/java/neqsim/thermo/util/parameterFitting/binaryInteractionParameterFitting/ionicInteractionCoefficientFitting/TestIonicInteractionParameterFittingPiperazine.java @@ -88,7 +88,7 @@ public static void main(String[] args) { // optim.displayCurveFit(); // optim.displayGraph(); optim.displayCurveFit(); - optim.writeToCdfFile("c:/testFit.nc"); + //optim.writeToCdfFile("c:/testFit.nc"); optim.writeToTextFile("c:/testFit.txt"); } } diff --git a/src/main/java/neqsim/thermo/util/parameterFitting/pureComponentParameterFitting/AntoineParameter/TestSolidAntoine.java b/src/main/java/neqsim/thermo/util/parameterFitting/pureComponentParameterFitting/AntoineParameter/TestSolidAntoine.java index 47ebc218b5..34d5798660 100644 --- a/src/main/java/neqsim/thermo/util/parameterFitting/pureComponentParameterFitting/AntoineParameter/TestSolidAntoine.java +++ b/src/main/java/neqsim/thermo/util/parameterFitting/pureComponentParameterFitting/AntoineParameter/TestSolidAntoine.java @@ -80,7 +80,7 @@ public static void main(String[] args) { // optim.solve(); // optim.runMonteCarloSimulation(); optim.displayCurveFit(); - optim.writeToCdfFile("c:/testFit.nc"); - optim.writeToTextFile("c:/testFit.txt"); + //optim.writeToCdfFile("c:/testFit.nc"); + //optim.writeToTextFile("c:/testFit.txt"); } } diff --git a/src/main/java/neqsim/thermo/util/parameterFitting/pureComponentParameterFitting/AntoineParameter/TestSolidAntoine_S8.java b/src/main/java/neqsim/thermo/util/parameterFitting/pureComponentParameterFitting/AntoineParameter/TestSolidAntoine_S8.java index 9778aa152a..abf8f636f9 100644 --- a/src/main/java/neqsim/thermo/util/parameterFitting/pureComponentParameterFitting/AntoineParameter/TestSolidAntoine_S8.java +++ b/src/main/java/neqsim/thermo/util/parameterFitting/pureComponentParameterFitting/AntoineParameter/TestSolidAntoine_S8.java @@ -72,7 +72,7 @@ public static void main(String[] args) { optim.solve(); // optim.runMonteCarloSimulation(); optim.displayCurveFit(); - optim.writeToCdfFile("c:/testFit.nc"); - optim.writeToTextFile("c:/testFit.txt"); + //optim.writeToCdfFile("c:/testFit.nc"); + //optim.writeToTextFile("c:/testFit.txt"); } } diff --git a/src/main/java/neqsim/thermo/util/parameterFitting/pureComponentParameterFitting/furstIonicParameters/TestFurstIonicParameterFunction.java b/src/main/java/neqsim/thermo/util/parameterFitting/pureComponentParameterFitting/furstIonicParameters/TestFurstIonicParameterFunction.java index 8524f4788f..b7cc5c084e 100644 --- a/src/main/java/neqsim/thermo/util/parameterFitting/pureComponentParameterFitting/furstIonicParameters/TestFurstIonicParameterFunction.java +++ b/src/main/java/neqsim/thermo/util/parameterFitting/pureComponentParameterFitting/furstIonicParameters/TestFurstIonicParameterFunction.java @@ -184,7 +184,7 @@ public static void main(String[] args) { optim.displayResult(); // optim.runMonteCarloSimulation(); optim.displayCurveFit(); - optim.writeToCdfFile("c:/testFit.nc"); + //optim.writeToCdfFile("c:/testFit.nc"); optim.writeToTextFile("c:/testFit.txt"); } } diff --git a/src/main/java/neqsim/thermodynamicOperations/BaseOperation.java b/src/main/java/neqsim/thermodynamicOperations/BaseOperation.java index 56ded9f079..918df3a77b 100644 --- a/src/main/java/neqsim/thermodynamicOperations/BaseOperation.java +++ b/src/main/java/neqsim/thermodynamicOperations/BaseOperation.java @@ -56,8 +56,8 @@ public org.jfree.chart.JFreeChart getJFreeChart(String name) { public void printToFile(String name) {} /** {@inheritDoc} */ - @Override - public void createNetCdfFile(String name) {} + // @Override + // public void createNetCdfFile(String name) {} /** {@inheritDoc} */ @Override diff --git a/src/main/java/neqsim/thermodynamicOperations/OperationInterface.java b/src/main/java/neqsim/thermodynamicOperations/OperationInterface.java index 1d6cb4d2d3..80d9f3a8ba 100644 --- a/src/main/java/neqsim/thermodynamicOperations/OperationInterface.java +++ b/src/main/java/neqsim/thermodynamicOperations/OperationInterface.java @@ -59,7 +59,7 @@ public interface OperationInterface extends Runnable, java.io.Serializable { * * @param name a {@link java.lang.String} object */ - public void createNetCdfFile(String name); + //public void createNetCdfFile(String name); /** *
diff --git a/src/main/java/neqsim/thermodynamicOperations/ThermodynamicOperations.java b/src/main/java/neqsim/thermodynamicOperations/ThermodynamicOperations.java index 22a43a7449..27ed545ab0 100644 --- a/src/main/java/neqsim/thermodynamicOperations/ThermodynamicOperations.java +++ b/src/main/java/neqsim/thermodynamicOperations/ThermodynamicOperations.java @@ -1764,10 +1764,12 @@ public void displayResult() { * * @param name a {@link java.lang.String} object */ + /* public void writeNetCDF(String name) { fileName = name; getOperation().createNetCdfFile(name); } + */ /** *
diff --git a/src/main/java/neqsim/thermodynamicOperations/chemicalEquilibrium/ChemicalEquilibrium.java b/src/main/java/neqsim/thermodynamicOperations/chemicalEquilibrium/ChemicalEquilibrium.java index 77e9e65dd5..00b5d4168d 100644 --- a/src/main/java/neqsim/thermodynamicOperations/chemicalEquilibrium/ChemicalEquilibrium.java +++ b/src/main/java/neqsim/thermodynamicOperations/chemicalEquilibrium/ChemicalEquilibrium.java @@ -84,9 +84,10 @@ public void displayResult() { public void printToFile(String name) {} /** {@inheritDoc} */ + /* @Override public void createNetCdfFile(String name) {} - +*/ /** {@inheritDoc} */ @Override public double[][] getPoints(int i) { diff --git a/src/main/java/neqsim/thermodynamicOperations/flashOps/Flash.java b/src/main/java/neqsim/thermodynamicOperations/flashOps/Flash.java index 4d9fab4c6b..9c035f516e 100644 --- a/src/main/java/neqsim/thermodynamicOperations/flashOps/Flash.java +++ b/src/main/java/neqsim/thermodynamicOperations/flashOps/Flash.java @@ -456,9 +456,10 @@ public void solidPhaseFlash() { public void printToFile(String name) {} /** {@inheritDoc} */ + /* @Override public void createNetCdfFile(String name) {} - +*/ /** {@inheritDoc} */ @Override public double[][] getPoints(int i) { diff --git a/src/main/java/neqsim/thermodynamicOperations/flashOps/saturationOps/constantDutyFlash.java b/src/main/java/neqsim/thermodynamicOperations/flashOps/saturationOps/constantDutyFlash.java index f3a72e893e..99a56be45a 100644 --- a/src/main/java/neqsim/thermodynamicOperations/flashOps/saturationOps/constantDutyFlash.java +++ b/src/main/java/neqsim/thermodynamicOperations/flashOps/saturationOps/constantDutyFlash.java @@ -109,9 +109,10 @@ public void run() { } /** {@inheritDoc} */ + /* @Override public void createNetCdfFile(String name) {} - +*/ /** {@inheritDoc} */ @Override public double[][] getPoints(int i) { diff --git a/src/main/java/neqsim/thermodynamicOperations/phaseEnvelopeOps/multicomponentEnvelopeOps/HPTphaseEnvelope.java b/src/main/java/neqsim/thermodynamicOperations/phaseEnvelopeOps/multicomponentEnvelopeOps/HPTphaseEnvelope.java index a59ad23d66..9cccf27d17 100644 --- a/src/main/java/neqsim/thermodynamicOperations/phaseEnvelopeOps/multicomponentEnvelopeOps/HPTphaseEnvelope.java +++ b/src/main/java/neqsim/thermodynamicOperations/phaseEnvelopeOps/multicomponentEnvelopeOps/HPTphaseEnvelope.java @@ -11,7 +11,6 @@ import javax.swing.JProgressBar; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; -import neqsim.dataPresentation.visAD.visAd3D.visAd3DPlot; import neqsim.thermo.system.SystemInterface; import neqsim.thermodynamicOperations.BaseOperation; import neqsim.thermodynamicOperations.ThermodynamicOperations; @@ -92,6 +91,7 @@ public void run() { /** {@inheritDoc} */ @Override public void displayResult() { + /* try { mainFrame.setVisible(false); visAd3DPlot plot = @@ -102,6 +102,7 @@ public void displayResult() { } catch (Exception e) { logger.error("plotting failed"); } + */ } /** {@inheritDoc} */ @@ -115,9 +116,10 @@ public double[][] getPoints(int i) { } /** {@inheritDoc} */ + /* @Override public void createNetCdfFile(String name) {} - +*/ /** {@inheritDoc} */ @Override public org.jfree.chart.JFreeChart getJFreeChart(String name) { diff --git a/src/main/java/neqsim/thermodynamicOperations/phaseEnvelopeOps/multicomponentEnvelopeOps/pTphaseEnvelope.java b/src/main/java/neqsim/thermodynamicOperations/phaseEnvelopeOps/multicomponentEnvelopeOps/pTphaseEnvelope.java index 0d3a5d9061..3d7e7a63ed 100644 --- a/src/main/java/neqsim/thermodynamicOperations/phaseEnvelopeOps/multicomponentEnvelopeOps/pTphaseEnvelope.java +++ b/src/main/java/neqsim/thermodynamicOperations/phaseEnvelopeOps/multicomponentEnvelopeOps/pTphaseEnvelope.java @@ -42,8 +42,6 @@ public class pTphaseEnvelope extends BaseOperation { double[] cricondenBarX = new double[100]; double[] cricondenBarY = new double[100]; double phaseFraction = 1e-10; - neqsim.dataPresentation.fileHandeling.createNetCDF.netCDF2D.NetCdf2D file1; - neqsim.dataPresentation.fileHandeling.createNetCDF.netCDF2D.NetCdf2D file2; int i, j = 0, nummer = 0, iterations = 0, maxNumberOfIterations = 10000; double gibbsEnergy = 0, gibbsEnergyOld = 0; double Kold, deviation = 0, g0 = 0, g1 = 0, lowPres = 1.0; @@ -493,7 +491,7 @@ public void run() { // double nef = 0.; // logger.error("error", e2); } - +/* try { if (outputToFile) { // update this @@ -517,6 +515,7 @@ public void run() { // double nef = 0.; logger.error("error", e3); } + */ } catch (Exception e4) { // double nef = 0.; logger.error("error", e4); @@ -724,10 +723,12 @@ public double[] get(String name) { } /** {@inheritDoc} */ + /* @Override public void createNetCdfFile(String name) { fileName = name; } + */ /** * Getter for property bubblePointFirst. diff --git a/src/main/java/neqsim/thermodynamicOperations/phaseEnvelopeOps/multicomponentEnvelopeOps/pTphaseEnvelope1.java b/src/main/java/neqsim/thermodynamicOperations/phaseEnvelopeOps/multicomponentEnvelopeOps/pTphaseEnvelope1.java index dace93335a..fc49ed29aa 100644 --- a/src/main/java/neqsim/thermodynamicOperations/phaseEnvelopeOps/multicomponentEnvelopeOps/pTphaseEnvelope1.java +++ b/src/main/java/neqsim/thermodynamicOperations/phaseEnvelopeOps/multicomponentEnvelopeOps/pTphaseEnvelope1.java @@ -30,8 +30,6 @@ public class pTphaseEnvelope1 extends BaseOperation { double[] cricondenTherm = new double[3]; double[] cricondenBar = new double[3]; double phaseFraction = 1e-10; - neqsim.dataPresentation.fileHandeling.createNetCDF.netCDF2D.NetCdf2D file1; - neqsim.dataPresentation.fileHandeling.createNetCDF.netCDF2D.NetCdf2D file2; int i, j = 0, nummer = 0, iterations = 0, maxNumberOfIterations = 10000; double gibbsEnergy = 0, gibbsEnergyOld = 0; double Kold, deviation = 0, g0 = 0, g1 = 0, lowPres = 1.0; @@ -308,7 +306,7 @@ public void run() { } // monitor.close(); mainFrame.setVisible(false); - +/* if (outputToFile) { String name1 = new String(); name1 = fileName + "Dew.nc"; @@ -326,6 +324,7 @@ public void run() { file2.setYvalues(points2[1], "pres", "meter"); file2.createFile(); } + */ } catch (Exception e) { logger.error("error", e); } @@ -449,10 +448,12 @@ public double[] get(String name) { } /** {@inheritDoc} */ + /* @Override public void createNetCdfFile(String name) { fileName = name; } + */ /** * Getter for property bubblePointFirst. diff --git a/src/main/java/neqsim/thermodynamicOperations/phaseEnvelopeOps/multicomponentEnvelopeOps/pTphaseEnvelopeMay.java b/src/main/java/neqsim/thermodynamicOperations/phaseEnvelopeOps/multicomponentEnvelopeOps/pTphaseEnvelopeMay.java index da70ca2adf..1724eb7e68 100644 --- a/src/main/java/neqsim/thermodynamicOperations/phaseEnvelopeOps/multicomponentEnvelopeOps/pTphaseEnvelopeMay.java +++ b/src/main/java/neqsim/thermodynamicOperations/phaseEnvelopeOps/multicomponentEnvelopeOps/pTphaseEnvelopeMay.java @@ -33,8 +33,6 @@ public class pTphaseEnvelopeMay extends BaseOperation { double[] cricondenTherm = new double[3]; double[] cricondenBar = new double[3]; double phaseFraction = 1e-10; - neqsim.dataPresentation.fileHandeling.createNetCDF.netCDF2D.NetCdf2D file1; - neqsim.dataPresentation.fileHandeling.createNetCDF.netCDF2D.NetCdf2D file2; int i, j = 0, nummer = 0, iterations = 0, maxNumberOfIterations = 10000; double gibbsEnergy = 0, gibbsEnergyOld = 0; double Kold, deviation = 0, g0 = 0, g1 = 0, lowPres = 1.0; @@ -457,7 +455,7 @@ public void run() { // double nef = 0.; logger.error("error", e2); } - +/* try { if (outputToFile) { // update this @@ -481,6 +479,7 @@ public void run() { // double nef = 0.; logger.error("error", e3); } + */ } catch (Exception e4) { // double nef = 0.; logger.error("error", e4); @@ -645,10 +644,12 @@ public double[] get(String name) { } /** {@inheritDoc} */ + /* @Override public void createNetCdfFile(String name) { fileName = name; } + */ /** * Getter for property bubblePointFirst. diff --git a/src/main/java/neqsim/thermodynamicOperations/phaseEnvelopeOps/multicomponentEnvelopeOps/pTphaseEnvelopeNew.java b/src/main/java/neqsim/thermodynamicOperations/phaseEnvelopeOps/multicomponentEnvelopeOps/pTphaseEnvelopeNew.java index 49b90712b2..8bd63f78dc 100644 --- a/src/main/java/neqsim/thermodynamicOperations/phaseEnvelopeOps/multicomponentEnvelopeOps/pTphaseEnvelopeNew.java +++ b/src/main/java/neqsim/thermodynamicOperations/phaseEnvelopeOps/multicomponentEnvelopeOps/pTphaseEnvelopeNew.java @@ -29,8 +29,6 @@ public class pTphaseEnvelopeNew extends BaseOperation { double[] cricondenTherm = new double[3]; double[] cricondenBar = new double[3]; double phaseFraction = 1e-10; - neqsim.dataPresentation.fileHandeling.createNetCDF.netCDF2D.NetCdf2D file1; - neqsim.dataPresentation.fileHandeling.createNetCDF.netCDF2D.NetCdf2D file2; int i, j = 0, nummer = 0, iterations = 0, maxNumberOfIterations = 10000; double lowPres = 1.0; boolean outputToFile = false; @@ -258,7 +256,7 @@ public void run() { } // monitor.close(); mainFrame.setVisible(false); - +/* if (outputToFile) { String name1 = new String(); name1 = fileName + "Dew.nc"; @@ -276,6 +274,7 @@ public void run() { file2.setYvalues(points2[1], "pres", "meter"); file2.createFile(); } + */ } catch (Exception e) { logger.error("error", e); } @@ -399,10 +398,12 @@ public double[] get(String name) { } /** {@inheritDoc} */ + /* @Override public void createNetCdfFile(String name) { fileName = name; } + */ /** {@inheritDoc} */ @Override diff --git a/src/main/java/neqsim/thermodynamicOperations/phaseEnvelopeOps/reactiveCurves/pLoadingCurve.java b/src/main/java/neqsim/thermodynamicOperations/phaseEnvelopeOps/reactiveCurves/pLoadingCurve.java index 00e94673ae..d09724c10b 100644 --- a/src/main/java/neqsim/thermodynamicOperations/phaseEnvelopeOps/reactiveCurves/pLoadingCurve.java +++ b/src/main/java/neqsim/thermodynamicOperations/phaseEnvelopeOps/reactiveCurves/pLoadingCurve.java @@ -8,7 +8,6 @@ import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import neqsim.dataPresentation.JFreeChart.graph2b; -import neqsim.dataPresentation.fileHandeling.createNetCDF.netCDF2D.NetCdf2D; import neqsim.thermo.system.SystemInterface; import neqsim.thermodynamicOperations.OperationInterface; @@ -148,23 +147,6 @@ public double[][] getPoints(int i) { return points; } - /** {@inheritDoc} */ - @Override - public void createNetCdfFile(String name) { - NetCdf2D file = new NetCdf2D(); - file.setOutputFileName(name); - file.setXvalues(points[0], "loading", ""); - file.setYvalues(points[1], "pressure", ""); - for (int k = 0; k < system.getPhases()[1].getNumberOfComponents(); k++) { - file.setYvalues(points[k + 2], - "mol frac " + system.getPhases()[1].getComponents()[k].getComponentName(), ""); - file.setYvalues(points[k + 2 + system.getPhases()[1].getNumberOfComponents()], - ("activity " + system.getPhases()[1].getComponents()[k].getComponentName()), - ""); - } - file.createFile(); - } - /** {@inheritDoc} */ @Override public double[] get(String name) { diff --git a/src/main/java/neqsim/thermodynamicOperations/phaseEnvelopeOps/reactiveCurves/pLoadingCurve2.java b/src/main/java/neqsim/thermodynamicOperations/phaseEnvelopeOps/reactiveCurves/pLoadingCurve2.java index e1f2ff6a36..5990112903 100644 --- a/src/main/java/neqsim/thermodynamicOperations/phaseEnvelopeOps/reactiveCurves/pLoadingCurve2.java +++ b/src/main/java/neqsim/thermodynamicOperations/phaseEnvelopeOps/reactiveCurves/pLoadingCurve2.java @@ -8,7 +8,6 @@ import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import neqsim.dataPresentation.JFreeChart.graph2b; -import neqsim.dataPresentation.fileHandeling.createNetCDF.netCDF2D.NetCdf2D; import neqsim.thermo.system.SystemInterface; import neqsim.thermodynamicOperations.BaseOperation; import neqsim.thermodynamicOperations.ThermodynamicOperations; @@ -159,6 +158,7 @@ public double[][] getPoints(int i) { } /** {@inheritDoc} */ + /* @Override public void createNetCdfFile(String name) { NetCdf2D file = new NetCdf2D(); @@ -175,7 +175,7 @@ public void createNetCdfFile(String name) { } file.createFile(); } - +*/ /** {@inheritDoc} */ @Override public double[] get(String name) {