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/)
-   -   AMR InterFoam : How to apply AMR only inside one region ?? (https://www.cfd-online.com/Forums/openfoam-solving/247143-amr-interfoam-how-apply-amr-only-inside-one-region.html)

kimou January 16, 2023 07:35

AMR InterFoam : How to apply AMR only inside one region ??
 
1 Attachment(s)
Greetings fellow Foamers,

I am currently working on a two-phase flow configuration involving a waterfall gravity driven system. I am utilizing Adaptive Mesh Refinement (AMR) to focus the refinement around the water jet. I am refining for alpha.water between 0.005 and 0.99 in order to capture the entirety of the water jet.

However, as shown in the attached image (bottom right corner), there are some liquid structures emerging outside of the jet. As a result, I am experiencing an excessive amount of cells.

Is there any tricks or techniques to impose AMR only within the designated red square in the figure :confused: ? Any suggestions would be greatly appreciated.


You will find attached the dynamicMeshDict script and the figure of the mesh in question?


--------------------------dynamicFvMesh---------------------------------


dynamicFvMesh dynamicRefineFvMesh;

// How often to refine
refineInterval 1;

// Field to be refinement on
field alpha.water;

// Refine field inbetween lower..upper
lowerRefineLevel 0.0005;
upperRefineLevel 0.999;

// If value < unrefineLevel unrefine
unrefineLevel 10;

// Have slower than 2:1 refinement
nBufferLayers 1;

// Refine cells only up to maxRefinement levels
maxRefinement 2;

// Stop refinement if maxCells reached
maxCells 100000000;


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