|
[Sponsors] |
[snappyHexMesh] Baffle/Cyclic Region Creation |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 31, 2012, 11:47 |
Baffle/Cyclic Region Creation
|
#1 |
Member
Brock Lee
Join Date: Sep 2012
Location: Midwest
Posts: 40
Rep Power: 14 |
Hey, I'm looking to create an internal face / baffle region / cyclic region in snappyHexMesh. I know that openFOAM doesn't support internal boundaries unless they're cyclics. My goal is to be able to define these cyclic regions while meshing so that they are placed in the boundary file upon mesh completion.
What is the best way to do this and where do they get defined in SnappyHexMeshDict? Or do these cyclics need to be manually entered in some way after the mesh is created? Last edited by GRAUPS; October 31, 2012 at 13:07. |
|
October 31, 2012, 15:46 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Greetings Brock,
A quick search seems to have proved my suspicions (thanks @oga_shin):
Bruno
__________________
|
|
October 31, 2012, 16:15 |
|
#3 |
Member
Brock Lee
Join Date: Sep 2012
Location: Midwest
Posts: 40
Rep Power: 14 |
Bruno, thank you so much for your reply. Looking at the snappyHexMeshDict example in your first suggestion has answered most of my questions. I had been simply finding and grepping in the $FOAM_TUTORIALS... but the one you found is a more complete example with explanations. Thanks!
|
|
November 16, 2012, 06:47 |
|
#4 |
New Member
Unnikrishnan
Join Date: Nov 2012
Posts: 8
Rep Power: 14 |
Dear Bruno,
I work with SnappyHexMesh, i am also used to creating mesh with MultiRegionMesh using Emesh and Cellzone in SnappyHexMesh. 1. when the patches or faces created by SnappyHexMesh why are they defined as walls and not defined as patches?? 2. Is it possible to convert these faces(walls) to Internalfaces after SnappyHexMesh ?? I have 3 closed .Stl files, 2 of which form the Fluid region (air) & one the solid region housing both the Liquid region. & Interface between the 2 liquids i need to provide a Velocity Boundary condition and I want flow throught the Patch.. So i am defining it as Cyclic... 3. Am i correct.. or is there any other way?? 4. Does the baffle region act as a cyclic patch if i define. 5. Where do i define about the baffle region in blockMesh or in SnappyHexMesh?? Now i have defined it in blockMesh. baffle1Wall_1 { type cyclic; // sampleMode nearestPatchFace; // sampleRegion region0; // samplePatch baffle1Wall_0; matchTolerance 0.0001; neighbourPatch baffle1Wall_0; offsetMode uniform; offset (0 0 0); faces (); } blockMesh works & I can see the Boundary condition baffle1Wall_0 { type cyclic; nFaces 0; startFace 8090; matchTolerance 0.0001; neighbourPatch baffle1Wall_1; } Regards Unnikrishnan. |
|
November 20, 2012, 08:56 |
|
#5 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Greetings Unnikrishnan and welcome to the forum!
OK, several of your questions are answered in the main "snappyHexMeshDict" example located at "applications/utilities/mesh/generation/snappyHexMesh/snappyHexMeshDict" in OpenFOAM's main directory. You can browse online here: https://github.com/OpenFOAM/OpenFOAM...xMeshDict#L122 - start reading from line number 122. For the rest, I suggest you study the case and solution presented here: http://www.cfd-online.com/Forums/ope...nd-tunnel.html - there you'll find out how to create baffles from "faceZones"! As for cyclics vs baffles:
Bruno
__________________
|
|
November 21, 2012, 10:35 |
|
#6 |
New Member
Unnikrishnan
Join Date: Nov 2012
Posts: 8
Rep Power: 14 |
Thanks Bruno
The Tip was very helpful, I am using the patchInfo type Patch in the SnappyHexMeshDict. fan2 { // Surface-wise min and max refinement level level (3 4); patchInfo // Solved my problem { type patch; // Solved my problem, Now using a patch } faceZone fan2; cellZone fan2; cellZoneInside inside; } fan3 { // Surface-wise min and max refinement level level (3 4); patchInfo { // type cyclic; // Not possible to use cyclic, as it requires a neighbouring patch, // i am not able to provide a neighbouring patch. type patch; } faceZone fan3; cellZone fan3; cellZoneInside inside; } If you have some or details explaining where is the correct option to use patch, baffle and cyclic... (i.e a patch is like an Internal face, where you can define B.C right??) Also: This is my second ID( ZKW ), I am very old member (Unnikrsn), Have to use company ID as posting pictures related to work. Thanks & Regards Unnikrishnan. |
|
November 22, 2012, 06:30 |
|
#7 |
New Member
Unnikrishnan
Join Date: Nov 2012
Posts: 8
Rep Power: 14 |
Dear Bruno,
I have the following setup in my case. A Fan circulating air within a closed Body ( Setup for PIV simulation ). as previous discussed in this thread I have created the Patch using the option in snappyHexMesh patchInfo { type patch; } I have a air (fluidRegion) and fan (fluidRegion) I define the Velocity Boundary Condition in air/U and the fan/U file. air/U internalField uniform (0.5 0 0 ); boundaryField { air_to_fan { type inletOutlet; value $internalField; inletValue uniform ( 1.5035 0 0 ); } } fan/U internalField uniform (3.07 0 0 ); boundaryField { fan1_to_air { type inletOutlet; value $internalField; inletValue uniform ( 1.5035 0 0 ); } } My results doesn't match the experimental results. Am I using the correct Boundary condition ?? Should i use the Cyclic patch, For Cyclic Patch, how should i use the cyclic patch. I also would like to have some help if using the fan or the fanPressure patch a correct option. OpenFOAM-2.1.x/src/finiteVolume/fields/fvPatchFields/derived/fanPressure While using this patch, I can only define Pressure, is there an option to define Velocity. My main problem is that it is a single air Region. I am not sure. How to solve this problem.. kindly help. Thanks & Regards Unnikrishnan. |
|
November 23, 2012, 16:08 |
|
#8 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Hi Unnikrishnan,
Sorry, but unfortunately I'm not familiar enough with how the fan system works I suggest you ask this at the dedicated sub-forum: Running, Solving & CFD Best regards, Bruno
__________________
|
|
Tags |
baffle, cyclic bc, snappyhesmeshdict |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problem simulating the temperature rise in a composite material (chtMultiRegionFoam) | Adam_K | OpenFOAM Running, Solving & CFD | 2 | March 27, 2019 07:51 |
[mesh manipulation] Importing Multiple Meshes | thomasnwalshiii | OpenFOAM Meshing & Mesh Conversion | 18 | December 19, 2015 19:57 |
[Commercial meshers] Using starToFoam | clo | OpenFOAM Meshing & Mesh Conversion | 33 | September 26, 2012 05:04 |
[Other] StarToFoam error | Kart | OpenFOAM Meshing & Mesh Conversion | 1 | February 4, 2010 05:38 |
[Gmsh] Import gmsh msh to Foam | adorean | OpenFOAM Meshing & Mesh Conversion | 24 | April 27, 2005 09:19 |