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

Creating a New Turbulence Model- Symbol Lookup Error

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 24, 2013, 22:03
Default Creating a New Turbulence Model- Symbol Lookup Error
  #1
Member
 
Join Date: Jul 2012
Location: Wisconsin,USA
Posts: 34
Rep Power: 13
AA29 is on a distinguished road
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.
AA29 is offline   Reply With Quote

Old   September 25, 2013, 11:23
Default
  #2
New Member
 
Matt Laurita
Join Date: Jan 2012
Location: New York
Posts: 8
Rep Power: 14
mlaurita is on a distinguished road
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?
mlaurita is offline   Reply With Quote

Old   September 25, 2013, 21:02
Default
  #3
Member
 
Join Date: Jul 2012
Location: Wisconsin,USA
Posts: 34
Rep Power: 13
AA29 is on a distinguished road
Hi Matt,

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

EXE_INC = \
-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 \
-I$(LIB_SRC)/finiteVolume/lnInclude

LIB_LIBS = \
$(FOAM_USER_LIBBIN)/libcompressibleTurbulenceModel.so \
-lLESdeltas \
-lLESfilters \
-lfiniteVolume \
-lmeshTools



And the same for the solver is :

EXE_INC = \
-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 \
-I$(LIB_SRC)/thermophysicalModels/laminarFlameSpeed/lnInclude

EXE_LIBS = \
-lfiniteVolume \
-lfvOptions \
-lsampling \
-lmeshTools \
-lengine \
$(FOAM_USER_LIBBIN)/libcompressibleTurbulenceModel.so \
$(FOAM_USER_LIBBIN)/libcompressibleRASModels.so \
$(FOAM_USER_LIBBIN)/libcompressibleLESModels.so \
-lfluidThermophysicalModels \
-lreactionThermophysicalModels \
-lspecie \
-llaminarFlameSpeedModels

Hope this is what you required.

Thanks
AA29 is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
[OpenFOAM.org] compile error in dynamicMesh and thermophysicalModels libraries NickG OpenFOAM Installation 3 December 30, 2019 01:21
Mesquite - Adaptive mesh refinement / coarsening? philippose OpenFOAM Running, Solving & CFD 94 January 27, 2016 10:40
Compile problem ivanyao OpenFOAM Running, Solving & CFD 1 October 12, 2012 10:31
How to get the max value of the whole field waynezw0618 OpenFOAM Running, Solving & CFD 4 June 17, 2008 06:07
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 18:51


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