customized sonicFoam for adaptive mesh refinement - how to define mass flow BCs?
I tried a few simulations with sonicFoam, and wondered if I could get adapted mesh near shock waves to highlight them.
So, looking around in the code, I managed to write a customized version of sonicFoam which uses dinamicFvMesh.
Now I am getting interesting results on a mesh of a model jet aircraft, generated from snappyHexMesh, and driving refinement via pressure gradient.
I would like to define BCs for the airframe jet engine intakes and exhausts, such as a mass flow constraint or the like.
I think that a field called phi which is analogous to mass flux is already defined in sonicFoam's code.
You may change its settings to make OF prompt for mentioning its BC and IC conditions in "0" directory. For eg you may mention its declaration AUTO::WRITE and AUTO::READ. You may also have to make some extra changes to comply with the boundary conditions adjustments.
I have never tried this before. But you may give it a try and tell back what did you get.
|All times are GMT -4. The time now is 15:45.|