Turbulence model not runtime selectable
Summary
When I change a turbulence model during runtime, the turbulence properties are re-read as shown by the log: "Re-reading object turbulenceProperties from file ". However, the turbulence model itself does not change. I've tested this on openfoam V2306 and V1712 (oldest one I have on my machine).
It might be a design choice not to have this feature. However, I cannot find any warning on this in the documentation (or in the log). I might be a an odd one, wanting to change the turbulence model during runtime. I would like to change the turbulence model, since it allows using a more stable turbulence model during startup and changing it to a more accurate one during runtime.
Steps to reproduce
- Take the incompresseble TJunction case: (tutorials/incompressible/pimpleFoam/RAS/TJunction)
- Increase the simulated time (say 15 s) to ensure you have time to change the turbulence dict before the end of the simulation
- run blockMesh
- run pimpleFoam > log
- Change the turbulence model to kOmega in turbulenceProperties
- This should cause a crash, since the Omega field is not created/read. However, the solver just keeps on running
- Check if the turbulence properties is changed by looking for: "Re-reading object turbulenceProperties from file " in the log file.
Example case
the incompresseble TJunction case: (tutorials/incompressible/pimpleFoam/RAS/TJunction)
What is the current bug behaviour?
The simulation keeps on running using the kEpsilon model
What is the expected correct behavior?
The simulation should crash, since the Omega field is not present.
Environment information
Providing details of your set-up can help us identify any issues, e.g. OpenFOAM version : aff5c3b6-20230703 OPENFOAM=2306 version=v2306 | v1712 Operating system : ubuntu 18.04 Compiler : gcc