by jasper » 03 August 2021, 11:06
I am not sure what the best setup would be for this as the number of parameters that is required seems to be rather variable. In addition there should be some sort of GUI to enter these parameters presumably.
I can provide example code for a property calculation routine, but via this route you cannot easily add the pure component values in CAPE-OPEN v1.1. Some back ground, CAPE-OPEN 1.0 had a 'pure' vs 'mixture' calculation type, which was largely unused. Additional confusion arose because quite often the pure calculations would be ideal, e.g. some sort of correlation, whereas the mixture calculations are not, and with the mixture calculations being a different model than pure calculations, pure calculations gave a different result that mixture calculations at pure composition, e.g. X = [ 0, 1, 0, 0, ...]. But in this context that might be exactly what you want, provide a mixture model for which you can issue a pure calculation that will get just correlated values for the pure compound.
However, I presume your compound list is rather limited and you could also simply provide the pure compound data internally to your calculation routine.
Would you like me to provide example code (COBIA based) for a Property Routine that does a mixture calculation for a particular property?