|
[Sponsors] |
[snappyHexMesh] snappyHexMesh - different patch names from stl file |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 30, 2017, 03:23 |
snappyHexMesh - different patch names from stl file
|
#1 |
New Member
Join Date: Aug 2015
Posts: 3
Rep Power: 11 |
I'm trying to mesh an stl file, and have all of the faces of the mesh have different names, so that I can specify different boundary conditions.
I have created an stl file which has all of the faces bounded by solid inlet endsolid inlet etc. However, when I run snappyHexMesh I am unable to retain these names in my mesh. It only gives me "flow_to_domain0 - patch" I have attached the case I am trying to mesh which shows my snappyHexMeshDict. I am aiming for flow inside a cylinder, I want to be able to specify inner wall boundaries, outer wall boundaries, and inlet and outlet. |
|
October 30, 2017, 17:14 |
|
#2 |
Senior Member
|
Hi,
Not quite sure I got right what you are trying to achieve with snappyHexMesh. Would you like to get something like on attached screenshot or you would like to introduce "internal" boundaries inside your cuboid mesh (to have two separate regions for CHT, for example)? |
|
October 30, 2017, 21:47 |
|
#3 |
New Member
Join Date: Aug 2015
Posts: 3
Rep Power: 11 |
Yes, multiple regions for CHT, the outer blockmesh, the hollow cylinder and the cylinder inside the hollow cylinder.
|
|
November 2, 2017, 04:57 |
|
#4 |
Senior Member
|
Then you have to supply more STLs, for all your regions. See snappyMultiRegionHeater for example.
|
|
November 21, 2017, 11:32 |
|
#5 |
New Member
Join Date: May 2017
Posts: 5
Rep Power: 9 |
Hi,
I am trying to achieve the same as cptldd (at least I think so). The first problem I hit, when running cptldd's setup is that I do not get the same result as alexeym. While his mesh shows different patches, mine does only show a single one. I attahed a picture of it. What am I doing wrong? EDIT: https://sites.google.com/site/snappy...t#TOC-geometry says cptldd used the right method to assign patches, correct? |
|
November 21, 2017, 13:25 |
|
#6 |
Senior Member
|
Hi,
To learn "what you are doing wrong", you have to post more info. Ideally your case, cause to answer your question, people need to look at your STLs and at your snappyHexMeshDict. |
|
November 22, 2017, 07:54 |
|
#7 |
New Member
Join Date: May 2017
Posts: 5
Rep Power: 9 |
Hi alexeym,
it took me some time, but i pieced things together from tutorials and videos of Tobias Holzmann. In case someone else has the same problems i had, this is how I solved it. boundary conditions: - I have one solid domain enclosed by a fluid domain - the boundary solid <-> fluid should be created automatically - the fluid domain is supposed to be created with different patches (inlet, outlet, wall) - the fluid domain as well as the solid domain are both defined by STL files - in my case the outlet is not plane The first tutorial i used was this: https://www.youtube.com/watch?v=fayEbpze3I4 It shows the process of how to set up the fluid domain with different patches and an arbitrary shape (4.4 and 4.5 videos might be useful as well) The second tutorial I used is from Tobias as well: https://holzmann-cfd.de/openfoam/ope...region-meshing In this one he created an example of how to mesh more than one region. The problem with this one was, that he used the backgroundmesh to assign inlet and outlet, hence arbitrary inlet and outlet forms were not possible. After combining both tutorials my snappyHexMeshDict now looks like this: (please keep in mind that this excerpt describes my setup of a ball inside a tube not the setup of cptlddd) Code:
geometry { Rohrmesh.stl { type triSurfaceMesh; regions { inlet {name inlet; } outlet {name outlet; } wall {name wall; } } } Kugelmesh.stl { type triSurfaceMesh; name kugel; } }; Code:
refinementSurfaces { Rohrmesh.stl { level (1 1); regions { inlet { level (1 1); patchInfo { type patch; }} outlet { level (1 1); patchInfo { type patch; }} wall { level (2 2); patchInfo { type wall; }} } } kugel { level (4 4); faceZone kugel; cellZone kugel; cellZoneInside inside; } } So far this seems to work, I will probably find new problems on the way Last edited by mabubel; November 22, 2017 at 07:55. Reason: Added reminder about my dict file |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM.org] Error creating ParaView-4.1.0 OpenFOAM 2.3.0 | tlcoons | OpenFOAM Installation | 13 | April 20, 2016 18:34 |
[swak4Foam] swak4foam building problem | GGerber | OpenFOAM Community Contributions | 54 | April 24, 2015 17:02 |
[swak4Foam] funkySetFields compilation error | tayo | OpenFOAM Community Contributions | 39 | December 3, 2012 06:18 |
Version 15 on Mac OS X | gschaider | OpenFOAM Installation | 113 | December 2, 2009 11:23 |
DecomposePar links against liblamso0 with OpenMPI | jens_klostermann | OpenFOAM Bugs | 11 | June 28, 2007 18:51 |