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

Overset: mergeMeshes does not join overset patches

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By gcampana

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 14, 2022, 08:43
Question Overset: mergeMeshes does not join overset patches
  #1
New Member
 
Daniel Piñeiro
Join Date: May 2019
Location: Madrid
Posts: 4
Rep Power: 7
batdan is on a distinguished road
Hi everyone!

I am working on a multiphase problem using overset meshes with OpenFOAM v2012 and I'm trying to follow the advise of putting the overset type patches first in the boundary file. So, in the blockMeshDict of the background mesh, I have add the dummy overset boundary:

Code:
boundary
(
	oversetPatch
	{
		type overset;
		faces ();
	}
...
);
The output on the boundary file is the following. It surprises me that it does not include the line with the inGroups and it has de line with faces ();.

Code:
(
    oversetPatch
    {
        type            overset;
        nFaces          0;
        startFace       2518708;
        faces           ( );
    }
...
);

Then, in the overset mesh, the overset faces are in the same patch with the same previous name:

Code:
(
    oversetPatch
    {
        type            overset;
        inGroups        1(overset);
        nFaces          44287;
        startFace       3677752;
    }
...
);
The unexpected behaviour comes when running the mergeMeshes utility, because the following message appears: label patchIndex(const polyPatch& p) : Patch 0 named oversetPatch in mesh XXXX already exists, but patch types do not match. So the oversetPatch remains with zero faces and a new oversetPatch_XXXX is created with the overset faces.

Has anyone faced this problem and know how to solve it? Many thanks in advance!!

Last edited by batdan; September 16, 2022 at 03:04.
batdan is offline   Reply With Quote

Old   September 15, 2022, 11:14
Default
  #2
New Member
 
Daniel Piñeiro
Join Date: May 2019
Location: Madrid
Posts: 4
Rep Power: 7
batdan is on a distinguished road
Is it possible that the problem is related with the fact that the background mesh is obtained with blockMesh and the overset mesh with snappyHexMesh?
I've seen that the grammar of the boundary file generated with each utility is different, I mean:

Background mesh
Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  v2012                                 |
|   \\  /    A nd           | Website:  www.openfoam.com                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       polyBoundaryMesh;
    location    "constant/polyMesh";
    object      boundary;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

7
(
    oversetPatch
    {
        type            overset;
        nFaces          0;
        startFace       4172730;
        faces           ( );
    }
...
);
Overset mesh
Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  v2012                                 |
|   \\  /    A nd           | Website:  www.openfoam.com                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       polyBoundaryMesh;
    location    "constant/polyMesh";
    object      boundary;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

4
(
    oversetPatch
    {
        type            overset;
        inGroups        1(overset);
        nFaces          44512;
        startFace       3823684;
    }
...
);
batdan is offline   Reply With Quote

Old   December 20, 2022, 13:49
Default
  #3
New Member
 
Guillén Campaña Alonso
Join Date: Jun 2021
Posts: 6
Rep Power: 5
gcampana is on a distinguished road
Hi,

I believe the problem is that you are not loading up the overset library when you are creating the mesh.

Try to add:

Code:
libs            ("liboverset.so");
at the beggining of your controlDict file.
npb and PC6823 like this.
gcampana is offline   Reply With Quote

Old   December 21, 2022, 05:36
Default
  #4
New Member
 
Daniel Piñeiro
Join Date: May 2019
Location: Madrid
Posts: 4
Rep Power: 7
batdan is on a distinguished road
Yes, adding that line has solved the problem. Thank you very much!
batdan is offline   Reply With Quote

Old   September 26, 2023, 07:30
Default
  #5
New Member
 
chenpeng
Join Date: Sep 2023
Posts: 1
Rep Power: 0
PC6823 is on a distinguished road
so useful!!!!!
PC6823 is offline   Reply With Quote

Reply

Tags
mergemeshes, openfoam, overset, oversetpatch, patch


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
Foam::error::PrintStack almir OpenFOAM Running, Solving & CFD 92 May 21, 2024 08:56
Problem using AMI vinz OpenFOAM Running, Solving & CFD 298 November 13, 2023 09:19
2DOF Planning hull resistance study with overset CFD_fan OpenFOAM Running, Solving & CFD 7 July 13, 2021 06:03
Possible bug with stitchMesh and cyclics in OpenFoam Jack001 OpenFOAM Pre-Processing 0 May 21, 2016 09:00
Regarding periodic BC in ICEM generated grid Tarak OpenFOAM 32 April 30, 2013 15:46


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