Open longemen3000 opened 3 years ago
Maybe the best option to integration is by catching the thermo in the rms file format?
Sorry, somehow I didn't see this earlier. Yeah, so RMS's parser is based on recursively constructing object dictionaries within the input .yml. For example in the .yml: Dict(["type"=>"Arrhenius", "A"=>1.3,"n"=>1.0,"Ea"=>40136.0]) gets converted to an Arrhenius struct. We can probably make modifications to the procedure, but it might be easier to just add the parameters we need and then write phase objects (or if possible a very generic phase object) that bulid all the Clapeyron objects and call them appropriately to get the thermochemistry.
I created this issue, as mentioned in Juliacon, to track progress in integration of external thermo models to this package, via Clapeyron.jl. If I remember correctly, a volume solver is necessary. Also, for multicomponent mixtures, a dew and bubble pressure solver could be used to mark limits on zones where 2-phase mixtures could occur