Hi Junfeng,
First, I would suggest looking at the current documentation for Cantera available at https://cantera.org/documentation/index.html, rather than documentation that’s 10 years out of date. For instance, the VPSSMgr
class mentioned there doesn’t even exist anymore, so the discussion of how it works is pretty much moot.
Second, I’m not sure that the PDSS
classes are a very good way to try implementing real gas behavior - what ThermoPhase
model are you putting them in? The one existing real gas equation of state implemented in Cantera (Redlich-Kwong) does not use this VPSS
system, nor does the Peng-Robinsion implementation that’s being developed.
Last, if you’re trying to verify that your implementation is doing what you think it should, I would start with much simpler calculations than what effect it has on a reactor simulation, where the impact of the non-ideal terms could be quite small. I would focus on making sure that it’s giving you values you expect for simple properties like the pressure - density - temperature surface itself.
Regards,
Ray
Hi Junfeng,
The calculation of the equilibrium constant, to determine the reverse reaction rate, is done using the species chemical potentials. These are calculated directly, rather than using the identity . This eliminates some redundant calculations that would be performed if you computed the chemical potentials using the partial molar enthalpies and entropies.
Regards,
Ray
--
You received this message because you are subscribed to the Google Groups "Cantera Users' Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cantera-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cantera-users/125d2716-8330-46c3-ac73-aa46f1d925a8n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cantera-users/c7cc0095-2c74-4ada-94bc-71777f2b4036n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cantera-users/66210D43-7980-4D1E-9BE1-B787F2EF1CCB%40gmail.com.