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

Turbulence Model - Linking Issues?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 19, 2014, 18:12
Default Turbulence Model - Linking Issues?
  #1
Member
 
Join Date: Jul 2012
Location: Wisconsin,USA
Posts: 34
Rep Power: 13
AA29 is on a distinguished road
Hello everyone,

I compiled a new turbulence model in OpenFoam 2.3.x.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 , i just recompiled it to use my turbulence libraries. The solver works fine.

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


PIMPLE: max iterations = 50
field "(U|p)" : relTol 0, tolerance 0.0001

Reading thermophysical properties

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

bounds on rho: rhoMax [1 -3 0 0 0 0 0] 15 rhoMin [1 -3 0 0 0 0 0] 0.1

Reading field U

Reading/calculating face flux field phi

Creating turbulence model

coldTopoEngineFoam: symbol lookup error: coldTopoEngineFoam: undefined symbol: _ZN4Foam12compressible15turbulenceModel3NewERKNS_1 4GeometricFieldIdNS_12fvPatchFieldENS_7volMeshEEER KNS2_INS_6VectorIdEES3_S4_EERKNS2_IdNS_13fvsPatchF ieldENS_11surfaceMeshEEERKNS_11fluidThermoERKNS_4w ordE


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

Thanks and Regards.
AA29 is offline   Reply With Quote

Old   June 19, 2014, 18:32
Default
  #2
Member
 
Join Date: Jul 2012
Location: Wisconsin,USA
Posts: 34
Rep Power: 13
AA29 is on a distinguished road
In case you need the following,the options file for the turbulence model is :

EXE_INC = \
-I$(LIB_SRC)/finiteVolume/lnInclude \
-I$(LIB_SRC)/meshTools/lnInclude \
-I$(WM_PROJECT_USER_DIR)/src/turbulenceModels \
-I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/specie/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/solidThermo/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/solidSpecie/lnInclude

LIB_LIBS = \
-lsolidThermo \
-lfluidThermophysicalModels \
-lspecie \
-lfiniteVolume \
-lmeshTools \
-lsolidSpecie \
-lradiationModels


And that for the new solver(which works fine btw) is :


EXE_INC = \
-I$(POLIMI_SRC)/engine/include \
-I$(POLIMI_SRC)/engine/lnInclude \
-I$(POLIMI_SRC)/global/lnInclude \
-I$(LIB_SRC)/dynamicMesh/lnInclude \
-I$(LIB_SRC)/dynamicFvMesh/include \
-I$(LIB_SRC)/dynamicFvMesh/lnInclude \
-I$(LIB_SRC)/topoChangerFvMesh\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)/finiteVolume/lnInclude \
-I$(LIB_SRC)/sampling/lnInclude \
-I$(LIB_SRC)/meshTools/lnInclude \
-I$(LIB_SRC)/fvOptions/lnInclude

EXE_LIBS = \
-lengine \
-ldynamicMesh \
$(FOAM_USER_LIBBIN)/libcompressibleTurbulenceModel.so \
$(FOAM_USER_LIBBIN)/libcompressibleLESModels.so \
-lfluidThermophysicalModels \
-lspecie \
-lfiniteVolume \
-lmeshTools \
-lfvOptions

I have been struggling with this for almost 3 months now. I will be grateful for all the help.

Thanks.
AA29 is offline   Reply With Quote

Old   June 20, 2014, 11:27
Default
  #3
Member
 
Join Date: Jul 2012
Location: Wisconsin,USA
Posts: 34
Rep Power: 13
AA29 is on a distinguished road
Does anyone have any ideas/hints about what might be going wrong here?
AA29 is offline   Reply With Quote

Old   June 20, 2014, 15:21
Default
  #4
Member
 
Join Date: Jul 2012
Location: Wisconsin,USA
Posts: 34
Rep Power: 13
AA29 is on a distinguished road
Thanks everyone. I think I have figured it out. A really silly mistake from my side!
AA29 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
SimpleFoam case with SpalartAllmaras turbulence model implemented nedved OpenFOAM Running, Solving & CFD 2 November 30, 2014 22:43
Wrong calculation of nut in the kOmegaSST turbulence model FelixL OpenFOAM Bugs 27 March 27, 2012 09:02
Low Reynolds k-epsilon model YJZ ANSYS 1 August 20, 2010 13:57
2 stage axial turbine model convergence issues sherifkadry CFX 2 September 7, 2009 20:51
OpenFOAM with Cygwin kitchener OpenFOAM Installation 6 April 24, 2006 23:09


All times are GMT -4. The time now is 19:30.