CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   customized sonicFoam for adaptive mesh refinement - how to define mass flow BCs? (https://www.cfd-online.com/Forums/openfoam/83035-customized-sonicfoam-adaptive-mesh-refinement-how-define-mass-flow-bcs.html)

shockley December 12, 2010 14:51

customized sonicFoam for adaptive mesh refinement - how to define mass flow BCs?
 
1 Attachment(s)
Hello foamers,

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.

Any suggestion?

nakul December 13, 2010 04:04

Hi,

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 00:01.