-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding new sigma profile #20
Comments
The sigma profiles should not be put in with the existing profiles, you should put them in another folder and change the paths accordingly. You should not need to recompile cCOSMO either. |
Thank you for your reply! I have tried to put them in another folder and change the paths accordingly. I tried to add my database into profiles fold and change path to mine and run the testit.py in terminal. Like: dbVT = cCOSMO.VirginiaTechProfileDatabase( It says : dbVT = cCOSMO.VirginiaTechProfileDatabase( Then, I tried to change cCOSMO.VirginiaTechProfileDatabase to cCOSMO.MineDatabase. Like: dbVT = cCOSMO.MineDatabase(here+"/profiles/MineDatabase/Sigma_Profile_Database.txt", I don't know why that would happen. Could you please help me with this problem. THANK YOU SO MUCH! |
In pseudocode, you need something like this: import cCOSMO
db = cCOSMO.VirginiaTechProfileDatabase(
"myVT2005/Sigma_Profile_Database.txt",
"myVT2005/Sigma_Profiles/") where you make the |
What are the contents of your Sigma_Profile_Database_Index_v1.txt and your sigma profile? |
The metadata file needs to be in the same exact format as the original. Are you missing the last column? |
Can you please attach your file? I think the delimiters might be wrong |
And please attach one of your sigma profiles, I want to test on my side. |
Sigma_Profile_Database_Index_v1.txt |
First problem: your metadata file doesn't use tabs for the delimiter, you have to use the same format |
I see! I will try again. Thank you sooooo much! |
Also, you need a single delimiter in all cases |
Once you get that sorted, you want something like: import cCOSMO
names = ['C1H1']
db = cCOSMO.VirginiaTechProfileDatabase(
"profiles/VT2005test/Sigma_Profile_Database_Index_v1.txt",
"profiles/VT2005test/")
# Add the fluids we want into the database
for name in names:
iden = db.normalize_identifier(name)
print(iden)
db.add_profile(iden)
COSMO = cCOSMO.COSMO1(names, db)
T = 300
composition = [0.5, 0.5]
print(COSMO.get_lngamma_comb(T, composition) + COSMO.get_lngamma_resid(T, composition)) |
This works!!! Thank you a lot! |
Hello, Professor. I got another problem, would you please give me some help? I want to add some new sigma profiles, and I got stuck at the file format:
Waiting for your reply. Sorry for asking for help again. |
|
I figured it out. Thank you so much!! |
Hi professor, thank you so much for sharing this amazing work. I am new to cmake. I want to add the sigma profile I calculate to cCOSMO and then use it for later calculation, but when I directly adding it to vt-2005 database, it will say wrong. So, I was wondering if I want to add new database, is that means I need to rewrite a code to make new cCOSMO module?
The text was updated successfully, but these errors were encountered: