Switch off force calculation completely

hunger's picture
Submitted by hunger on Thu, 02/04/2016 - 10:47

Hi all!

I want to simulate a case in which I just want to consider temperature coupling between fluid and particles using LaEuScalarTemp. Is there a possibility to switch off the calculation of forces and momentum exchange completely?

If i set the momCoupleModels OFF, then no forces are acting on the particles. However, if I got the source code right, some calculation is performed.
The noDrag model sets the forces acting on every particle to zero (every time step), and e.g. modelType B needs the calculation of Archimedes forces to run. But after the calculation of those forces, they are not considered because momentum exchange is switched off.

Did I miss a switch somewhere that is skipping all these procedures I mentioned before? Is there a certain switch I can set to do so?

Best regards
Harald

Bruno | Wed, 02/17/2016 - 16:18

I think the way you are trying is a good one. However, you have to be careful if you solver requires the explicit or implicit forces (and the KSL field). An alternative is to put gravity to 0, and etc. and to calculate the forces but leave them blank. Finally, you could design a copy of the solver where you would not calculate those forces.

Just a matter of a little bit of trial and error to find a way that will work best.

Cheers
BB

hunger's picture

hunger | Fri, 02/19/2016 - 09:28

Hi Bruno!

Thx for your reply. Since I have not found an already built in switch yet, I agree that the best way would be to change the source code to switch it off completely.
Other ways could be to set the residual of the Ksl field very high so that the linear solver in OpenFOAM is skipping it completely. This could maybe safe computational time, but I didn't try it yet.
To skip the consideration of the momentum coupling, I guess one could also use the KslLimit value in the PropsDict, but this would not safe computational time I guess.

Best regards
Harald