-
Notifications
You must be signed in to change notification settings - Fork 5
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
Import critical properties for thermo and transport calculation #107
Comments
Thanks, @Yuji-1 !
|
|
We had previously discussed adding a field for critical property information in #20, with the consensus tending toward something like: - name: C2H4
composition: {C: 2, H: 4}
thermo:
...
equation-of-state:
...
transport:
...
critical-properties: # or maybe "critical-parameters"
critical-pressure: ...
critical-temperature: ...
critical-volume: ...
acentric-factor: ... This same structure would also be used for the YAML replacement for |
I think I like So does inclusion of |
Besides, saturated vapor pressure is also needed in
I'm not sure it should be included in this field or a separate field. |
I can see the value of providing species critical properties, regardless of EoS. To be frank, I am less convinced that there is a need to add other properties (which would require new Cantera functionality on the back end) into the species definition, all for this single use case. For this case, you would then need to add a saturation pressure routine to calculate P_sat as a function of T, in the Speaking only for myself, doing this in service of a single use case is not terribly compelling. You are trying to combine non-ideal transport parameters with an ideal gas equation of state. The former assumes that there are inter-species interactions, while the latter precludes them - it is an inconsistent set of assumptions, all to get around the fact that the non-ideal flame equations are a bit complex (and not implemented in Cantera). You are, of course, welcome to add such a routine to your own forked version of Cantera., which would let you carry out your planned analysis. If you do so, I would certainly be happy for you to submit a pull request so that we can consider it further. I would just caution you to first run your simulations using ideal gas conditions and look at the compressibility of your mixture (Pv/RT) over the course of the simulation. @gkogekar and I have spent a good amount of time playing around with non-ideal effects, and have rarely found situations where they seem to matter much (to our dismay). Especially in combustion, where the high temperatures usually mean that the compressibility is very close to 1, and the results usually do not deviate by more than a few percent from ideal gas results. That is not mean to dissuade you--my word here is by means authoritative--but just to advise a little investigation beforehand so that you don't go and do a bunch of work only to find afterward that it was not necessary. |
As you mentioned, the implementation of non-ideal flame equations is more complex and cannot be completed for the time being. However, for many high-pressure transport models, the residual properties (viscosity and thermal conductivity) are strongly related to density. In other words, non-ideal effects are reflected through density indirectly (not in a direct way of reduced pressure). Under ideal-gas assumption, large deviations of density are predicted under high-pressure occasions. So the high-pressure transport model is not accurate, unless |
This is implemented by Cantera/cantera#1141 |
Abstract
Enable the import method in transport model to import critical properties so that high pressure transport model will no longer rely on certain real-gas EoS and allow users to use high pressure transport model under ideal-gas EoS (for example, in 1D premixed flame simulation)
Motivation
In current implementation of high pressure transport model, the critical properties of all species are calculated through certain real-gas EoS. However, it will be more appropriate if critical properties (critical pressure, critical temperature, critical volume and critical compressibility factor) used in high-pressure transport model do not rely on certain real-gas EoS, when users try to combine ideal-gas EoS with high pressure transport model.
Possible Solutions
In my opinion, the possible solution is:
2, As for the modifications in high pressure transport model, it will reserve 4 arrays to store critical properties respectively, as the style of equation parameters in R-K EoS module (a_vec_Curr_). The access to critical properties will be changed from calculations through real-gas EoS (double tc = m_thermo->critTemperature()) to user-provided data (double tc=m_crit_temp[i]), thus eliminating the dependance on certain EoS and enhancing the flexibility of Cantera.
References
[1] (https://github.com/Cantera/cantera/blob/main/src/transport/HighPressureGasTransport.cpp)
The text was updated successfully, but these errors were encountered: