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

new turbulence model doesn't work after succesfull compilation

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 6, 2023, 18:24
Default new turbulence model doesn't work after succesfull compilation
  #1
New Member
 
Lorenzo
Join Date: Nov 2021
Location: italy
Posts: 6
Rep Power: 4
astrolollo is on a distinguished road
good evening, I implemented a rotational correction in the Spalart Allmaras model for openfoam 10, after a compilation without errors when I try to use decompose par or run a simulation with this new Turbulence model (called SpalartAllmarasRotCorr) I get the following error:



--> FOAM Warning :
From function void* Foam::dlOpen(const Foam::fileName&, bool)
in file POSIX.C at line 1247
dlopen error : /home/lorenzo/OpenFOAM/lorenzo-10/platforms/linux64GccDPInt32Opt/lib/libmyRASModels.so: undefined symbol: _ZNK4Foam9RASModels22SpalartAllmarasRotCorrINS_36i ncompressibleMomentumTransportModelEE1REv
--> FOAM Warning :
From function bool Foam::dlLibraryTable:pen(const Foam::fileName&, bool)
in file db/dynamicLibrary/dlLibraryTable/dlLibraryTable.C at line 106
could not load "libmyRASModels.so"



I've seen on the forum that it may be due to mistakes in the Make/option files but I can't find the problem. Here below is the make/option file:


EXE_INC = \
-I$(LIB_SRC)/MomentumTransportModels/momentumTransportModels/lnInclude \
-I$(LIB_SRC)/MomentumTransportModels/incompressible/lnInclude \
-I$(LIB_SRC)/physicalProperties/lnInclude \
-I$(LIB_SRC)/finiteVolume/lnInclude \
-I$(LIB_SRC)/meshTools/lnInclude

LIB_LIBS = \
-lmomentumTransportModels \
-lincompressibleMomentumTransportModels \
-lfiniteVolume \
-lmeshTools
astrolollo is offline   Reply With Quote

Old   March 7, 2023, 11:36
Default
  #2
Senior Member
 
Domenico Lahaye
Join Date: Dec 2013
Posts: 723
Blog Entries: 1
Rep Power: 17
dlahaye is on a distinguished road
Extend LIB_LIBS with directory in which libmyRASModels.so is located.
dlahaye is online now   Reply With Quote

Reply

Tags
ras incompressible, spalart allamras, turbulence models


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
[GUIDE] Switching turbulence model to SpalartAllmaras gabrielfelix OpenFOAM Running, Solving & CFD 1 March 24, 2022 20:19
New turbulence model in OpenFOAM 5 with porosity scalar shinjanghosh OpenFOAM Programming & Development 0 January 15, 2020 00:06
Centrifugal Pump and Turbulence Model Michiel CFX 12 January 25, 2010 03:20
Discussion: Reason of Turbulence!! Wen Long Main CFD Forum 3 May 15, 2009 09:52
Why Turbulence models are not universal. Senthil Main CFD Forum 4 July 5, 2000 04:34


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