CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

StitchMesh crashes on circular patch with singularity

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 16, 2018, 10:14
Default StitchMesh crashes on circular patch with singularity
  #1
Senior Member
 
NablaDyn's Avatar
 
Join Date: Oct 2015
Location: Germany
Posts: 100
Rep Power: 10
NablaDyn is on a distinguished road
Dear FOAMers,

I've been searching the forum and the web now for hours but did not find a solution to my problem. Hopefully you can help me:

I need to stitch two planar, perfectly aligned patches (<auto5> and <auto14>). By 'perfectly', I mean 'perfectly'. They share identical coordinates at all of their nodes (see images).

For no obvious or understandable reason, stitchMesh always crashes when I try to stitch the patches, throwing the following message:
Code:
/*---------------------------------------------------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  4.1                                   |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
Build  : 4.1
Exec   : stitchMesh -overwrite auto5 auto14
Date   : Jan 16 2018
Time   : 15:51:51
Host   : "thinkpadYoga"
PID    : 3267
Case   : /home/lichtmes/Desktop/bloomyboxxExamples/MegaCadsMesh/mesh
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Allowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create mesh for time = 0

Coupling patches auto5 and auto14
Resulting (internal) faces will be in faceZone auto5auto14CutFaceZone

Note: the overall area covered by both patches should be identical ("integral" interface).
If this is not the case use the -partial option

Adding pointZone auto5auto14CutPointZone at index 0
Adding faceZone auto5auto14MasterZone at index 0
Adding faceZone auto5auto14SlaveZone at index 1
Adding faceZone auto5auto14CutFaceZone at index 2
Sliding interface parameters:
pointMergeTol            : 0.05
edgeMergeTol             : 0.01
nFacesPerSlaveEdge       : 5
edgeFaceEscapeLimit      : 10
integralAdjTol           : 0.05
edgeMasterCatchFraction  : 0.4
edgeCoPlanarTol          : 0.8
edgeEndCutoffTol         : 0.0001
Reading all current volfields
#0  Foam::error::printStack(Foam::Ostream&) at ??:?
#1  Foam::sigFpe::sigHandler(int) at ??:?
#2  ? in "/lib/x86_64-linux-gnu/libc.so.6"
#3  Foam::slidingInterface::projectPoints() const at ??:?
#4  Foam::slidingInterface::changeTopology() const at ??:?
#5  Foam::polyTopoChanger::changeTopology() const at ??:?
#6  Foam::polyTopoChanger::changeMesh(bool, bool, bool, bool) at ??:?
#7  ? at ??:?
#8  __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
#9  ? at ??:?
Floating point exception (core dumped)
Don't mind the integral match. I've tried also -perfect and -partial, even in different mesh configurations. For instance, I set the same volume mesh up in a way that the first patch was way larger than the second. No change here. Thus, I assume it has to do with the singularity of the patches. The volume mesh, that these patches belong to, has been generated by revolving a 2D base mesh.

I'm pretty sure, there is no easy way to workaround stitchMesh's inability to perform as intended. Any help or suggestions would be appreciated, anyway.

Kind regards and thanks in advance,

Martin
Attached Images
File Type: png patch1.png (37.9 KB, 21 views)
File Type: png patch2.png (38.4 KB, 21 views)
File Type: png bothPatches.png (38.0 KB, 19 views)

Last edited by NablaDyn; January 16, 2018 at 10:15. Reason: Typo
NablaDyn is offline   Reply With Quote

Old   March 5, 2019, 06:01
Default
  #2
Senior Member
 
NablaDyn's Avatar
 
Join Date: Oct 2015
Location: Germany
Posts: 100
Rep Power: 10
NablaDyn is on a distinguished road
After a deeper review of the issue, I found out that the problem was due to degenerate edges in the faces. This means, The triangles around the singularity were defined as quads with each of them having two coincident nodes. Maybe the info is helpful to others.


I corrected the faces and stitchMesh now operates as wished.
NablaDyn is offline   Reply With Quote

Old   November 2, 2020, 08:59
Default
  #3
Member
 
giovanni
Join Date: Sep 2017
Posts: 50
Rep Power: 8
gian93 is on a distinguished road
Hi NablaDyn , I have the same issue.. could you explain in a more detailed way how you solved the problem? thanks
gian93 is offline   Reply With Quote

Old   November 2, 2020, 10:51
Default
  #4
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,685
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
Quote:
Originally Posted by gian93 View Post
Hi NablaDyn , I have the same issue.. could you explain in a more detailed way how you solved the problem? thanks

You should definitely mention which version of stitchMesh you are using. Some changes went into OpenFOAM-v1712 to support a dictionary-driven version, but also fixed a few addressing bugs. Not sure if you would still have issues with OpenFOAM-v1912, v2006 etc, but would be good to know.
olesen is offline   Reply With Quote

Old   November 2, 2020, 15:32
Default
  #5
Senior Member
 
NablaDyn's Avatar
 
Join Date: Oct 2015
Location: Germany
Posts: 100
Rep Power: 10
NablaDyn is on a distinguished road
Quote:
Originally Posted by gian93 View Post
Hi NablaDyn , I have the same issue.. could you explain in a more detailed way how you solved the problem? thanks
Hi,
In my case, the problem was related to how the individual faces of the patch were compiled by a custom software I wrote. The patch you see in the images has a singularity at its centre, whereby those faces connected to the singularity need to be triangular instead of quadrilateral. But, in an older version, my software was coded to compile any tri face as a degenerate quad, however with two collapsed vertices - simply out of 'coding convenience'. Thus, also any tri in my mesh consisted of four nodes and stitchMesh could not handle it. After fixing my software such that degenerate quads are now described - more consistently - as tris, stitchMesh behaves as expected.
NablaDyn 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
y+ and u+ values with low-Re RANS turbulence models: utility + testcase florian_krause OpenFOAM 114 August 23, 2023 05:37
[Commercial meshers] Mesh conversion problem (fluent3DMeshToFoam) Aadhavan OpenFOAM Meshing & Mesh Conversion 2 March 8, 2018 01:47
Possible bug with stitchMesh and cyclics in OpenFoam Jack001 OpenFOAM Pre-Processing 0 May 21, 2016 08:00
[Other] How to create an MRF zone ? aminem OpenFOAM Meshing & Mesh Conversion 2 December 8, 2014 10:45
[mesh manipulation] stitchMesh problems along patch edges ribe OpenFOAM Meshing & Mesh Conversion 2 March 5, 2013 15:25


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