CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Mesh Utilities

How to create patch after snappyHexMesh

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

Like Tree4Likes

Reply
 
LinkBack Thread Tools Display Modes
Old   December 15, 2008, 09:14
Default Hi, an other problem relate
  #21
New Member
 
Bastien Holbek
Join Date: Mar 2009
Posts: 15
Rep Power: 8
bholbek is on a distinguished road
Hi,

an other problem related to the patch concerns curved surfaces. For example, i have an inlet which is a curved sufrace. Using snappyHexMesh, i can see that a important part of my inlet is made of holes! I think it comes form hexahedral cells which have been removed when 50% or more of their volume lies out of the region of interest.
Could it be due to bad snapping parameters?
I'm using this ones:
// Settings for the snapping.
snapControls
{
//- Number of patch smoothing iterations before finding correspondence
// to surface
nSmoothPatch 3;

//- Relative distance for points to be attracted by surface feature point
// or edge. True distance is this factor times local
// maximum edge length.
tolerance 4.0;

//- Number of mesh displacement relaxation iterations.
nSolveIter 30;

//- Maximum number of snapping relaxation iterations. Should stop
// before upon reaching a correct mesh.
nRelaxIter 5;
}

Could someone help me?

Thank you

Bastien
bholbek is offline   Reply With Quote

Old   January 15, 2010, 18:09
Default
  #22
Senior Member
 
Claus Meister
Join Date: Aug 2009
Location: Wiesbaden, Germany
Posts: 241
Rep Power: 8
idrama is on a distinguished road
Hello bholbek,

you mentioned an interesting point. What is supposed to to with defualtPatches defined by the blockMeshDict. Have you already gotten some answer or how you have solved this problem.

kind rigards
idrama is offline   Reply With Quote

Old   February 17, 2012, 10:14
Default help on creating patches
  #23
New Member
 
Elise
Join Date: Jan 2012
Posts: 15
Rep Power: 5
Elise is on a distinguished road
I'm trying to create patches from multiple stl files
I tried as posted in the previous post
but I get the error:

keyword castellatedMeshControl is undefined
Is there something wrong with the file?
Attached Files
File Type: txt blockMeshDict.txt (1.6 KB, 20 views)
File Type: txt snappyHexMeshDict.txt (10.4 KB, 50 views)
Elise is offline   Reply With Quote

Old   March 11, 2012, 06:23
Default
  #24
Senior Member
 
Daniele Vicario
Join Date: Mar 2009
Location: Novara, Italy
Posts: 142
Rep Power: 8
danvica is on a distinguished road
Dear All,
I'm new to snappyhexmesh and me too I hit the same problem (holes into the patches).

See pictures.


I'm still doing tests but if someone knows the solution I appreciate, thanks.

Daniele
Attached Images
File Type: jpg tubo_bound1.jpg (29.9 KB, 77 views)
File Type: jpg tubo_inlet.jpg (39.6 KB, 54 views)
danvica is offline   Reply With Quote

Old   March 11, 2012, 07:21
Default
  #25
New Member
 
Elise
Join Date: Jan 2012
Posts: 15
Rep Power: 5
Elise is on a distinguished road
This is strange, did you set up different levels at the inlet?
Maybe try the same level of refinement and a bit higher level of refinement?
Elise is offline   Reply With Quote

Old   March 11, 2012, 10:45
Default
  #26
Senior Member
 
Daniele Vicario
Join Date: Mar 2009
Location: Novara, Italy
Posts: 142
Rep Power: 8
danvica is on a distinguished road
Even with the same refinement setup I've got the same problem.

A little explanation of what I'm doing:

I'm trying to setup patches using a stl files.
It's just a simple pipe with an inlet and an outlet (oh, yes, what else...)

I defined the faces in Salome and exported three different files: one is for full geometry, one for the inlet face and the other for the outlet one.

In snappyHexMeshDict I use:

Code:
geometry
{
    CFD_TUBO.stl
    {
        type triSurfaceMesh;
        name tubo;
    }
 
    inlet.stl
    {
        type triSurfaceMesh;
        name inlet;
    }
 
    outlet.stl
    {
        type triSurfaceMesh;
        name outlet;
    }
};
and

Code:
refinementSurfaces
  {
        tubo
        {
            level (2 3);
        }
        inlet
        {
            level (2 3);
        }
        outlet
        {
            level (2 3);
        }
    }
This way the meshing goes without errors and parafoam let me see the patches (but with the holes).

Maybe the holes are caused by the file of the full geometry that already contains the faces included in the inlet/outlet stl files.

I do this way because, in general, I think it would be more comfortable to define just the patches and leave the other faces undefined.

I don't know whether I was able to explain...
In order to define patches in stl geometry, do I have to export all and only the surfaces (sure, grouped by their function, in my case still 3 files) ?


Daniele
danvica is offline   Reply With Quote

Old   March 11, 2012, 11:17
Default
  #27
Senior Member
 
Daniele Vicario
Join Date: Mar 2009
Location: Novara, Italy
Posts: 142
Rep Power: 8
danvica is on a distinguished road
Yes, you have to define a stl file for each of the patches.

No overlapping faces seem to be allowed.

This way I solved the holes problem.

Daniele
danvica is offline   Reply With Quote

Old   March 13, 2012, 10:42
Default
  #28
Senior Member
 
Mihai Pruna
Join Date: Apr 2010
Location: Boston
Posts: 190
Blog Entries: 1
Rep Power: 7
mihaipruna is on a distinguished road
Quote:
Originally Posted by danvica View Post
Yes, you have to define a stl file for each of the patches.

No overlapping faces seem to be allowed.

This way I solved the holes problem.

Daniele
Does that mean that the option of having a single STL file with multiple solids does not work?
__________________
Mihai Pruna's Bio
mihaipruna is offline   Reply With Quote

Old   March 13, 2012, 11:06
Default
  #29
Senior Member
 
Daniele Vicario
Join Date: Mar 2009
Location: Novara, Italy
Posts: 142
Rep Power: 8
danvica is on a distinguished road
Well, I'm just a beginner so be carefull with my advices.

Anyway ,my problem was having several overlapping surfaces.

I think there's no problem in having multiple not-overlapping patches.

Daniele
danvica is offline   Reply With Quote

Old   March 13, 2012, 11:51
Default
  #30
Senior Member
 
Mihai Pruna
Join Date: Apr 2010
Location: Boston
Posts: 190
Blog Entries: 1
Rep Power: 7
mihaipruna is on a distinguished road
thanks Daniele
__________________
Mihai Pruna's Bio
mihaipruna is offline   Reply With Quote

Old   April 30, 2014, 07:19
Default
  #31
New Member
 
Peng Liang
Join Date: Mar 2014
Posts: 24
Rep Power: 3
tjliang is on a distinguished road
hi,Pei. I have the same problem with you. Have you solved your problem at last. If so, could you please tell me how is that solved?
tjliang is offline   Reply With Quote

Old   May 6, 2014, 13:06
Default
  #32
Senior Member
 
M. C.
Join Date: May 2013
Location: Italy
Posts: 100
Rep Power: 4
student666 is on a distinguished road
Hi Daniele,

I'm facing same problem, do you mean work-flow should be like this?

- realize your CAD geometry
- explode into faces
- make group of faces (inlet, outlet, walls)
- export every single group of faces as STL ascii
- write every geometry file into SHM dict.

sounds correct to you?
student666 is offline   Reply With Quote

Old   May 6, 2014, 14:49
Default
  #33
Senior Member
 
Daniele Vicario
Join Date: Mar 2009
Location: Novara, Italy
Posts: 142
Rep Power: 8
danvica is on a distinguished road
Yes. These are the steps I follow.
student666 likes this.
__________________
Daniele Vicario

blueCFD2.1 - Windows 7
danvica is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I create a Mesh to be read by ANSYSCFX from SnappyHexMesh paulo OpenFOAM Mesh Utilities 4 November 27, 2012 11:13
HELP NEEDED HOW TO MAP VALUES FROM PATCH OF ONE MESH TO PATCH OF ANOTHER MESH mkraposhin OpenFOAM Running, Solving & CFD 3 September 4, 2011 09:42
SnappyHexMesh erik023 OpenFOAM Mesh Utilities 19 October 17, 2010 10:09
SnappyHexMesh STL patch naming gregorv OpenFOAM Mesh Utilities 1 July 23, 2008 07:05
create the patch for radiation massimo CD-adapco 1 February 10, 2003 13:16


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