How to adjust parameters of both PCSAFT and ideal model with experimental data #332
-
I have a dataset of a substance for both density and isobaric heat capacity under high pressure. Looking at the example notebook for fitting data I could not find a way to fit both a model for the PCSAFT equation using Reid model for the ideal part of the equation. In other words is there a way to fit simultaniously PCSAFT coefficients and ReidIdeal model parameters to have a model capable of predicting accurate volume and heat capacities? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Hi Eduardo, The way our parameter estimation framework works is by going through the entire model struct and looking through all parameters. As such, if you specify the name of a parameter with its index, even if it’s in a submodel, you can fit it. You could do this for your case. That being said, I’ve realised a small issue with our implementation of the Reid model. The parameters are stored in a tuple (coefs) for efficiency reasons. I’m not sure if that’ll cause any issues in this particular case. If you end up giving it a try, let us know if you encounter any issues. I’m away from my laptop at the moment so I’ll give this a shot when I find the time. |
Beta Was this translation helpful? Give feedback.
Hi Eduardo,
The way our parameter estimation framework works is by going through the entire model struct and looking through all parameters. As such, if you specify the name of a parameter with its index, even if it’s in a submodel, you can fit it. You could do this for your case.
That being said, I’ve realised a small issue with our implementation of the Reid model. The parameters are stored in a tuple (coefs) for efficiency reasons. I’m not sure if that’ll cause any issues in this particular case. If you end up giving it a try, let us know if you encounter any issues.
I’m away from my laptop at the moment so I’ll give this a shot when I find the time.