|
[Sponsors] |
![]() |
![]() |
#1 |
Senior Member
Mirko Vukovic
Join Date: Mar 2009
Posts: 159
Rep Power: 17 ![]() |
Hello,
I am developing a boundary condition based on turbulentTemperatureCoupledBaffle and compiling with Code:
wmake libso Code:
multiRegionRadSimpleSolver: symbol lookup error: /opt/OpenFOAM/OpenFOAM-2.0.x/platforms/linux64Gcc45DPOpt/lib/libcoupledDerivedFvPatchFields.so: undefined symbol: _ZN4Foam9NamedEnumINS_22temperatureCoupledBase11KMethodTypeELi4EE5namesE Code:
nm /opt/OpenFOAM/OpenFOAM-2.0.x/platforms/linux64Gcc45DPOpt/lib/libcoupledDerivedFvPatchFields.so | grep _ZN4Foam9NamedEnumINS_22temperatureCoupledBase11KMethodTypeELi4EE5namesE U _ZN4Foam9NamedEnumINS_22temperatureCoupledBase11KMethodTypeELi4EE5namesE Thank you, Mirko |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Senior Member
David Gaden
Join Date: Apr 2009
Location: Winnipeg, Canada
Posts: 437
Rep Power: 22 ![]() |
Whenever I get weird, inconsistent errors like that, I try recompiling OpenFOAM. That's my shot in the dark.
|
|
![]() |
![]() |
![]() |
![]() |
#3 | |
Senior Member
Martin Beaudoin
Join Date: Mar 2009
Posts: 332
Rep Power: 22 ![]() |
Quote:
The capital letter U in front of the symbol stands for Undefined... 'man nm' is your friend here. Martin |
||
![]() |
![]() |
![]() |
![]() |
#4 |
Senior Member
Mirko Vukovic
Join Date: Mar 2009
Posts: 159
Rep Power: 17 ![]() |
I was wondering what the `U' meant :-) I should have pursued it further.
Mirko |
|
![]() |
![]() |
![]() |
![]() |
#5 |
Senior Member
Mirko Vukovic
Join Date: Mar 2009
Posts: 159
Rep Power: 17 ![]() |
I think I understand what went wrong: I was overriding an OpenFOAM library with my own incomplete library.
I am adding a boundary condition derived from compressible::turbulentTemperatureCoupledBaffle. In Make/files, I specified as the destination $FOAM_USER_LIBBIN/libcompressibleTurbulenceModel. Presumably, this prevented the $FOAM_LIBBIN/libcompressibleTurbulenceModel from linking. Mirko |
|
![]() |
![]() |
![]() |
![]() |
#6 | |
Senior Member
Dongyue Li
Join Date: Jun 2012
Location: Beijing, China
Posts: 844
Rep Power: 18 ![]() |
Quote:
If it prevented the lib from linking, how to relink it with your own lib? |
||
![]() |
![]() |
![]() |
![]() |
#7 |
Senior Member
Hisham Elsafti
Join Date: Apr 2011
Location: Braunschweig, Germany
Posts: 257
Blog Entries: 10
Rep Power: 17 ![]() |
Dear all,
I got a similar error like that today and it went away after fixing an error in the code. The error was forgetting to add the class name before the function name for some reimplemented virtual functions: void className::functionName() instead of just: void functionName() Hisham |
|
![]() |
![]() |
![]() |
![]() |
#8 |
Senior Member
Mieszko Młody
Join Date: Mar 2009
Location: POLAND, USA
Posts: 145
Rep Power: 17 ![]() |
Dear Mirko,
I now that it was in 2009... but I have similar problem, but even more strange... I developed new BC as well, but im my case everything run well on one processor, but If I want to run in parallel I got the same error as u had. running decomposeParDic: dlopen error : /home/user/OpenFOAM/user-2.3.0/platforms/linux64GccDPOpt/lib/customlibcompressibleTurbulenceModel.so: undefined symbol: _ZN4Foam9NamedEnumINS_22temperatureCoupledBase11KM ethodTypeELi4EE5namesE any idea ? thank you MM |
|
![]() |
![]() |
![]() |
![]() |
#9 |
Member
Vedamt Chittlangia
Join Date: Feb 2016
Posts: 64
Rep Power: 9 ![]() |
was anyone able to solve this problem?
I am stuck here and can't move forward. |
|
![]() |
![]() |
![]() |
![]() |
#10 |
New Member
Jue Wang
Join Date: Apr 2014
Posts: 23
Rep Power: 12 ![]() |
Hi,
I got the same problem. Still looking for information to solve it. Joe |
|
![]() |
![]() |
![]() |
![]() |
#11 |
New Member
Jue Wang
Join Date: Apr 2014
Posts: 23
Rep Power: 12 ![]() |
Hi,
I'm not sure if it's exactly the same problem as I came across as the following link and I solved mine. Good luck! Joe New dynamic mesh rule with symbol lookup error |
|
![]() |
![]() |
![]() |
![]() |
#12 |
New Member
tooran
Join Date: Nov 2016
Posts: 23
Rep Power: 9 ![]() |
Hi All,
In order to access the mesh information add the follwoing lines in my own library : const objectRegistry& db(); const volVectorField& U = db().lookupObject<volVectorField>("U"); const fvMesh & mesh = U.mesh(); forAll ( etat, cellI) //loop through cell centres { etat[cellI]=mesh.C()[cellI].y(); if ( etat[cellI]< 0.048)..... But because of the const objectRegistry& db(); const volVectorField& U = db().lookupObject<volVectorField>("U"); const fvMesh & mesh = U.mesh(); when I run it, it shows me error : symbol lookup error:........................ undefined symbol: _ZN4Foam15viscosityModels2dbEv Does anybody can help me? Thanks |
|
![]() |
![]() |
![]() |
![]() |
#13 |
New Member
tooran
Join Date: Nov 2016
Posts: 23
Rep Power: 9 ![]() |
I solved the problem by removing the following lines
const objectRegistry& db(); const volVectorField& U = db().lookupObject<volVectorField>("U"); const fvMesh & mesh = U.mesh(); And just write the following line: const fvMesh& mesh = U_.mesh(); |
|
![]() |
![]() |
![]() |
![]() |
#14 |
New Member
Tushar Survase
Join Date: Nov 2020
Posts: 7
Rep Power: 5 ![]() |
I have faced the similar type of issue. Libraries need to be compiled correctly. Check the file and options of Make folder. In my case, the libraries were not linked. Hope it helps.
|
|
![]() |
![]() |
![]() |
![]() |
#15 | |
New Member
Elliott Sutton
Join Date: Dec 2019
Posts: 5
Rep Power: 6 ![]() |
Quote:
Code:
error: ‘const volVectorField& Foam::constitutiveEq::U_’ is private within this context 147 | const fvMesh& mesh = U_.mesh(); |
||
![]() |
![]() |
![]() |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Compile problem | ivanyao | OpenFOAM Running, Solving & CFD | 1 | October 12, 2012 09:31 |
OpenFOAM install on Ubuntu Natty 11.04 | bkubicek | OpenFOAM | 13 | May 26, 2011 05:48 |
How to install CGNS under windows xp? | lzgwhy | Main CFD Forum | 1 | January 11, 2011 18:44 |
[Netgen] Installation of Netgen in SuSE Linux 92 | edvardsenpriv | OpenFOAM Meshing & Mesh Conversion | 23 | January 16, 2009 06:12 |
user defined function | cfduser | CFX | 0 | April 29, 2006 10:58 |