Modifying density update in fireFoam
I am trying to substitute the density calcultaion that OpenFoam uses in fireFoam with my own density calculation model.
Since I am a newbie in OF and a newbie in C++ also, I haven't completely understood, how the functionalities and the dependencies are in OF-fireFoam. :confused:. For example, I am even confused what
rho = thermo.rho()
exactly means, what exactly happens there and where the thermo class is located at...
So my questions are:
(1) can the density calculation be easily swaped with a different model?
(2) where is the thermo class located?
(3) does anyone know how the density update works in OF? Is it based on the recursive beta PDF integration and where are the actual calculations happening?
Any help is greatly appreciated,
rho = thermo.rho() returns the density field. Have a look at basicThermo.C, basicPsiThermo.C or basicRhoThermo.C
About (1), depends what you want to do. But most of the time, you have to rewrite the entire thermo library
About (3) have a look at the classes above.
I am still puzzled how the density update works for the case of the fireFoam solver. The presentation attached states that the density calculation is based on the recursive beta integration in fireFoam. So far, I have not been able to locate where this is happening. When I start from the main file of the fireFoam solver (fireFoam.C), I find that:
I would really appreciate if you could give me some hints on how to understand the density update process.
p_ -> from the solver. In the solver, the p field is a pointer,
psi-> equation of state.
|All times are GMT -4. The time now is 09:37.|