CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Bugs (https://www.cfd-online.com/Forums/openfoam-bugs/)
-   -   MergeMeshes fails on OF141 any fix (https://www.cfd-online.com/Forums/openfoam-bugs/62504-mergemeshes-fails-of141-any-fix.html)

hsieh January 4, 2008 22:54

Hi, I tried to merge two me
 
Hi,

I tried to merge two meshes together using mergeMeshes util, but, failed. Is this a bug, or did I do something wrong? I did not have the same problem with OF-1.3.

Error Messages attached.

Pei
-----------------------
phsieh@jali:~/OpenFOAM/phsieh-1.4.1/run> mergeMeshes . genesysReagentPackRotation_hex1 . genesysReagentPackRotation_tet1
/*---------------------------------------------------------------------------*\
| ========= | |
| \ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \ / O peration | Version: 1.4.1 |
| \ / A nd | Web: http://www.openfoam.org |
| \/ M anipulation | |
\*---------------------------------------------------------------------------*/

Exec : mergeMeshes . genesysReagentPackRotation_hex1 . genesysReagentPackRotation_tet1
Date : Jan 04 2008
Time : 22:31:09
Host : jali
PID : 19400
Root :
Case :
Nprocs : 1
Master: "." "genesysReagentPackRotation_hex1"
mesh to add: "." "genesysReagentPackRotation_tet1"

Create Times
Reading master mesh for time = 0.6
Create mesh

Reading mesh to add for time = 0.6
Create mesh

Writing combined mesh to 0.60001
patch names:
4
(
walls
internal
wall1
inter1
)

patch types:
4
(
wall
patch
wall
patch
)

point zone names:
0
(
)

face zone names:
0
(
)

cell zone names:
0
(
)

Copying old patches
Adding new patches.


--> FOAM FATAL ERROR : polyTopoChange was constructed with a mesh with 2 patches.
The mesh now provided has a different number of patches 4 which is illegal
#0 Foam::error::printStack(Foam:http://www.cfd-online.com/OpenFOAM_D...part/proud.gifstream&) in "/home/phsieh/OpenFOAM/OpenFOAM-1.4.1/lib/linux64GccDPOpt/libOpenFOAM.so"
#1 Foam::error::abort() in "/home/phsieh/OpenFOAM/OpenFOAM-1.4.1/lib/linux64GccDPOpt/libOpenFOAM.so"
#2 Foam::polyTopoChange::compactAndReorder(Foam::poly Mesh const&, bool, Foam::Field<foam::vector<double> >&, Foam::List<int>&, Foam::List<int>&, Foam::List<foam::objectmap>&, Foam::List<foam::objectmap>&, Foam::List<foam::objectmap>&, Foam::List<foam::objectmap>&, Foam::List<foam::objectmap>&, Foam::List<foam::objectmap>&, Foam::List<foam::objectmap>&, Foam::List<foam::objectmap>&, Foam::List<foam::map<int> >&, Foam::List<int>&, Foam::List<int>&, Foam::List<foam::map<int> >&) in "/home/phsieh/OpenFOAM/OpenFOAM-1.4.1/lib/linux64GccDPOpt/libdynamicMesh.so"
#3 Foam::polyTopoChange::changeMesh(Foam::polyMesh&, bool, bool) in "/home/phsieh/OpenFOAM/OpenFOAM-1.4.1/lib/linux64GccDPOpt/libdynamicMesh.so"
#4 Foam::polyMesh::readUpdate() in "/home/phsieh/OpenFOAM/OpenFOAM-1.4.1/applications/bin/linux64GccDPOpt/mergeMesh es"
#5 main in "/home/phsieh/OpenFOAM/OpenFOAM-1.4.1/applications/bin/linux64GccDPOpt/mergeMesh es"
#6 __libc_start_main in "/lib64/libc.so.6"
#7 __gxx_personality_v0 in "/home/phsieh/OpenFOAM/OpenFOAM-1.4.1/applications/bin/linux64GccDPOpt/mergeMesh es"


From function polyTopoChange::compactAndReorder(polyMesh&, const bool, const bool)
in file polyTopoChange/polyTopoChange/polyTopoChange.C at line 1631.

FOAM aborting

Aborted
phsieh@jali:~/OpenFOAM/phsieh-1.4.1/run>

hsieh January 4, 2008 23:08

Hi, OK, I found how to use
 
Hi,

OK, I found how to use mergeMeshes now.

Before performing mergeMeshes, in boundary of the master case, I need to add the patchnames (from the second case) with nFaces 0 - some kind of place holder. Then, mergeMeshes was successful.

Pei

agrewal January 29, 2008 15:04

Hi Pei, I am trying to do the
 
Hi Pei,
I am trying to do the same without success. I followed your solution and added a patch in the boundary of the master mesh which contains the interfacing patch from the slave mesh, i.e.

Mesh_rest_dom_front
{
type patch;
nFaces 0;
startFace 17860;
}

This did not work (Note, I incremented the number of patches at the top of the boundary file). Can you please provide more details of the changes you made to the master boundary file.
Thanks
Anant

hsieh January 29, 2008 19:31

Hi, Anant, Could you pleas
 
Hi, Anant,

Could you please either email me your case files or post the error messages? I recalled that, all I need to do is to add the patches (in the slave mesh) to the master mesh prior to mergeMeshes.

Did you check the meshes that you are trying to merge "before" merging? Are the meshes checked out fine (checkMesh . case) prior to merging?

Pei
phsieh2005@yahoo.com


All times are GMT -4. The time now is 00:31.