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

Polytopochanger broken in 15x due to mesh format change

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 16, 2008, 05:45
Default Hi, I think that the polyt
  #1
Member
 
Andrew King
Join Date: Mar 2009
Location: Perth, Western Australia, Australia
Posts: 82
Rep Power: 17
andersking is on a distinguished road
Hi,

I think that the polytopochanger library is broken, mostly due to the new mesh format (no neighbours).
I have fixed a couple of these

http://www.cfd-online.com/OpenFOAM_D.../126/8450.html

http://www.cfd-online.com/OpenFOAM_D.../126/8631.html

however I have stumbled across some more (I think)
this time trying to use mixerFvMesh.

currently it segfaults with

#0 Foam::error::printStack(Foam:stream&) in "/home/anders/OpenFOAM/OpenFOAM-1.5.x/lib/linuxGccDPOpt/libOpenFOAM.so"
#1 Foam::sigSegv::sigSegvHandler(int) in "/home/anders/OpenFOAM/OpenFOAM-1.5.x/lib/linuxGccDPOpt/libOpenFOAM.so"
#2 Uninterpreted: [0xb7f50420]
#3 Foam::primitiveMesh::calcCells(Foam::List<foam::ce ll>&, Foam::UList<int> const&, Foam::UList<int> const&, int) in "/home/anders/OpenFOAM/OpenFOAM-1.5.x/lib/linuxGccDPOpt/libOpenFOAM.so"
#4 Foam::primitiveMesh::calcCells() const in "/home/anders/OpenFOAM/OpenFOAM-1.5.x/lib/linuxGccDPOpt/libOpenFOAM.so"
#5 Foam::primitiveMesh::cells() const in "/home/anders/OpenFOAM/OpenFOAM-1.5.x/lib/linuxGccDPOpt/libOpenFOAM.so"
#6 Foam::mixerFvMesh::calcMovingMasks() const in "/home/anders/OpenFOAM/OpenFOAM-1.5.x/lib/linuxGccDPOpt/libtopoChangerFvMesh.so"
#7 Foam::mixerFvMesh::movingPointsMask() const in "/home/anders/OpenFOAM/OpenFOAM-1.5.x/lib/linuxGccDPOpt/libtopoChangerFvMesh.so"
#8 Foam::mixerFvMesh::update() in "/home/anders/OpenFOAM/OpenFOAM-1.5.x/lib/linuxGccDPOpt/libtopoChangerFvMesh.so"
#9 main in "/home/anders/OpenFOAM/OpenFOAM-1.5.x/applications/bin/linuxGccDPOpt/icoDyMFoam"
#10 __libc_start_main in "/lib/tls/i686/cmov/libc.so.6"
#11 Foam::regIOobject::writeObject(Foam::IOstream::str eamFormat, Foam::IOstream::versionNumber, Foam::IOstream::compressionType) const in "/home/anders/OpenFOAM/OpenFOAM-1.5.x/applications/bin/linuxGccDPOpt/icoDyMFoam"
Segmentation fault


which I think I have traced to an access past the end of the neighbour label list.

I have been posting patches as I make them, however I'm not that familiar with the code and its a rather piecemeal approach.
It would help me greatly if anyone who knows the code better could go through and find a list of the problem areas (and patch them? - ;-) )

Note that this I am running from the latest git repo version.

Regards,
Andrew
__________________
Dr Andrew King
Fluid Dynamics Research Group
Curtin University
andersking is offline   Reply With Quote

Old   September 19, 2008, 23:09
Default I'm glad someone is looking in
  #2
New Member
 
Matt Wilkins
Join Date: Mar 2009
Location: Ottawa, Ontario, Canada
Posts: 1
Rep Power: 0
mwilkins is on a distinguished road
I'm glad someone is looking into this. I'm having similar problems trying to run the mixer2D case in OF-1.5. icoDyMFoam quits after calling polyModifyFace() from line 1693 of coupleSlidingInterface.C.

After uncommenting all of the debug messages from coupleSlidingInterface.C, I get this output:

old rich slave face: 4(551 560 561 552) old face: 4(551 560 561 552)
found edge: 88
Modifying slave stick-out face 1728 old face: 4(551 560 561 552) new face: 4(955 560 561 956)


Patch face has got a neighbour This is not allowed.
Face: 4(955 560 561 956) faceID:1728 owner:224 neighbour:135391008 patchID:4#0 Foam::error::printStack(Foam:stream&) in "/home/mwilkins/OpenFOAM/OpenFOAM-1.5.x/lib/linuxGccDPOpt/libOpenFOAM.so"
#1 Foam::error::abort() in "/home/mwilkins/OpenFOAM/OpenFOAM-1.5.x/lib/linuxGccDPOpt/libOpenFOAM.so"
#2 Foam::polyModifyFace::polyModifyFace(Foam::face const&, int, int, int, bool, int, bool, int, bool) in "/home/mwilkins/OpenFOAM/OpenFOAM-1.5.x/lib/linuxGccDPOpt/libdynamicMesh.so"
#3 Foam::slidingInterface::coupleInterface(Foam::poly TopoChange&) const in "/home/mwilkins/OpenFOAM/OpenFOAM-1.5.x/lib/linuxGccDPOpt/libdynamicMesh.so"
#4 Foam::slidingInterface::setRefinement(Foam::polyTo poChange&) const in "/home/mwilkins/OpenFOAM/OpenFOAM-1.5.x/lib/linuxGccDPOpt/libdynamicMesh.so"
#5 Foam::polyTopoChanger::topoChangeRequest() const in "/home/mwilkins/OpenFOAM/OpenFOAM-1.5.x/lib/linuxGccDPOpt/libdynamicMesh.so"
#6 Foam::polyTopoChanger::changeMesh(bool, bool, bool, bool) in "/home/mwilkins/OpenFOAM/OpenFOAM-1.5.x/lib/linuxGccDPOpt/libdynamicMesh.so"
#7 Foam::mixerFvMesh::update() in "/home/mwilkins/OpenFOAM/OpenFOAM-1.5.x/lib/linuxGccDPOpt/libtopoChangerFvMesh.s o"


Matt
mwilkins is offline   Reply With Quote

Old   November 28, 2008, 08:26
Default I am trying to run the example
  #3
New Member
 
michael patterson
Join Date: Mar 2009
Posts: 3
Rep Power: 17
mp340 is on a distinguished road
I am trying to run the examples mixer2D and mixer 3D using icoDyMFoam, both examples fail with the following output. Any thoughts on how to correct this?


icoDyMFoam
/*---------------------------------------------------------------------------*\
| ========= | |
| \ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \ / O peration | Version: 1.5 |
| \ / A nd | Web: http://www.OpenFOAM.org |
| \/ M anipulation | |
\*---------------------------------------------------------------------------*/
Exec : icoDyMFoam
Date : Nov 28 2008
Time : 12:23:06
Host : abpc-109.bath.ac.uk
PID : 18577
Case : /home/mp340/temp/OpenFOAM-1.5.x/tutorials/icoDyMFoam/mixer3D
nProcs : 1

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

Create mesh for time = 0

Selecting dynamicFvMesh mixerFvMesh
void mixerFvMesh::addZonesAndModifiers() : Zones and modifiers already present. Skipping.
Mixer mesh:
origin: (0 0 0)
axis: (0 0 1)
rpm: 10
Reading transportProperties

Reading field p

Reading field U

Reading/calculating face flux field phi

Reading field rAU if present


Starting time loop

Courant Number mean: 0 max: 0
deltaT = 0.000595238
Time = 0.000595238



Patch face has got a neighbour This is not allowed.
Face: 4(3768 2166 2167 3769) faceID:18112 owner:1440 neighbour:8598544 patchID:4#0 Foam::error::printStack(Foam:stream&) in "/home/mp340/OpenFOAM/OpenFOAM-1.5/lib/linux64GccDPOpt/libOpenFOAM.so"
#1 Foam::error::abort() in "/home/mp340/OpenFOAM/OpenFOAM-1.5/lib/linux64GccDPOpt/libOpenFOAM.so"
#2 Foam::polyModifyFace::polyModifyFace(Foam::face const&, int, int, int, bool, int, bool, int, bool) in "/home/mp340/OpenFOAM/OpenFOAM-1.5/lib/linux64GccDPOpt/libdynamicMesh.so"
#3 Foam::slidingInterface::coupleInterface(Foam::poly TopoChange&) const in "/home/mp340/OpenFOAM/OpenFOAM-1.5/lib/linux64GccDPOpt/libdynamicMesh.so"
#4 Foam::slidingInterface::setRefinement(Foam::polyTo poChange&) const in "/home/mp340/OpenFOAM/OpenFOAM-1.5/lib/linux64GccDPOpt/libdynamicMesh.so"
#5 Foam::polyTopoChanger::topoChangeRequest() const in "/home/mp340/OpenFOAM/OpenFOAM-1.5/lib/linux64GccDPOpt/libdynamicMesh.so"
#6 Foam::polyTopoChanger::changeMesh(bool, bool, bool, bool) in "/home/mp340/OpenFOAM/OpenFOAM-1.5/lib/linux64GccDPOpt/libdynamicMesh.so"
#7 Foam::mixerFvMesh::update() in "/home/mp340/OpenFOAM/OpenFOAM-1.5/lib/linux64GccDPOpt/libtopoChangerFvMesh.so"
#8 main in "/home/mp340/OpenFOAM/OpenFOAM-1.5/applications/bin/linux64GccDPOpt/icoDyMFoam"
#9 __libc_start_main in "/lib64/libc.so.6"
#10 Foam::regIOobject::writeObject(Foam::IOstream::str eamFormat, Foam::IOstream::versionNumber, Foam::IOstream::compressionType) const in "/home/mp340/OpenFOAM/OpenFOAM-1.5/applications/bin/linux64GccDPOpt/icoDyMFoam"


From function polyModifyFace::polyModifyFace
(
const face& f,
const label faceID,
const label owner,
const label neighbour,
const bool flipFaceFlux,
const label patchID,
const bool removeFromZone,
const label zoneID,
const bool zoneFlip
)
in file lnInclude/polyModifyFace.H at line 221.

FOAM aborting

Aborted
mp340 is offline   Reply With Quote

Old   January 6, 2009, 18:29
Default Hi, Having imported a spl
  #4
Senior Member
 
louisgag's Avatar
 
Louis Gagnon
Join Date: Mar 2009
Location: Stuttgart, Germany
Posts: 338
Rep Power: 18
louisgag is on a distinguished road
Send a message via ICQ to louisgag
Hi,


Having imported a split gmsh mesh merged using mergeMeshes, I was able to fix the "Patch face has got a neighbour This is not allowed." error by renaming patches that had the same name on both parts of the mesh (prior to patching) to different ones; however an error still remains (I get a segmentation fault error from, I think, calcMovingMasks).

Im looking into it at the moment,

regards,
-Louis
louisgag is offline   Reply With Quote

Old   January 7, 2009, 16:24
Default Simply, I am the one who wrote
  #5
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,907
Rep Power: 33
hjasak will become famous soon enough
Simply, I am the one who wrote this code and all the bug fixes are in 1.5-dev. I think you would be well advised to use this if you with to run any topo changer simulations. 1.5 and 1.5.x are broken beyond repair - they is at least 150 fixes behind.

Hrv
__________________
Hrvoje Jasak
Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk
hjasak is offline   Reply With Quote

Old   January 8, 2009, 21:20
Default Hi prof. Jasak, Exactly wha
  #6
Senior Member
 
louisgag's Avatar
 
Louis Gagnon
Join Date: Mar 2009
Location: Stuttgart, Germany
Posts: 338
Rep Power: 18
louisgag is on a distinguished road
Send a message via ICQ to louisgag
Hi prof. Jasak,

Exactly what I did and I am very satisfied with the results so far!

Thank you very much,

-Louis
louisgag is offline   Reply With Quote

Old   January 19, 2009, 05:34
Default hi Gagnon sir i am new
  #7
Senior Member
 
NAVEEN.K.M
Join Date: Mar 2009
Location: Bangalore, Karnataka, india
Posts: 114
Rep Power: 17
naveen is on a distinguished road
hi Gagnon sir

i am new to openfoam....i am facing difficult to install liftDrag tool in openfoam 1.4.1 on 64 bit machine..can u please send me compilation procedure of that..
naveen 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
Bug in layerAdditionRemoval change to OF15 mesh format andersking OpenFOAM Bugs 2 August 6, 2008 05:17
[blockMesh] BlockMeshmergePatchPairs polyTopoChanger benru OpenFOAM Meshing & Mesh Conversion 3 June 29, 2008 22:24
CFX mesh format Viet CFX 2 April 13, 2006 04:59
Fleunt5 mesh format indi Main CFD Forum 1 November 7, 2001 00:15
mesh file format Kai Kang FLUENT 0 March 2, 2001 17:07


All times are GMT -4. The time now is 11:41.