|
[Sponsors] |
[mesh manipulation] How to create patch after snappyHexMesh |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
December 15, 2008, 09:14 |
Hi,
an other problem relate
|
#21 |
New Member
Bastien Holbek
Join Date: Mar 2009
Posts: 15
Rep Power: 17 |
Hi,
an other problem related to the patch concerns curved surfaces. For example, i have an inlet which is a curved sufrace. Using snappyHexMesh, i can see that a important part of my inlet is made of holes! I think it comes form hexahedral cells which have been removed when 50% or more of their volume lies out of the region of interest. Could it be due to bad snapping parameters? I'm using this ones: // Settings for the snapping. snapControls { //- Number of patch smoothing iterations before finding correspondence // to surface nSmoothPatch 3; //- Relative distance for points to be attracted by surface feature point // or edge. True distance is this factor times local // maximum edge length. tolerance 4.0; //- Number of mesh displacement relaxation iterations. nSolveIter 30; //- Maximum number of snapping relaxation iterations. Should stop // before upon reaching a correct mesh. nRelaxIter 5; } Could someone help me? Thank you Bastien |
|
January 15, 2010, 18:09 |
|
#22 |
Senior Member
Claus Meister
Join Date: Aug 2009
Location: Wiesbaden, Germany
Posts: 241
Rep Power: 18 |
Hello bholbek,
you mentioned an interesting point. What is supposed to to with defualtPatches defined by the blockMeshDict. Have you already gotten some answer or how you have solved this problem. kind rigards |
|
February 17, 2012, 10:14 |
help on creating patches
|
#23 |
New Member
Elise
Join Date: Jan 2012
Posts: 15
Rep Power: 14 |
I'm trying to create patches from multiple stl files
I tried as posted in the previous post but I get the error: keyword castellatedMeshControl is undefined Is there something wrong with the file? |
|
March 11, 2012, 06:23 |
|
#24 |
Senior Member
Daniele Vicario
Join Date: Mar 2009
Location: Novara, Italy
Posts: 142
Rep Power: 17 |
Dear All,
I'm new to snappyhexmesh and me too I hit the same problem (holes into the patches). See pictures. I'm still doing tests but if someone knows the solution I appreciate, thanks. Daniele |
|
March 11, 2012, 07:21 |
|
#25 |
New Member
Elise
Join Date: Jan 2012
Posts: 15
Rep Power: 14 |
This is strange, did you set up different levels at the inlet?
Maybe try the same level of refinement and a bit higher level of refinement? |
|
March 11, 2012, 10:45 |
|
#26 |
Senior Member
Daniele Vicario
Join Date: Mar 2009
Location: Novara, Italy
Posts: 142
Rep Power: 17 |
Even with the same refinement setup I've got the same problem.
A little explanation of what I'm doing: I'm trying to setup patches using a stl files. It's just a simple pipe with an inlet and an outlet (oh, yes, what else...) I defined the faces in Salome and exported three different files: one is for full geometry, one for the inlet face and the other for the outlet one. In snappyHexMeshDict I use: Code:
geometry { CFD_TUBO.stl { type triSurfaceMesh; name tubo; } inlet.stl { type triSurfaceMesh; name inlet; } outlet.stl { type triSurfaceMesh; name outlet; } }; Code:
refinementSurfaces { tubo { level (2 3); } inlet { level (2 3); } outlet { level (2 3); } } Maybe the holes are caused by the file of the full geometry that already contains the faces included in the inlet/outlet stl files. I do this way because, in general, I think it would be more comfortable to define just the patches and leave the other faces undefined. I don't know whether I was able to explain... In order to define patches in stl geometry, do I have to export all and only the surfaces (sure, grouped by their function, in my case still 3 files) ? Daniele |
|
March 11, 2012, 11:17 |
|
#27 |
Senior Member
Daniele Vicario
Join Date: Mar 2009
Location: Novara, Italy
Posts: 142
Rep Power: 17 |
Yes, you have to define a stl file for each of the patches.
No overlapping faces seem to be allowed. This way I solved the holes problem. Daniele |
|
March 13, 2012, 10:42 |
|
#28 |
Senior Member
Mihai Pruna
Join Date: Apr 2010
Location: Boston
Posts: 195
Rep Power: 16 |
Does that mean that the option of having a single STL file with multiple solids does not work?
__________________
Mihai Pruna's Bio |
|
March 13, 2012, 11:06 |
|
#29 |
Senior Member
Daniele Vicario
Join Date: Mar 2009
Location: Novara, Italy
Posts: 142
Rep Power: 17 |
Well, I'm just a beginner so be carefull with my advices.
Anyway ,my problem was having several overlapping surfaces. I think there's no problem in having multiple not-overlapping patches. Daniele |
|
March 13, 2012, 11:51 |
|
#30 |
Senior Member
Mihai Pruna
Join Date: Apr 2010
Location: Boston
Posts: 195
Rep Power: 16 |
thanks Daniele
__________________
Mihai Pruna's Bio |
|
April 30, 2014, 08:19 |
|
#31 |
Member
Peng Liang
Join Date: Mar 2014
Posts: 60
Rep Power: 12 |
hi,Pei. I have the same problem with you. Have you solved your problem at last. If so, could you please tell me how is that solved?
|
|
May 6, 2014, 14:06 |
|
#32 |
Senior Member
|
Hi Daniele,
I'm facing same problem, do you mean work-flow should be like this? - realize your CAD geometry - explode into faces - make group of faces (inlet, outlet, walls) - export every single group of faces as STL ascii - write every geometry file into SHM dict. sounds correct to you? |
|
May 6, 2014, 15:49 |
|
#33 |
Senior Member
Daniele Vicario
Join Date: Mar 2009
Location: Novara, Italy
Posts: 142
Rep Power: 17 |
Yes. These are the steps I follow.
__________________
Daniele Vicario blueCFD2.1 - Windows 7 |
|
July 17, 2017, 09:15 |
Non-closedness after removing patch surfaces
|
#34 |
New Member
Dominik Pöltl
Join Date: Jul 2013
Location: Hamburg
Posts: 21
Rep Power: 13 |
Dear all,
2014 is long gone - still, I am thankful for your thread since I have the same issues: a fractured patch, just like user danvicas images show. I have compressed a minimal working example (MWE) below. Yes, I use individual .stl files for each patch. Yes, I use the same refinement levels. But geometrically speaking, it is impossible to remove overlapping surfaces - and that's a problem: I have the whole geometry (wall+inlet+outlet) as an .stl file. When I try to remove the outlet face in the whole file manually, e.g. by using blender, I create a non-closed geometry. Code:
snappyHexMesh -checkGeometry I even tried redistributing the nodes in the whole geometry:
How did you all get past this? Thanks again for the previous discussion! Yeru |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Commercial meshers] Fluent3DMeshToFoam | simvun | OpenFOAM Meshing & Mesh Conversion | 50 | January 19, 2020 16:33 |
[Other] dynamicTopoFVMesh and pointDisplacement | RandomUser | OpenFOAM Meshing & Mesh Conversion | 6 | April 26, 2018 08:30 |
[OpenFOAM.org] Compile OF 2.3 on Mac OS X .... the patch | gschaider | OpenFOAM Installation | 225 | August 25, 2015 20:43 |
Possible Bug in pimpleFoam (or createPatch) (or fluent3DMeshToFoam) | cfdonline2mohsen | OpenFOAM | 3 | October 21, 2013 10:28 |
chtMultiRegionFoam Tutorial | m.nichols19 | OpenFOAM | 12 | September 9, 2010 12:56 |