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

[mesh manipulation] How to create patch after snappyHexMesh

Register Blogs Community New Posts Updated Threads Search

Like Tree4Likes

Reply
 
LinkBack Thread Tools Search this Thread 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: 17
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: 18
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: 14
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, 30 views)
File Type: txt snappyHexMeshDict.txt (10.4 KB, 73 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: 17
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, 143 views)
File Type: jpg tubo_inlet.jpg (39.6 KB, 94 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: 14
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: 17
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: 17
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: 195
Rep Power: 16
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: 17
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: 195
Rep Power: 16
mihaipruna is on a distinguished road
thanks Daniele
__________________
Mihai Pruna's Bio
mihaipruna is offline   Reply With Quote

Old   April 30, 2014, 08:19
Default
  #31
Member
 
Peng Liang
Join Date: Mar 2014
Posts: 60
Rep Power: 12
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, 14:06
Default
  #32
Senior Member
 
M. C.
Join Date: May 2013
Location: Italy
Posts: 286
Blog Entries: 6
Rep Power: 17
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, 15:49
Default
  #33
Senior Member
 
Daniele Vicario
Join Date: Mar 2009
Location: Novara, Italy
Posts: 142
Rep Power: 17
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

Old   July 17, 2017, 09:15
Default Non-closedness after removing patch surfaces
  #34
New Member
 
Dominik Pöltl
Join Date: Jul 2013
Location: Hamburg
Posts: 21
Rep Power: 13
Yeru is on a distinguished road
Dear all,

2014 is long gone - still, I am thankful for your thread since I have the same issues: a fractured patch, just like user danvicas images show.

I have compressed a minimal working example (MWE) below.

Yes, I use individual .stl files for each patch.
Yes, I use the same refinement levels.

But geometrically speaking, it is impossible to remove overlapping surfaces - and that's a problem:
I have the whole geometry (wall+inlet+outlet) as an .stl file.

When I try to remove the outlet face in the whole file manually, e.g. by using blender, I create a non-closed geometry.
Code:
snappyHexMesh -checkGeometry
complains and cannot run.

I even tried redistributing the nodes in the whole geometry:
  1. compare whole.stl with inlet.stl (or outlet.stl)
    save difference in diff.stl
    (contains all inlet nodes)
  2. erase lines in diff.stl from whole.stl
    (s.t. whole.stl contains only non-inlet nodes)
  3. append diff.stl to whole.stl
    (s.t. all inlet nodes are in their own "solid/endsolid" wrapping.
And still, it doesn't work


How did you all get past this?
Thanks again for the previous discussion!
Yeru
Attached Files
File Type: zip MWE.zip (137.1 KB, 7 views)
Yeru 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
[Commercial meshers] Fluent3DMeshToFoam simvun OpenFOAM Meshing & Mesh Conversion 50 January 19, 2020 16:33
[Other] dynamicTopoFVMesh and pointDisplacement RandomUser OpenFOAM Meshing & Mesh Conversion 6 April 26, 2018 08:30
[OpenFOAM.org] Compile OF 2.3 on Mac OS X .... the patch gschaider OpenFOAM Installation 225 August 25, 2015 20:43
Possible Bug in pimpleFoam (or createPatch) (or fluent3DMeshToFoam) cfdonline2mohsen OpenFOAM 3 October 21, 2013 10:28
chtMultiRegionFoam Tutorial m.nichols19 OpenFOAM 12 September 9, 2010 12:56


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