CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

[isoAdvector] Volume conservation issues isoAdvector with Adaptive Mesh Refinement

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 30, 2023, 09:36
Question [isoAdvector] Volume conservation issues isoAdvector with Adaptive Mesh Refinement
  #1
New Member
 
Dennis Thuy
Join Date: Apr 2022
Posts: 10
Rep Power: 4
dplthuy is on a distinguished road
Dear Foamers,

I’m using the compressibleInterIsoFoam solver in combination with adaptive mesh refinement (AMR) for simulations of droplet breakup in a shock tube (2D). Instead of the standard AMR library, I use the library by Rettenmaier et al. (https://www.sciencedirect.com/scienc...699?via%3Dihub), which allows quadtree refinement for 2D simulations. Since I am using OpenFOAM version 19.06, I use the version of this AMR library that is ported to ESI version by Henning Scheufler (https://github.com/HenningScheufler/multiDimAMR). In my simulation, I am experiencing several issues that seem to be related to the combination of isoAdvector with AMR.

In my simulations, I use the plicRDF surface reconstruction scheme. The interface of the droplet has three levels of refinement compared to the base grid. Refinement happens based on the local magnitude of the reconstructed distance function (RDF). As can be seen in the attached figure ‘dropletHoles.jpg’, holes appear inside the droplet as it is deforming. The formation of these holes triggers a massive loss in liquid volume in the simulations (up to 20%). These holes do not form when performing the simulation without AMR.

The formation of these holes is related to the surface cell tolerance that is used in isoAdvector (surfCellTol in fvSolution). As shown in the attached ‘alphaDeviation.jpg’, there exist cells inside the droplet, whose alpha value deviates slightly from 1, within the surfCellTol. alphaDeviation denotes the magnitude of these deviations. As time progresses and the droplet deforms, this deviation can be seen to progress inwards into the droplet, and increase in magnitude. This seems to be caused by the continuous merging of refined cells behind the leading edge of the droplet. At some point, this alphaDeviation reaches a value larger than the surfCellTol. Suddenly, these internal cells are seen as interface cells by the solver, and the reconstruction scheme starts to enforce the interface in these cells, creating the holes.

As the merging of cells inside the droplet seems to cause the issue, I proceeded to adapt the refinement criteria for the AMR. In addition to refining the surface based on the RDF magnitude, all cells with volume fraction larger than 1E-3 are also refined, resulting in refinement throughout the droplet. This indeed prevents the creation of holes. It comes with a different issue however. As shown in ‘volumeConservation.jpg’, at the moment when the first breakup occurs (see dropletBreakup.jpg), a significant increase in the (normalized) liquid volume occurs. The combination of the AMR and isoAdvector seems to perform very well in the first stage of the simulation, volume is conserved there. Only from the moment of breakup onwards, issues start to occur.

For comparison, I performed the same simulation with compressibleInterDyMFoam. This case is perfectly volume conservative. To me, this indicates that the cause of the issue must lie in the difference between interDyMFoam and interIsoFoam when AMR is applied to them. When studying the source code for both solvers, it seems that this difference lies in the surface reconstruction that is required for interIsoFoam when the mesh changes, which is not required in interDyMFoam.

I referred to the paper by Henning Scheufler and Johan Roenby (https://www.sciencedirect.com/scienc...269?via%3Dihub) on the reconstruction schemes for some more detail. In the section on the plicRDF method (3.3), the following is written regarding the calculation of the surface normal:
Quote:
“In regions where the interface is highly under-resolved, there is no point in spending a lot of iterations on getting the interface normal to converge to a fine tolerance. Therefore, interface cells where the average normal angle to the surrounding interface cell normal is greater than 30 degrees are not reiterated and are excluded from the residual calculations.”
This directly makes a connection between the creation of small droplets (potentially some are under-resolved) when breakup of the droplet starts, and acceptance of a larger error for the surface normal in the reconstruction scheme. It is however not clear to me if and why this should have an impact on the volume conservation. In my view, volume conservation is more related to the flux calculations than the surface reconstruction. I am however not sure if and how these are related. Any help or insights are deeply appreciated!

Kind regards,
Dennis
Attached Images
File Type: jpg dropletHoles.jpg (46.7 KB, 22 views)
File Type: jpg volumeConservation.jpg (68.7 KB, 21 views)
File Type: jpg alphaDeviation.jpg (161.6 KB, 24 views)
File Type: jpg dropletBreakup.jpg (18.2 KB, 16 views)
dplthuy is offline   Reply With Quote

Reply

Tags
amr, isoadvector, openfoam 2106, surface reconstruction, volume conservation


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to use "translation" in solidBodyMotionFunction in OpenFOAM rupesh_w OpenFOAM Running, Solving & CFD 5 August 16, 2016 04:27
[snappyHexMesh] SnappyHexMesh for internal Flow vishwa OpenFOAM Meshing & Mesh Conversion 24 June 27, 2016 08:54
[mesh manipulation] Importing Multiple Meshes thomasnwalshiii OpenFOAM Meshing & Mesh Conversion 18 December 19, 2015 18:57
[blockMesh] BlockMesh FOAM warning gaottino OpenFOAM Meshing & Mesh Conversion 7 July 19, 2010 14:11
Adaptive Mesh Refinement using Finite Volume mayank Main CFD Forum 0 October 14, 2002 01:02


All times are GMT -4. The time now is 23:42.