CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[snappyHexMesh] addLayers in limited regions of geometry

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 28, 2012, 11:30
Default addLayers in limited regions of geometry
  #1
New Member
 
Chiara
Join Date: Oct 2012
Posts: 11
Rep Power: 13
Chia is on a distinguished road
Hi!

I am dealing with a complex geometry and I need to add layers only in a particular region of this geometry.

First of all, I create the background mesh and I used the snappyHexMesh dictionary to model the geometry and to add layers everywhere, except that I obtained a mesh with too many cells.
Thus I am asking if someone knows hot to create a sub-region in the .stl file in order to recall it in the addLayersControl and add layers only there. Or can I add layers in a limited region in an other way?

In other words, I wonder to be in a situation like this:

file.stl //or file.obj (with right header) //STL file name
{
type triSurfaceMesh;
name my_file; // user-assigned name
regions // definition of regions of stl
{
subregion_1 // STL-defined patch name
{
name my_first_subregion; // user-assigned patch name
}
subregion_2
{
name my_second_subregion;
}
}
}


and the addLayersControls would be

layers
{
my_first_subregion
{
nSurfaceLayers 4;
}
}


but unfortunately I don't know how to define these subregions in my stl file.

Thank you in advance,
Chiara
Chia is offline   Reply With Quote

Old   January 10, 2013, 04:15
Default
  #2
Senior Member
 
Eloïse
Join Date: Jul 2012
Location: Trondheim, Norway
Posts: 113
Rep Power: 13
Eloise is on a distinguished road
Hi Chiara,
You can split your geometry in 2 different stl files, import them both in snappyHexMesh and insert layers on only one of them.
I hope that helps,
Eloïse
Eloise is offline   Reply With Quote

Old   January 10, 2013, 04:33
Default
  #3
New Member
 
Chiara
Join Date: Oct 2012
Posts: 11
Rep Power: 13
Chia is on a distinguished road
Hi Eloise,

I have already split my geometry into two .stl file few weeks ago, exactly as you suggests, and it works very fine!

Thank you for the reply,

Chiara
Chia is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[snappyHexMesh] multiple regions Tobi OpenFOAM Meshing & Mesh Conversion 56 March 29, 2020 04:53
Turbomachinery, transient flow - temperature limited and pressure AMG divergence dariuszkoz FLUENT 0 January 2, 2019 08:43
Problem with divergence TDK FLUENT 13 December 14, 2018 06:00
chtMultiRegionFoam different properties in (fluid) region(s) volker1 OpenFOAM Pre-Processing 3 February 4, 2015 06:46
Problem Importing Geometry ProE to CFX fatb0y CFX 3 January 14, 2012 19:42


All times are GMT -4. The time now is 03:03.