CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Programming & Development (
-   -   Creating a New Turbulence Model- Symbol Lookup Error (

AA29 September 24, 2013 21:03

Creating a New Turbulence Model- Symbol Lookup Error
Hello All,

I compiled a new turbulence model in OpenFoam 2.2.1.To use that turbulence model, i created a new solver just to use the new turbulence library.Please note that i did not modify the solver or anything, i just recompiled it to use my turbulence libraries. It works fine.

But the weird thing is all the other standard solvers have stopped working,a nd i get the following error whichever solver I try to run:

Create time

Create mesh for time = 0

Selecting dynamicFvMesh solidBodyMotionFvMesh
Selecting solid-body motion function rotatingMotion
Applying solid body motion to cellZone rotatingZone

PIMPLE: Operating solver in PISO mode

Reading thermophysical properties

Selecting thermodynamics package
type hePsiThermo;
mixture pureMixture;
transport sutherland;
thermo hConst;
equationOfState perfectGas;
specie specie;
energy sensibleEnthalpy;

AMI: Creating addressing and weights between 10944 source faces and 10944 target faces
AMI: Patch source weights min/max/average = 1, 1.00185, 1
AMI: Patch target weights min/max/average = 1, 1.00185, 1
Reading field U

Reading/calculating face flux field phi

Creating turbulence model

rhoPimpleDyMFoam: symbol lookup error: rhoPimpleDyMFoam: undefined symbol: _ZN4Foam12compressible15turbulenceModel3NewERKNS_1 4GeometricFieldIdNS_12fvPatchFieldENS_7volMeshEEER KNS2_INS_6VectorIdEES3_S4_EERKNS2_IdNS_13fvsPatchF ieldENS_11surfaceMeshEEERKNS_11fluidThermoERKNS_4w ord.

I understand something went wrong while I compiled the new turbulence model , but I am not able to identify the problem.

Anybody else had this kind of problem?
Any help will be appreciated.

Thanks and Regards.

mlaurita September 25, 2013 10:23

Looks kind of like a linking issue. But it's a little hard to tell without knowing how your new turbulence model fits with the existing ones, which libraries are linked to your new solver, etc. Maybe you could share your Make/options files for the solver and the library?

AA29 September 25, 2013 20:02

Hi Matt,

Thanks for the response, and sorry for the late reply. The options file for the compressible/LES library is as follows :

-I$(WM_PROJECT_USER_DIR)/src/turbulenceModels \
-I$(WM_PROJECT_USER_DIR)/src/turbulenceModels/compressible/turbulenceModel/lnInclude \
-I$(LIB_SRC)/turbulenceModels/LES/LESdeltas/lnInclude \
-I$(LIB_SRC)/turbulenceModels/LES/LESfilters/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \
-I$(LIB_SRC)/meshTools/lnInclude \

-lLESdeltas \
-lLESfilters \
-lfiniteVolume \

And the same for the solver is :

-I$(WM_PROJECT_USER_DIR)/applications/solvers/my_XiFoam \
-I$(LIB_SRC)/finiteVolume/lnInclude \
-I$(LIB_SRC)/fvOptions/lnInclude \
-I$(LIB_SRC)/sampling/lnInclude \
-I$(LIB_SRC)/meshTools/lnInclude \
-I$(LIB_SRC)/engine/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/specie/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/reactionThermo/lnInclude \
-I$(WM_PROJECT_USER_DIR)/src/turbulenceModels/compressible/turbulenceModel \

-lfiniteVolume \
-lfvOptions \
-lsampling \
-lmeshTools \
-lengine \
-lfluidThermophysicalModels \
-lreactionThermophysicalModels \
-lspecie \

Hope this is what you required.


All times are GMT -4. The time now is 08:29.