CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Bugs (https://www.cfd-online.com/Forums/openfoam-bugs/)
-   -   Given field does not correspond to patch (https://www.cfd-online.com/Forums/openfoam-bugs/62330-given-field-does-not-correspond-patch.html)

david January 28, 2009 16:10

Hi all I have a problem wit
 
Hi all

I have a problem with the MRFSimpleFOAM tutorial case mixerVessel2D. The problem occurs only with OpenFOAM-1.5.x, not with OpenFOAM-1.5 (same ThirdParty tools). When I select the front or back patches in paraFoam together with field values (U,p,k or epsilon), paraFoam crashes with the following error:

[david@localhost mixerVessel2D]$ paraFoam


given field does not correspond to patch. Patch size: 3072 field size: 0#0 Foam::error::printStack(Foam:http://www.cfd-online.com/OpenFOAM_D...part/proud.gifstream&) in "/home/david/OpenFOAM/OpenFOAM-1.5.x/lib/linuxGccDPOpt/libOpenFOAM.so"
#1 Foam::error::abort() in "/home/david/OpenFOAM/OpenFOAM-1.5.x/lib/linuxGccDPOpt/libOpenFOAM.so"
#2 Foam::tmp<foam::field<foam::vector<double> > > Foam::PrimitivePatchInterpolation<foam::primitivep atch<foam::face,> > const&, Foam::Vector<double> > >::faceToPointInterpolate<foam::vector<double> >(Foam::Field<foam::vector<double> > const&) const in "/home/david/OpenFOAM/OpenFOAM-1.5.x/lib/linuxGccDPOpt/libfiniteVolume.so"
#3 void Foam::vtkPV3Foam::convertVolFields<foam::vector<do uble> >(Foam::fvMesh const&, Foam::volPointInterpolation const&, Foam::PtrList<foam::primitivepatchinterpolation<fo am::primitivepatch<foam::face, > > const&, Foam::Vector<double> > > > const&, Foam::IOobjectList const&, vtkDataArraySelection*, vtkMultiBlockDataSet*) addr2line failed
#4 Foam::vtkPV3Foam::updateVolFields(vtkMultiBlockDat aSet*) in "/home/david/OpenFOAM/OpenFOAM-1.5.x/lib/linuxGccDPOpt/libvtkPV3Foam.so"
#5 Foam::vtkPV3Foam::Update(vtkMultiBlockDataSet*) in "/home/david/OpenFOAM/OpenFOAM-1.5.x/lib/linuxGccDPOpt/libvtkPV3Foam.so"
#6 vtkPV3FoamReader::RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*) in "/home/david/OpenFOAM/OpenFOAM-1.5.x/lib/linuxGccDPOpt/libPV3FoamReader_SM.so"
#7 vtkMultiBlockDataSetAlgorithm::ProcessRequest(vtkI nformation*, vtkInformationVector**, vtkInformationVector*) addr2line failed
#8 vtkExecutive::CallAlgorithm(vtkInformation*, int, vtkInformationVector**, vtkInformationVector*) in "/home/david/OpenFOAM/ThirdParty/ParaView3.3-cvs/platforms/linuxGcc/bin/libvtkFi ltering.so.pv3.3"
#9 vtkDemandDrivenPipeline::ExecuteData(vtkInformatio n*, vtkInformationVector**, vtkInformationVector*) in "/home/david/OpenFOAM/ThirdParty/ParaView3.3-cvs/platforms/linuxGcc/bin/libvtkFi ltering.so.pv3.3"
#10 vtkCompositeDataPipeline::ExecuteData(vtkInformati on*, vtkInformationVector**, vtkInformationVector*) in "/home/david/OpenFOAM/ThirdParty/ParaView3.3-cvs/platforms/linuxGcc/bin/libvtkFi ltering.so.pv3.3"
#11 vtkDemandDrivenPipeline::ProcessRequest(vtkInforma tion*, vtkInformationVector**, vtkInformationVector*) addr2line failed
#12 vtkStreamingDemandDrivenPipeline::ProcessRequest(v tkInformation*, vtkInformationVector**, vtkInformationVector*) addr2line failed
#13 vtkCompositeDataPipeline::ProcessRequest(vtkInform ation*, vtkInformationVector**, vtkInformationVector*) in "/home/david/OpenFOAM/ThirdParty/ParaView3.3-cvs/platforms/linuxGcc/bin/libvtkFi ltering.so.pv3.3"
#14 vtkDemandDrivenPipeline::UpdateData(int) in "/home/david/OpenFOAM/ThirdParty/ParaView3.3-cvs/platforms/linuxGcc/bin/libvtkFi ltering.so.pv3.3"
#15 vtkStreamingDemandDrivenPipeline::Update(int) in "/home/david/OpenFOAM/ThirdParty/ParaView3.3-cvs/platforms/linuxGcc/bin/libvtkFi ltering.so.pv3.3"
#16 vtkExecutive::Update() addr2line failed
#17 vtkDemandDrivenPipeline::Update() in "/home/david/OpenFOAM/ThirdParty/ParaView3.3-cvs/platforms/linuxGcc/bin/libvtkFi ltering.so.pv3.3"
#18 vtkStreamingDemandDrivenPipeline::Update() in "/home/david/OpenFOAM/ThirdParty/ParaView3.3-cvs/platforms/linuxGcc/bin/libvtkFi ltering.so.pv3.3"
#19 vtkAlgorithm::Update() in "/home/david/OpenFOAM/ThirdParty/ParaView3.3-cvs/platforms/linuxGcc/bin/libvtkFi ltering.so.pv3.3"
#20 vtkAlgorithmCommand(vtkClientServerInterpreter*, vtkObjectBase*, char const*, vtkClientServerStream const&, vtkClientServerStream&) in "/home/david/OpenFOAM/ThirdParty/ParaView3.3-cvs/platforms/linuxGcc/bin/libvtkFi lteringCS.so"
#21 vtkMultiBlockDataSetAlgorithmCommand(vtkClientServ erInterpreter*, vtkObjectBase*, char const*, vtkClientServerStream const&, vtkClientServerStream&) in "/home/david/OpenFOAM/ThirdParty/ParaView3.3-cvs/platforms/linuxGcc/bin/libvtkFi lteringCS.so"
#22 vtkPV3FoamReaderCommand(vtkClientServerInterpreter *, vtkObjectBase*, char const*, vtkClientServerStream const&, vtkClientServerStream&) in "/home/david/OpenFOAM/OpenFOAM-1.5.x/lib/linuxGccDPOpt/libPV3FoamReader_SM.so"
#23 vtkClientServerInterpreter::ProcessCommandInvoke(v tkClientServerStream const&, int) in "/home/david/OpenFOAM/ThirdParty/ParaView3.3-cvs/platforms/linuxGcc/bin/libvtkCl ientServer.so"
#24 vtkClientServerInterpreter::ProcessOneMessage(vtkC lientServerStream const&, int) in "/home/david/OpenFOAM/ThirdParty/ParaView3.3-cvs/platforms/linuxGcc/bin/libvtkCl ientServer.so"
#25 vtkClientServerInterpreter::ProcessStream(vtkClien tServerStream const&) in "/home/david/OpenFOAM/ThirdParty/ParaView3.3-cvs/platforms/linuxGcc/bin/libvtkCl ientServer.so"
#26 vtkSelfConnection::ProcessStreamLocally(vtkClientS erverStream&) in "/home/david/OpenFOAM/ThirdParty/ParaView3.3-cvs/platforms/linuxGcc/bin/libvtkPV ServerCommon.so"
#27 vtkSelfConnection::SendStreamToClient(vtkClientSer verStream&) in "/home/david/OpenFOAM/ThirdParty/ParaView3.3-cvs/platforms/linuxGcc/bin/libvtkPV ServerCommon.so"
#28 vtkProcessModuleConnection::SendStream(unsigned int, vtkClientServerStream&) in "/home/david/OpenFOAM/ThirdParty/ParaView3.3-cvs/platforms/linuxGcc/bin/libvtkPV ServerCommon.so"
#29 vtkProcessModuleConnectionManager::SendStream(int, unsigned int, vtkClientServerStream&, int) in "/home/david/OpenFOAM/ThirdParty/ParaView3.3-cvs/platforms/linuxGcc/bin/libvtkPV ServerCommon.so"
#30 vtkProcessModule::SendStream(int, unsigned int, vtkClientServerStream&, int) in "/home/david/OpenFOAM/ThirdParty/ParaView3.3-cvs/platforms/linuxGcc/bin/libvtkPV ServerCommon.so"
#31 vtkSMOutputPort::UpdatePipeline() in "/home/david/OpenFOAM/ThirdParty/ParaView3.3-cvs/platforms/linuxGcc/bin/libvtkPV ServerManager.so"
#32 vtkSMSourceProxy::UpdatePipeline() in "/home/david/OpenFOAM/ThirdParty/ParaView3.3-cvs/platforms/linuxGcc/bin/libvtkPV ServerManager.so"
#33 vtkSMSourceProxy::GetDataInformation(unsigned int, bool) in "/home/david/OpenFOAM/ThirdParty/ParaView3.3-cvs/platforms/linuxGcc/bin/libvtkPV ServerManager.so"
#34 vtkSMDataTypeDomain::IsInDomain(vtkSMSourceProxy*, int) in "/home/david/OpenFOAM/ThirdParty/ParaView3.3-cvs/platforms/linuxGcc/bin/libvtkPV ServerManager.so"
#35 vtkSMDataTypeDomain::IsInDomain(vtkSMProperty*) in "/home/david/OpenFOAM/ThirdParty/ParaView3.3-cvs/platforms/linuxGcc/bin/libvtkPV ServerManager.so"
#36 vtkSMProperty::IsInDomains() in "/home/david/OpenFOAM/ThirdParty/ParaView3.3-cvs/platforms/linuxGcc/bin/libvtkPV ServerManager.so"
#37 pqFiltersMenuManager::updateEnableState() in "/home/david/OpenFOAM/ThirdParty/ParaView3.3-cvs/platforms/linuxGcc/bin/libpqCom ponents.so"
#38 pqMainWindowCore::onPostAccept() in "/home/david/OpenFOAM/ThirdParty/ParaView3.3-cvs/platforms/linuxGcc/bin/libpqCom ponents.so"
#39 pqMainWindowCore::qt_metacall(QMetaObject::Call, int, void**) at moc_pqMainWindowCore.cxx:0
#40 QMetaObject::activate(QObject*, int, int, void**) in "/home/david/OpenFOAM/ThirdParty/Qt-4.3.5/lib/libQtCore.so.4"
#41 QMetaObject::activate(QObject*, QMetaObject const*, int, void**) in "/home/david/OpenFOAM/ThirdParty/Qt-4.3.5/lib/libQtCore.so.4"
#42 pqObjectInspectorWidget::postaccept() in "/home/david/OpenFOAM/ThirdParty/ParaView3.3-cvs/platforms/linuxGcc/bin/libpqCom ponents.so"
#43 pqObjectInspectorWidget::accept() in "/home/david/OpenFOAM/ThirdParty/ParaView3.3-cvs/platforms/linuxGcc/bin/libpqCom ponents.so"
#44 pqObjectInspectorWidget::qt_metacall(QMetaObject:: Call, int, void**) at moc_pqObjectInspectorWidget.cxx:0
#45 QMetaObject::activate(QObject*, int, int, void**) in "/home/david/OpenFOAM/ThirdParty/Qt-4.3.5/lib/libQtCore.so.4"
#46 QMetaObject::activate(QObject*, QMetaObject const*, int, int, void**) in "/home/david/OpenFOAM/ThirdParty/Qt-4.3.5/lib/libQtCore.so.4"
#47 QAbstractButton::clicked(bool) in "/home/david/OpenFOAM/ThirdParty/Qt-4.3.5/lib/libQtGui.so.4"
#48 ?? in "/home/david/OpenFOAM/ThirdParty/Qt-4.3.5/lib/libQtGui.so.4"
#49 ?? in "/home/david/OpenFOAM/ThirdParty/Qt-4.3.5/lib/libQtGui.so.4"
#50 QAbstractButton::mouseReleaseEvent(QMouseEvent*) in "/home/david/OpenFOAM/ThirdParty/Qt-4.3.5/lib/libQtGui.so.4"
#51 QWidget::event(QEvent*) in "/home/david/OpenFOAM/ThirdParty/Qt-4.3.5/lib/libQtGui.so.4"
#52 QAbstractButton::event(QEvent*) in "/home/david/OpenFOAM/ThirdParty/Qt-4.3.5/lib/libQtGui.so.4"
#53 QPushButton::event(QEvent*) in "/home/david/OpenFOAM/ThirdParty/Qt-4.3.5/lib/libQtGui.so.4"
#54 QApplicationPrivate::notify_helper(QObject*, QEvent*) in "/home/david/OpenFOAM/ThirdParty/Qt-4.3.5/lib/libQtGui.so.4"
#55 QApplication::notify(QObject*, QEvent*) in "/home/david/OpenFOAM/ThirdParty/Qt-4.3.5/lib/libQtGui.so.4"
#56 QCoreApplication::notifyInternal(QObject*, QEvent*) in "/home/david/OpenFOAM/ThirdParty/Qt-4.3.5/lib/libQtCore.so.4"
#57 QCoreApplication::sendSpontaneousEvent(QObject*, QEvent*) in "/home/david/OpenFOAM/ThirdParty/Qt-4.3.5/lib/libQtGui.so.4"
#58 ?? in "/home/david/OpenFOAM/ThirdParty/Qt-4.3.5/lib/libQtGui.so.4"
#59 QApplication::x11ProcessEvent(_XEvent*) in "/home/david/OpenFOAM/ThirdParty/Qt-4.3.5/lib/libQtGui.so.4"
#60 ?? in "/home/david/OpenFOAM/ThirdParty/Qt-4.3.5/lib/libQtGui.so.4"
#61 QEventLoop::processEvents(QFlags<qeventloop::proce sseventsflag>) in "/home/david/OpenFOAM/ThirdParty/Qt-4.3.5/lib/libQtCore.so.4"
#62 QEventLoop::exec(QFlags<qeventloop::processeventsf lag>) in "/home/david/OpenFOAM/ThirdParty/Qt-4.3.5/lib/libQtCore.so.4"
#63 QCoreApplication::exec() in "/home/david/OpenFOAM/ThirdParty/Qt-4.3.5/lib/libQtCore.so.4"
#64 pqProcessModuleGUIHelper::RunGUIStart(int, char**, int, int) in "/home/david/OpenFOAM/ThirdParty/ParaView3.3-cvs/platforms/linuxGcc/bin/libpqCor e.so"
#65 vtkProcessModule::StartClient(int, char**) in "/home/david/OpenFOAM/ThirdParty/ParaView3.3-cvs/platforms/linuxGcc/bin/libvtkPV ServerCommon.so"
#66 vtkProcessModule::Start(int, char**) in "/home/david/OpenFOAM/ThirdParty/ParaView3.3-cvs/platforms/linuxGcc/bin/libvtkPV ServerCommon.so"
#67 vtkProcessModuleGUIHelper::Run(vtkPVOptions*) in "/home/david/OpenFOAM/ThirdParty/ParaView3.3-cvs/platforms/linuxGcc/bin/libvtkPV ServerCommon.so"
#68 pqMain::Run(QApplication&, pqProcessModuleGUIHelper*) in "/home/david/OpenFOAM/ThirdParty/ParaView3.3-cvs/platforms/linuxGcc/bin/libpqCor e.so"
#69 main in "/home/david/OpenFOAM/ThirdParty/ParaView3.3-cvs/platforms/linuxGcc/bin/paraview -real"
#70 __libc_start_main in "/lib/libc.so.6"
#71 vtkObject::RegisterInternal(vtkObjectBase*, int) in "/home/david/OpenFOAM/ThirdParty/ParaView3.3-cvs/platforms/linuxGcc/bin/paraview -real"


From function tmp<field<type> > PrimitivePatchInterpolation::faceToPointInterpolat e(const Field<type> ff)
in file /home/david/OpenFOAM/OpenFOAM-1.5.x/src/OpenFOAM/lnInclude/PrimitivePatchInterpo lation.C at line 190.

FOAM aborting




Regards
David

mattijs January 29, 2009 07:28

I pushed a change (to vtkPV3Fo
 
I pushed a change (to vtkPV3FoamConvertVolFields.H) to the 1.5.x git. Can you check that it works for your case?

Regards,

Mattijs

david January 29, 2009 13:24

Hi Mattijs It works. The up
 
Hi Mattijs

It works. The update fixes the problem.

Thanks a lot

David


All times are GMT -4. The time now is 17:51.