Add layer function in snappyHexMesh
1 Attachment(s)
Hi,
I am trying to prepare for a bigger project about a CFD simulation of an heat exchanger. Therefore I practice all the functions and stuff I would like to do with a simple pipe. The meshing for the pipe without the layer works without problems. As far as I understood snappy needs another .stl file where the layer starts.. So I inserted one (Picture). Now it does not work and the error message is quite strange: Code:
/*---------------------------------------------------------------------------*\| ========= | || \\ / F ield | OpenFOAM: The Open Source CFD Toolbox || \\ / O peration | Version: 2.4.0 || \\ / A nd | Web: www.OpenFOAM.org || \\/ M anipulation | |\*---------------------------------------------------------------------------*/Build : 2.4.0-f0842aea0e77Exec : snappyHexMesh -overwriteDate : Aug 28 2015Time : 20:51:38Host : "gerrit-HP-Pavilion-dv7-Notebook-PC"PID : 4636Case : /home/gerrit/OpenFOAM/gerrit-2.4.0/Own/incompressible/pipe_simple_foamnProcs : 1sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).fileModificationChecking : Monitoring run-time modified files using timeStampMasterallowSystemOperations : Allowing user-supplied system call operations// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //Create timeCreate mesh for time = 0Read mesh in = 0.02 s--> FOAM FATAL IO ERROR: "ill defined primitiveEntry starting at keyword 'nSurfaceLayers' on line 97 and ending at line 158"file: /home/gerrit/OpenFOAM/gerrit-2.4.0/Own/incompressible/pipe_simple_foam/system/snappyHexMeshDict at line 158. From function primitiveEntry::readEntry(const dictionary&, Istream&) in file lnInclude/IOerror.C at line 132.FOAM exiting In a tutorial I saw once, that in the snappyHexMeshDict the layer.stl has as well an eMesh file. In my case it does not, although it is defined in the surfaceFeatureExtractDict file. Is the eMesh necessary? And if so, how should it get that? Thanks a lot! Gerrit |
This error message looks like you have a syntax error in your snappyHexMeshDict. Can you post it?
SHM does not require another STL outlining the location of the layer; the layer itself is automatically generated. You only need the geometry of your actual simulation object or domain, and a blockMesh grid. the surfaceFeatureExtractDict is used with the surfaceFeatureExtract utility to try and recover more edges and align the snaps to them well. You can use this prior to SHM if you would like. |
Hi,
thank you for your reply. I could solve my problem manly on my own. Instead of using the addLayersControls, I used refinementRegions which was what I searched for from the beginning. My aim was only to have a more fine mesh at the walls. As far as I understood the refinementRegions is the easier way to go for this, isn't it? What pros does the addLayersControl offer, compared to the refinementRegions? Thanks! |
Well addLayersControl and refinementRegions don't really do the same thing. refinementRegions is useful for bulk refinement of the core mesh away or near the wall. addLayersControl is useful for resolving near-wall gradients. These are apples-to-oranges and often can complement each other, but never replace each other.
|
Ok, that sound interesting :-)
I just attach a short version of my snappyHexMeshDict. As you can easily see, I do not really use the addLayersControl until now, but I am always open for new. The patch "lights" referees to something like a pipe in the flow, where it would be nice to have a fine mesh around it. Would that be simply the following? Code:
layers Code:
Thanks! |
All times are GMT -4. The time now is 23:23. |