Improving mesh quality + inlet too coarse
Hi everybody,
I have used sHM to create a mesh that I use for flow simulations inside a channel, principally with simpleFoam, icoFoam and pisoFoam. I would like to improve the quality of my mesh. If my current mesh looks ok and seems to give acceptable results when solving, when looking at the quality of the mesh on ParaView, the mesh doesn't look so good ( a lot of weird triangles): https://drive.google.com/file/d/0B_T...ew?usp=sharinghttps://drive.google.com/file/d/0B_T...Mm8/view?pli=1 https://drive.google.com/file/d/0B_T...ew?usp=sharing My snappyHexMeshDict is: Code:
castellatedMesh true; Code:
Create time Besides, I think I have a problem with the meshing of my patches (an inlet and an outlet). They are supposed to be perfect disks but, when checking their shape on ParaView, it's not so good: https://drive.google.com/file/d/0B_T...bHM/view?pli=1 https://drive.google.com/file/d/0B_T...ew?usp=sharing Any suggestions how I could increase the quality of my mesh and if there is any solution for obtaining a better inlet? Martin |
Hello Martin, I have notice that you are using the ExpliciteFeatureSnap method to project the Castellated mesh on to the surface geometry STL file. But you are missing a file that needs to be generated with the surfaceFeatureExtract utility.This file needs to be defined in the castellatedMeshControls dictionary.The surfaceFeatureExtract utility will output a folder name extendedFeatureEdgeMesh.It will be located in the constant/ directory.To be able to generate the file, you will need a file (another dictionary file !) named surfaceFeatureExtractDict to be located in the system/ folder.I have added a copy below. You only need to copy in any text editor and save the file as surfaceFeatureExtractDict. 1) Create surfaceFeatureExtractDict file with text editor ?????????????????????????????????????????????????? ???????? copy of surfaceFeatureExtractDict ?????????????????????????????????????????????????? ?????? ------------------------------------------------------------------------- /*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 2.3.0 | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; object surfaceFeatureExtractDict; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // coil.stl { // How to obtain raw features (extractFromFile || extractFromSurface) extractionMethod extractFromSurface; extractFromSurfaceCoeffs { // Mark edges whose adjacent surface normals are at an angle less // than includedAngle as features // - 0 : selects no edges // - 180: selects all edges includedAngle 180; } // Write options // Write features to obj format for postprocessing writeObj yes; } // ************************************************** *********************** // ?????????????????????????????????????????????????? ???????? 2)At the Linux command line, type the following command: surfaceFeatureExtract 3) In the snappyHexMeshdict add the following code in the castellatedMeshControls under the feature function: features ( { file "coil.extendedFeatureEdgeMesh"; level 3; } ); 4) Run snappyHexMesh again. Good luck, Daniel
|
Hi, sorry for the late feedback to your answer Daniel!
Indeed, in my snapControls dictionary I had the following code lines; Code:
snapControls Code:
snapControls So when executing sHM with these new settings, the obtained mesh has still the same not so good-looking shape that the mesh linked in my first post... Is it possible to to better do you think? or I should consider my mesh acceptable? I'll try to create a mesh by SurafceExtracting and will go back to you as well. |
So I've just created a new mesh but this time with the surface extraction.
My snappyHexMeshDict, surfaceFeatureExtractDict and results from checkMesh are the following: Code:
castellatedMesh true; Code:
inlet.stl Code:
Create time https://drive.google.com/file/d/0B_T...ew?usp=sharing I'm sure it's possible to obtain a better resolution but I really don't know with which parameters from the sHMDict to play with.. Any help will be welcomed ;) |
Last attempt to have help :)
After playing with the features of the castellatedMeshDict, and a bit with the snapDict ones, I didn't obtain anything good-looking for my mesh... |
Hello Martin,
In my experience, you should be able to generate a good quality mesh for a cylinder channel. Try using the .surfaceFeatureExtract files and not the emesh files. Also, I have noticed that you set the tolerance to 4 in the Snap dictionary. Try it with a value of 1. Thanks, Daniel |
All times are GMT -4. The time now is 18:02. |