CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   RhoCentralFoam with turbulence - floating point exception! (https://www.cfd-online.com/Forums/openfoam-solving/250507-rhocentralfoam-turbulence-floating-point-exception.html)

charliekc4 June 20, 2023 18:44

RhoCentralFoam with turbulence - floating point exception!
 
Hi, I am attempting to study hypersonic shock waves in OpenFOAM, and am struggling to create a case file that uses rhoCentralFoam with kOmegaSST turbulence modelling. I understand that I need to change the "0" files, momentum transport and system files. Unfortunately, I am running into some problems. Namely: when using nutkWallFunction and omegaWallFunction, I immediately get a floating point error for each. Does anybody have experience of this? Is there another turbulence model that might be easier to get working? Open to any suggestions. Many thanks in advance!

Charlie

charliekc4 June 23, 2023 17:08

Solved
 
I am replying to my own thread regarding the issue in case it is of use to anybody who (like me) fails to notice silly errors they have made. I mistakenly set the mu value in the thermophysicalProperties file to 0, i.e., for an inviscid gas. This is of course incorrect and must be non-zero in order for the models to make sense.


All times are GMT -4. The time now is 21:26.