CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   Questions about mixtures (https://www.cfd-online.com/Forums/openfoam-programming-development/179358-questions-about-mixtures.html)

chriss85 October 28, 2016 09:31

Questions about mixtures
 
I would like to introduce mixtures at some point, where thermophysical properties are calculated using some kind of averaging or mixing law.
I have seen that OpenFOAM supports this to some extent with the multiComponentMixture class. As far as I can tell, it calculates a temporary mixture object which is created by employing the addition operators in the single phase submodels. Sutherland coefficients may be added up and weighted by the phase fractions for example.

However, this is not going to work for me, as I'm using data tables to provide my thermophysical data, and adding up the whole tables would be way too slow to consider it. Instead, I would prefer to pick values from the separate tables of each phase and average these values directly. Will I have to write a new mixture class for this? If so, how can the submodels (for example the class for equation of state or transport model) know its species name so that different paths for data tables may be generated?

chriss85 October 31, 2016 08:48

1 Attachment(s)
Still working on this. For reference, here is a visualization of the class structure of the thermophysical library, using the tabular classes I am using and the intended multiphase configuration. I think this may help with understanding the layout of the thermophysical model library in general.


All times are GMT -4. The time now is 15:55.