CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Bugs (http://www.cfd-online.com/Forums/openfoam-bugs/)
-   -   bug in mergeMeshes?! (http://www.cfd-online.com/Forums/openfoam-bugs/69565-bug-mergemeshes.html)

alexm October 27, 2009 12:46

bug in mergeMeshes?!
 
Hallo,
is there any known bug in mergeMeshes? I've tried to merge two simple meshes. I've modified the boundary-file of the master-case like described here
http://www.cfd-online.com/Forums/ope...h-problem.html

This is the result from OpenFOAM 1.6 (the 'same' in 1.6.x, 1.5-dev shows 'segmentation fault' only):


// * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Master: "." "case-master"
mesh to add: "." "case-add"

Create Times
Reading master mesh for time = 0
Create mesh

#0 Foam::error::printStack(Foam::Ostream&) in "/opt/OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt/libOpenFOAM.so"
#1 Foam::sigSegv::sigSegvHandler(int) in "/opt/OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt/libOpenFOAM.so"
#2 ?? in "/lib64/libc.so.6"
#3 Foam::List<int>::operator=(Foam::List<int> const&) in "/opt/OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt/libdynamicMesh.so"
#4 Foam::polyTopoChange::addFace(Foam::face const&, int, int, int, int, int, bool, int, int, bool) in "/opt/OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt/libdynamicMesh.so"
#5 Foam::polyTopoChange::addMesh(Foam::polyMesh const&, Foam::List<int> const&, Foam::List<int> const&, Foam::List<int> const&, Foam::List<int> const&) in "/opt/OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt/libdynamicMesh.so"
#6 Foam::polyTopoChange::polyTopoChange(Foam::polyMes h const&, bool) in "/opt/OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt/libdynamicMesh.so"
#7 Foam::mergePolyMesh::mergePolyMesh(Foam::IOobject const&) in "/opt/OpenFOAM/OpenFOAM-1.6/applications/bin/linux64GccDPOpt/mergeMeshes"
#8 main in "/opt/OpenFOAM/OpenFOAM-1.6/applications/bin/linux64GccDPOpt/mergeMeshes"
#9 __libc_start_main in "/lib64/libc.so.6"
#10 _start at /usr/src/packages/BUILD/glibc-2.9/csu/../sysdeps/x86_64/elf/start.S:116
Segmentation fault

-----------------------------------------------------------------------


Now I recompiled the 1.5-dev in Debug-Mode. This lead to the following output:

---------------------------------------------------
Master: "." "case-master"
mesh to add: "." "case-add"

Create Times
Reading master mesh for time = 0
Create mesh


start 2720 out of range 0 ... 2719

From function UList<T>::checkStart(const label)
in file /home/of15/OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM/lnInclude/UListI.H at line 79.

FOAM aborting

Aborted
---------------------------------------------------

Face 2720 should be the first face in case-add.
the following is a snip of the boundary-file of case-master

--------------------------------------------
.
.
.
minZ-1 // case master - last patch
{
type patch;
nFaces 200;
startFace 2520;
}

maxX-2 // case add - first patch
{
type patch;
nFaces 80;
startFace 2720;
}
.
.
.
--------------------------------------------

any idea, whats wrong?


maybe there is 'only' a problem in my system or in my head ...

I hope, someone can help ... thanks in advance ...

greetings, Axel

alexm October 30, 2009 21:36

sorry, no bug
 
Hello,
I am sorry, my fault ...
it is no bug in mergeMeshes ... now it is much more confortable, than I rememberd from earlier versions.

Two cases, one acts as master, the other as add case and simply performing

mergeMeshes . case-master . case-add

without any change in constant/polyMesh/boundary results in the merged mesh in the time 1 folder in the master-case.

That's all ... thanks to the programmers!!

Good night and greetings,

Axel


All times are GMT -4. The time now is 01:07.