CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[mesh manipulation] extrudeMesh limits Adaptive/Dynamic Mesh Refinenemt

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 22, 2017, 08:31
Default extrudeMesh limits Adaptive/Dynamic Mesh Refinenemt
  #1
Member
 
Peter
Join Date: Nov 2015
Location: Hamburg, Germany
Posts: 57
Rep Power: 10
potentialFoam is on a distinguished road
Dear Foamers,

I have an issue using the utility 'extrudeMesh' (foam version 1606+ or 4.1):
Using Snappy works fine for dynamic mesh refinement (or adaptive mesh refinement, AMR), like here
http://www.openfoam.com/version-v1606+/meshing.php
The problem occurs if 'extrudeMesh' is used after using Snappy - all cells with a hanging node will become protected from refinement.

I prepared a simple case to demonstrate this problem. This case is based on the motor bike tutorial:
$FOAM_TUTORIALS/multiphase/interDyMFoam/ras/motorBike
in version 1606 (see link above). It also works with version 4.1. This case can be downloaded here:
https://www.dropbox.com/s/3g40075603...rBike.zip?dl=0

Two figures illustrate this problem. The grey colored cells show the 'protectedCells' which cannot be refined.
Firstly, this result is gained for the standard tutorial case:


Secondly, the following figure shows the result after 'extrudeMesh' was used (one cell layer is extruded from the top boundary):


Three scripts lead to different results:
- 'runscript_likeTutorial': creates more or less the tutorial case (corresponds to the first figure).
- 'runscript_extrude1/2': uses 'extrudeMesh' in two different ways (lead to second figure).

Question: How can you use 'extrudeMesh' and dynamic mesh refinement together?

Best Regards,
Peter

Details:
1.) One problem is that the fields cellLevel and pointLevel in the directory constant/polyMesh need to be deleted for 'interDyMFoam'. In 'runscript_extrude1' they are deleted, in 'runscript_extrude2' the cellLevel field is kind of reconstructed with the 'refinementLevel'-utility. Both do not work (-> many protected cells).

Remarks:
same question asked here but not answered yet unfortunately:
extrudeMesh
and here:
Adaptive mesh refinement
I also asked this question on the ESI Foam help page
https://develop.openfoam.com/Develop...lus/issues/471
Please let me know if you have an idea - I am stuck here...
potentialFoam is offline   Reply With Quote

Old   January 25, 2018, 10:39
Default Problem solved ?
  #2
Member
 
Paul Palladium
Join Date: Jan 2016
Posts: 93
Rep Power: 10
Fauster is on a distinguished road
Did you get any solution to your problem ? I am facing the same problem.

Moreover when using interDyMFoam (and without extrudeMesh), non pure hexahedron cells are not refined (cells at junction between 2 different level). I tried to use the option mergePatchFaces of SHM without any change on the results.

The debugging option of dynamicRefineFvmesh gave me :

Quote:
Selected 0 cells for refinement out of 20719.
From 94 protected cells found 1627 protected points.
Selected 0 split points out of a possible 832.
which clearly shows that some cells are not refined

Faust

Last edited by Fauster; January 26, 2018 at 04:40.
Fauster is offline   Reply With Quote

Old   January 26, 2018, 04:43
Default
  #3
Member
 
Paul Palladium
Join Date: Jan 2016
Posts: 93
Rep Power: 10
Fauster is on a distinguished road
Quote:
Originally Posted by Fauster View Post
Did you get any solution to your problem ? I am facing the same problem.

Moreover when using interDyMFoam (and without extrudeMesh), non pure hexahedron cells are not refined (cells at junction between 2 different level). I tried to use the option mergePatchFaces of SHM without any change on the results.

The debugging option of dynamicRefineFvmesh gave me :



which clearly shows that some cells are not refined

Faust
A picture of the problem. Cells between levels are not refined as expected.

EDIT : I find the problem. It comes from how the script (./Allrun) is written. I will come back when I would have clearly find out the mistake.
Attached Images
File Type: jpg ProtectedCells.jpg (55.2 KB, 24 views)

Last edited by Fauster; January 26, 2018 at 07:31. Reason: Origine of the problem
Fauster is offline   Reply With Quote

Old   January 29, 2018, 03:42
Default
  #4
Member
 
Peter
Join Date: Nov 2015
Location: Hamburg, Germany
Posts: 57
Rep Power: 10
potentialFoam is on a distinguished road
Dear Paul,

probably this issue has been solved in v1712, see e.g.:
extrudeMesh
potentialFoam is offline   Reply With Quote

Reply


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
sliding mesh problem in CFX Saima CFX 46 September 11, 2021 07:38
decomposePar problem: Cell 0contains face labels out of range vaina74 OpenFOAM Pre-Processing 37 July 20, 2020 05:38
[snappyHexMesh] Problem with extrudeMesh sHM 2D airfoil mesh ssss OpenFOAM Meshing & Mesh Conversion 2 September 1, 2014 13:12
[mesh manipulation] Problem with extrudeMesh sHM 2D airfoil mesh ssss OpenFOAM Meshing & Mesh Conversion 0 September 1, 2014 02:57
[ICEM] Generating Mesh for STL Car in Windtunnel Simulation tommymoose ANSYS Meshing & Geometry 48 April 15, 2013 04:24


All times are GMT -4. The time now is 06:56.