From ae6aa4291a982728c62183ceeccfd22536c85919 Mon Sep 17 00:00:00 2001 From: titusquah <46580668+titusquah@users.noreply.github.com> Date: Mon, 1 Jun 2020 15:39:52 -0600 Subject: [PATCH] started project --- .idea/dictionaries/Titus.xml | 5 ++ .idea/workspace.xml | 88 +++++++++++++++++++++++++++--------- methods.py | 25 ---------- tests/test1.py | 5 ++ 4 files changed, 77 insertions(+), 46 deletions(-) delete mode 100644 methods.py diff --git a/.idea/dictionaries/Titus.xml b/.idea/dictionaries/Titus.xml index 2a0a69c..13e0898 100644 --- a/.idea/dictionaries/Titus.xml +++ b/.idea/dictionaries/Titus.xml @@ -1,7 +1,12 @@ + diluant + dodecane + extractant kmol + ndarray + reeps \ No newline at end of file diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 4bc89dc..c92cc7b 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -2,10 +2,10 @@ - - - - + + + + - + + + + + + @@ -96,7 +116,14 @@ @@ -104,7 +131,9 @@ - + + @@ -119,6 +148,10 @@ + + + + @@ -139,22 +172,30 @@ - - + + - - - + + + + + - - - + + + + + - - - + + + + + - + + + @@ -163,9 +204,14 @@ - - + + + + + + + \ No newline at end of file diff --git a/methods.py b/methods.py deleted file mode 100644 index 6ecde7e..0000000 --- a/methods.py +++ /dev/null @@ -1,25 +0,0 @@ -import cantera as ct -import pandas as pd - - -class REEGEMParamFit: - """Takes in experimental data - Returns parameters for GEM - :param exp_csv_file: (str) csv file containing experimental data - :param param_xml_file: (str) xml file with parameters for equilibrium calc - :param x_guess: (float) guess for multiplier variable - :param h_guess: (float) initial guess standard enthalpy (J/kmol) - :param phase_names: (list) names of phases in xml file - """ - - def __init__(self, - exp_csv_file, - param_xml_file, - x_guess=1, - h_guess=-4856609.0E3, - phase_names=['HCl_electrolyte', 'PC88A_liquid'] - ): - self.x_guess = x_guess - self.h_guess = h_guess - exp_df = pd.read_csv(exp_csv_file) - phases = ct.import_phases(param_xml_file, phase_names) diff --git a/tests/test1.py b/tests/test1.py index e69de29..de76dc4 100644 --- a/tests/test1.py +++ b/tests/test1.py @@ -0,0 +1,5 @@ +import sys +sys.path.append('../') +from reeps import REEPS + +testing= \ No newline at end of file