Skip to content

Commit

Permalink
double to Double
Browse files Browse the repository at this point in the history
  • Loading branch information
EvenSol committed Jan 8, 2025
1 parent 262b99c commit 48f90fb
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ public class EclipseFluidReadWrite {
* setComposition.
* </p>
*
* @param fluid a {@link neqsim.thermo.system.SystemInterface} object
* @param inputFile a {@link java.lang.String} object
* @param fluid a {@link neqsim.thermo.system.SystemInterface} object
* @param inputFile a {@link java.lang.String} object
* @param pseudoNameIn a {@link java.lang.String} object
*/
public static void setComposition(SystemInterface fluid, String inputFile, String pseudoNameIn) {
Expand All @@ -46,7 +46,7 @@ public static void setComposition(SystemInterface fluid, String inputFile, Strin
* setComposition.
* </p>
*
* @param fluid a {@link neqsim.thermo.system.SystemInterface} object
* @param fluid a {@link neqsim.thermo.system.SystemInterface} object
* @param inputFile a {@link java.lang.String} object
*/
public static void setComposition(SystemInterface fluid, String inputFile) {
Expand Down Expand Up @@ -121,7 +121,7 @@ public static void setComposition(SystemInterface fluid, String inputFile) {
* read.
* </p>
*
* @param inputFile a {@link java.lang.String} object
* @param inputFile a {@link java.lang.String} object
* @param pseudoNameIn a {@link java.lang.String} object
* @return a {@link neqsim.thermo.system.SystemInterface} object
*/
Expand All @@ -142,7 +142,7 @@ public static SystemInterface read(String inputFile) {
neqsim.thermo.system.SystemInterface fluid = new neqsim.thermo.system.SystemSrkEos(288.15,
ThermodynamicConstantsInterface.referencePressure);

double[][] kij = null;
Double[][] kij = null;
try (BufferedReader br = new BufferedReader(new FileReader(new File(inputFile)))) {
String st;

Expand Down Expand Up @@ -262,7 +262,7 @@ public static SystemInterface read(String inputFile) {
}
if (st.equals("BIC")) {
int addedComps = 0;
kij = new double[names.size()][names.size()];
kij = new Double[names.size()][names.size()];
int lengthLastLine = 0;
List<String> list = new ArrayList<String>();
while ((st = br.readLine().replace("/", "")) != null && addedComps < names.size() - 1) {
Expand Down Expand Up @@ -335,12 +335,12 @@ public static SystemInterface read(String inputFile) {
fluid.addComponent(name, ZI.get(counter));
} else if (TC.get(counter) >= 00.0) {
name = names.get(counter);
double stddensity = 0.5046 * MW.get(counter) / 1000.0 + 0.668468;
Double stddensity = 0.5046 * MW.get(counter) / 1000.0 + 0.668468;
fluid.addTBPfraction(name, ZI.get(counter), MW.get(counter) / 1000.0, stddensity);
name = name + "_PC";
} else {
name = names.get(counter);
double stddensity = 0.5046 * MW.get(counter) / 1000.0 + 0.668468;
Double stddensity = 0.5046 * MW.get(counter) / 1000.0 + 0.668468;
fluid.addTBPfraction(name, ZI.get(counter), MW.get(counter) / 1000.0, stddensity);
name = name + "_PC";
// fluid.changeComponentName(name+"_PC", names.get(counter));
Expand Down

0 comments on commit 48f90fb

Please sign in to comment.