-
Notifications
You must be signed in to change notification settings - Fork 47
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
ParamTable doesn't detect the acentric factor parameter #188
Comments
yeah, paramtables are something of a stopgap that we coded a long time ago. now you can pass parameters as a named tuple.
but it is a relatively recent development (#156 ). there are some problems with that approach (what to do with group components? association?) On the acentric factor, PR is really really general Peng-Robinson model, you can pass your own mixing rule, translation model, and alpha function. for example, Twu alpha does not depend on acentric factor. On more complicated models, the dependencies could change. for example,
In that sense, the main PR model does not depend on To answer that specific param table question, you need to pass a table with |
on the
then, on a script on a REPL:
there are of course, some caveats to this. without specifying the molecular weight, you cannot calculate speed of sound measurements. and without specifying an appropiate ideal model, the calorific calculations will assume ideal gas (Cp = 5/2 * R) |
Thanks for the information! I come from libraries that use a very different approach in terms of modularity, so having the isolated alpha function was new to me. Thanks! |
An update about this. i just added a shortcut for this particular case, while it breaks the purity of the design, it is better for an usability perspective |
I work with pseucomponents (so my components don't exist in any database). I found the ParamTable approach an easy way
to define my components in a single code cell. But it doesn't seem to work properly (or at least there is a missing step on the documentation)
Gives the error:
On a side note:
I find it quite unnecessary to define the unneeded parameters, if I want to use a PR model I should just need to define$T_c$ , $P_c$ and $\omega$ . This makes the use of the library tedious and also user prone to errors since one should check all the code to be sure which parameters are really used and which ones are not.
The text was updated successfully, but these errors were encountered: