|
[Sponsors] |
[snappyHexMesh] Patch volume refinement in sHMD |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 11, 2015, 11:58 |
Patch volume refinement in sHMD
|
#1 |
Member
shashank moghe
Join Date: Feb 2015
Posts: 32
Rep Power: 11 |
Hello all,
I want to region-refine a patch (imported from a .stl file and included in the "regions" section of the Geometry subdict in sHMD [with the same name as the .stl patch]). Has anyone tried it yet? As it goes, the geometry of my .stl file is such that I cannot use a refinementBox/refinementSphere/etc. for this volume refinement. It would be simpler for me to just refine the region bounded by this patch. Any ideas as to what the syntax should be? This documentation link says it is possible (at the bottom of the page). http://www.openfoam.org/version2.2.0/snappyHexMesh.php "users can now specify surface names for region refinement using wildcards; " Any help will be highly appreciated. P.S: I tried these permutations before and failed to refine the region: 1) stlFileName.stl_patchname 2) "patchame" 3) "patchname_*" |
|
August 13, 2015, 19:33 |
|
#2 |
New Member
Join Date: Mar 2015
Posts: 10
Rep Power: 11 |
||
August 13, 2015, 20:46 |
|
#3 |
Member
shashank moghe
Join Date: Feb 2015
Posts: 32
Rep Power: 11 |
I have seen this tutorial. Unless I missed the part where he talks about this problem.
|
|
August 14, 2015, 01:36 |
|
#4 |
Member
DanielP
Join Date: Jan 2015
Posts: 33
Rep Power: 11 |
Hello Smog,
In snappyHexMesh, one can define patch(es) or surfaces geometry in the following ways. The first method is when the blockMesh mesh is defined. I recommend that you id all 6 surfaces with patches names.In other words, inside the blockMeshdict defines each patch with the 4 summit points (in counter-clockwise fashion). The second method is inside the stl file. Each patch can be separated likes this: --------------------------------------------------------------- solid outlet facet normal +0.0000000E+00 +0.0000000E+00 +1.0000000E+00 outer loop vertex -2.0000000E-01 +1.5000000E-01 +2.0000000E+00 vertex -2.0000000E-01 -1.5000000E-01 +2.0000000E+00 vertex +2.0000000E-01 -1.5000000E-01 +2.0000000E+00 endloop endfacet … endsolid ------------------------------------------------------------------- Once all that works fine, you can define inside the Geometry section a region as follows: regions { outlet { name my_outlet; } } See also the links below: https://sites.google.com/site/snappy...t#TOC-geometry https://openfoamwiki.net/images/f/f0...SlidesOFW7.pdf Daniel |
|
August 14, 2015, 15:04 |
|
#5 |
Member
shashank moghe
Join Date: Feb 2015
Posts: 32
Rep Power: 11 |
That is not an answer to my question. I can very well define a patch in the sHMD, my question was whether I can refine the volume bounded by a patch.
|
|
August 14, 2015, 16:52 |
|
#6 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings to all!
I was wondering about this today as well and diagnosed it with a modified case of the tutorial "heatTransfer/buoyantBoussinesqSimpleFoam/iglooWithFridges". I added a new STL file to the case named "sliced0.stl" and then added the following to "system/snappyHexMeshDict":
Code:
sliced0.stl { type triSurfaceMesh; name mySlice; Therefore, you cannot use the name for one of the solids inside the STL and you should be careful with whether you renamed the main STL geometry. This is the feature that smog pointed out from the release notes for OpenFOAM 2.2.0 . Best regards, Bruno
__________________
|
|
September 1, 2015, 11:51 |
|
#7 |
Member
shashank moghe
Join Date: Feb 2015
Posts: 32
Rep Power: 11 |
Thank you Bruno for the reply. Exactly what I needed, although I worked around the problem in the same way as you did- adding another .stl file and refining that region. Works perfectly fine.
|
|
Tags |
mesh refinement, refinementregion |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
how to set periodic boundary conditions | Ganesh | FLUENT | 15 | November 18, 2020 07:09 |
Problem of simulating of small droplet with radius of 2mm | liguifan | OpenFOAM Running, Solving & CFD | 5 | June 3, 2014 03:53 |
[blockMesh] non-orthogonal faces and incorrect orientation? | nennbs | OpenFOAM Meshing & Mesh Conversion | 7 | April 17, 2013 06:42 |
[Other] StarToFoam error | Kart | OpenFOAM Meshing & Mesh Conversion | 1 | February 4, 2010 05:38 |
On the damBreak4phaseFine cases | paean | OpenFOAM Running, Solving & CFD | 0 | November 14, 2008 22:14 |