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

[snappyHexMesh] snappyHexMesh and chtMultiRegionFoam DomainNameProblem

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 4, 2014, 09:39
Default snappyHexMesh and chtMultiRegionFoam DomainNameProblem
  #1
New Member
 
Join Date: Mar 2014
Posts: 23
Rep Power: 12
michael157 is on a distinguished road
Hello,

I have a problem in setting up a chtMultiRegionFoam case with snappyHexMesh.
Following these steps i did:

- blockMesh with a block 50mmx50mmx50mm
- loaded stl for fluid and for solid region (fluid region cube 50x50x50 and solid a plate 2x10x10)
- SnappyHexMesh is then running and finishes without any error
- When I am doing splitMeshRegions I got a result which i don understand. I get two domains which is correct but for the fluid domain i got domain0 as name but I think i have specified that this domain should be named "air".

Has anybody any idea what am I doing wrong?
Thanks very much in advance for your help.
michael157 is offline   Reply With Quote

Old   September 9, 2014, 05:42
Default
  #2
dzi
Member
 
Join Date: Nov 2011
Location: Berlin
Posts: 31
Rep Power: 14
dzi is on a distinguished road
Hi michael,
you could try to give a name for that region in blockMeshDict like

Code:
...
blocks          
(
hex (0 1 2 3 4 5 6 7) myfluidname (10 10 10 ) simpleGrading (1 1 1)
);
...
I believe, if your block has the same dimensions like the stl, you dont have to read the fluid.stl. Maybe this is confusing for shm.
best dirk
dzi is offline   Reply With Quote

Old   September 17, 2014, 14:43
Default
  #3
New Member
 
Join Date: Mar 2014
Posts: 23
Rep Power: 12
michael157 is on a distinguished road
Hi dirk,
thanks for your help. I now get only two regions but it is a bit strange how this is done.

I have the following situation. A plate is the solid domain (with contact to two sides min_X and max_X two the boundary) as you can see in the picture 01.jpg and the surrounding is the fluid domain.

My blockMeshDict looks as follows:
------------------------------------------------
blocks
(
hex (0 1 2 3 4 5 6 7) air (10 10 10) simpleGrading (1 1 1)
);
------------------------------------------------
so I think the fluid domain is defined well.

The solid domain is defined with an STL file named platte.stl.

--------------------------------------------------
geometry
{ platte.stl
{
type triSurfaceMesh;
name platte;
}
};

castellatedMeshControls
{
maxLocalCells 100000;
maxGlobalCells 2000000;
minRefinementCells 10;
maxLoadUnbalance 0.10;
nCellsBetweenLevels 1;
resolveFeatureAngle 80;

features
(
{
file "platte.eMesh";
level 1;
}
);

refinementSurfaces
{
platte
{
level (3 6);
faceZone platte;
cellZone platte;
cellZoneInside inside;

}
}
refinementRegions { }
locationInMesh (0 0 0);
allowFreeStandingZoneFaces true;
---------------------------------------------
I think the red highlighted text is how I define the second domain solid named platte.

In the /constant RegionProberties I have defined the following:
-----------------------------------
regions
(
fluid (air)
solid (platte)
);
-----------------------------------
so the air should be the fluid domain and the platte should be the solid domain.

What i got is quite strange (the colours stand for one region so red=region0 and blue=region1)
What am I doing wrong?

Attached Images
File Type: jpg 01.jpg (14.6 KB, 36 views)
File Type: jpg regions.jpg (21.8 KB, 40 views)
michael157 is offline   Reply With Quote

Old   September 22, 2014, 03:30
Default
  #4
New Member
 
Join Date: Mar 2014
Posts: 23
Rep Power: 12
michael157 is on a distinguished road
Hello,

I have solved the problem. The surfaces of the STL files has been orientated in two different direction (see picture). The colours stands for the orientation, grey orientation to the outside, yellow orientation to the inside.
That was the problem for that.
Attached Images
File Type: jpg orientation_platte.jpg (12.8 KB, 48 views)
michael157 is offline   Reply With Quote

Old   September 22, 2014, 06:13
Default
  #5
dzi
Member
 
Join Date: Nov 2011
Location: Berlin
Posts: 31
Rep Power: 14
dzi is on a distinguished road
hi and sorry that I had no time to have a look at it so far ... but thanks for your update anyway!
regards dirk
dzi is offline   Reply With Quote

Reply


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] Creating multiple multiple cell zones with snappyHexMesh - a newbie in deep water! divergence OpenFOAM Meshing & Mesh Conversion 0 January 23, 2019 04:17
[snappyHexMesh] snappyHexMesh creates inverted meshes emat OpenFOAM Meshing & Mesh Conversion 3 March 27, 2017 08:50
[snappyHexMesh] Using snappyHexMesh for multiple enclosed regions richard_vega OpenFOAM Meshing & Mesh Conversion 0 November 13, 2014 14:28
[snappyHexMesh] Multi Stl snappyHexMesh kalyangoparaju OpenFOAM Meshing & Mesh Conversion 2 November 15, 2012 09:16
chtMultiRegionFoam + Sphere mesh + makeCellset.setSets alvora OpenFOAM 4 March 22, 2011 02:44


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