CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Community Contributions

[swak4Foam] error: undefined symbol: _ZTIN4Foam22timelineFunctionObjectE

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 1, 2016, 04:08
Default error: undefined symbol: _ZTIN4Foam22timelineFunctionObjectE
  #1
New Member
 
Gorg
Join Date: Oct 2013
Posts: 5
Rep Power: 12
gorg88 is on a distinguished road
Hi!

I have created an own simpleFunctionObjects library (mylibsimplefunctionObjects.so) from swak4foam file. I compiled without problems but it is appear this error when I try to use a function object into a controlDict from mylibsimplefunctionObjecs.so library.

Quote:
Create time

--> FOAM Warning :
From function dlOpen(const fileName&, const bool)
in file POSIX.C at line 1179
dlopen error : /home/jgaray/OpenFOAM/jgaray-2.4.0/platforms/linux64GccDPOpt/lib/mylibsimpleFunctionObjects.so: undefined symbol: _ZTIN4Foam22timelineFunctionObjectE
--> FOAM Warning :
From function dlLibraryTable:pen(const fileName&, const bool)
in file db/dynamicLibrary/dlLibraryTable/dlLibraryTable.C at line 99
could not load "mylibsimpleFunctionObjects.so"
Create mesh for time = 0


Reading g
Reading thermophysical properties

Selecting thermodynamics package
{
type heRhoThermo;
mixture pureMixture;
transport const;
thermo hConst;
equationOfState perfectGas;
specie specie;
energy sensibleEnthalpy;
}

Reading field U

Reading/calculating face flux field phi

Creating turbulence model

Selecting RAS turbulence model kEpsilon
kEpsilonCoeffs
{
label "Standard high-Re k-\u03B5";
fieldMaps
{
k kCompressible;
epsilon epsilonCompressible;
mut mut;
alphat alphatCompressible;
}
Cmu 0.09;
C1 1.44;
C2 1.92;
C3 0.85;
alphah 1.111;
alphak 1;
alphaEps 0.76923;
sigmak 1;
sigmaEps 1.3;
Prt 1;
}

Calculating field g.h

Reading field p_rgh

Creating finite volume options from "system/fvOptions"

Radiation model not active: radiationProperties not found
Selecting radiationModel none

SIMPLE: convergence criteria
field U tolerance 1e-05
field k tolerance 1e-05
field epsilon tolerance 1e-05
field omega tolerance 1e-05
field nuTilda tolerance 1e-05
field T tolerance 1e-05
field p_rgh tolerance 1e-05
field p tolerance 1e-05


Starting time loop



--> FOAM FATAL ERROR:
Unknown function type patchAverage

Valid functions are :

9
(
initSwakFunctionObject
partialWrite
patchProbes
probes
removeRegisteredObject
sets
surfaces
writeDictionary
writeRegisteredObject
)



From function functionObject::New(const word& name, const Time&, const dictionary&)
in file db/functionObjects/functionObject/functionObject.C at line 92.

FOAM exiting
I attach make/options file where all the necessary libraries are included

Code:
include $(OBJECTS_DIR)/../../rules/versionOptions

ifdef FOAM_DEV
ADDITIONALFILES_INC=-I../filesThatAreOnlyInSomeDistributions
SIMPLEFUNCTIONFILES=-I../../swak4Foam/Libraries
endif

LIB=$(FOAM_USER_LIBBIN)/mylibsimpleFunctionObjects

EXE_INC = \
    $(FOAM_DEV_OPTION) \
    -I/swak4FoamParsers/lnInclude \
    -I$(LIB_SRC)/finiteVolume/lnInclude \
    -I$(LIB_SRC)/meshTools/lnInclude \
    -I$(LIB_SRC)/sampling/lnInclude \
    -I$(LIB_SRC)/triSurface/lnInclude \
    -I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \
    -I$(LIB_SRC)/thermophysicalModels/reactionThermo/lnInclude \
    -I$(LIB_SRC)/thermophysicalModels/specie/lnInclude \
    -I$(LIB_SRC)/thermophysicalModels/SLGThermo/lnInclude \
    -I$(LIB_SRC)/thermophysicalModels/properties/solidMixtureProperties/lnInclude \
    -I$(LIB_SRC)/thermophysicalModels/properties/liquidMixtureProperties/lnInclude \
    -I$(LIB_SRC)/thermophysicalModels/properties/solidProperties/lnInclude \
    -I$(LIB_SRC)/thermophysicalModels/properties/liquidProperties/lnInclude \
    -I$(LIB_SRC)/regionModels/regionModel/lnInclude \
    -I$(LIB_SRC)/regionModels/surfaceFilmModels/lnInclude \
    -I$(LIB_SRC)/turbulenceModels \
    -I$(LIB_SRC)/transportModels \
    -I$(LIB_SRC)/lagrangian/basic/lnInclude \
    $(ADDITIONALFILES_INC) 

LIB_LIBS = \
    -lfiniteVolume \
    -lmeshTools \
    -lsampling \
    -ltriSurface \
    $(FLUIDTHERMO_LIB) \
    -lincompressibleTransportModels \
    -lcompressibleTurbulenceModel \
    -lincompressibleTurbulenceModel \
    -lspecie \
    -llagrangian
Thanks
gorg88 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
CGNS Compiling Diego Main CFD Forum 17 December 21, 2014 01:40
using METIS functions in fortran dokeun Main CFD Forum 7 January 29, 2013 04:06
OpenFOAM install on Ubuntu Natty 11.04 bkubicek OpenFOAM 13 May 26, 2011 05:48
POSDAT problem piotka STAR-CD 4 June 12, 2009 08:43
Errors running allwmake in OpenFOAM141dev with WM_COMPILE_OPTION%3ddebug unoder OpenFOAM Installation 11 January 30, 2008 20:30


All times are GMT -4. The time now is 18:46.