|
[Sponsors] |
February 29, 2008, 11:46 |
Hi
I am using the OpenFOAM
|
#1 |
New Member
Andreas Mehrle
Join Date: Mar 2009
Posts: 3
Rep Power: 17 |
Hi
I am using the OpenFOAM standard solvers for some now and did also modify them slightly and recompile. In order to understand the capabilities of OpenFOAM a little better I am about to build my own solver including lagrangian particles. But when I include some code used in "dieselSpray" or Bernhard Gschaider's "icoLagrangianFoam" I get the error message: Make/linuxGccDPOpt/lagrangianFoam.o: In function `Foam::IOPtrList<foam::particleinjector>::type() const': lagrangianFoam.C.text._ZNK4Foam9IOPtrListINS_16particleInjectorEE4 typeEv[Foam::IOPtrList<foam::p articleinjector>::type() const]+0x11): undefined reference to `Foam::IOPtrList<foam::particleinjector>::typeName ' when using a IOPtrList. I did #include "IOPtrList.H" in the header file and my options file looks like EXE_INC = \ -I$(LIB_SRC)/cfdTools/incompressible \ -I$(LIB_SRC)/cfdTools/general/lnInclude \ -I$(LIB_SRC)/OpenFOAM/lnInclude \ -I$(LIB_SRC)/finiteVolume/lnInclude \ -I$(LIB_SRC)/lagrangian/basic/lnInclude EXE_LIBS = \ -lfiniteVolume \ -llagrangian what is going wrong? Andreas |
|
March 1, 2008, 10:04 |
hi,
i am not sure but as fa
|
#2 |
Senior Member
Stephan Gerber
Join Date: Mar 2009
Location: Germany
Posts: 118
Rep Power: 17 |
hi,
i am not sure but as far as i remember the injector is part of the lagrangian/dieselspray and not of lagrangian/basic. that would explain the undef. ref. . br stephan |
|
March 1, 2008, 12:08 |
Hi Andreas,
As far as I can t
|
#3 |
Senior Member
Dragos
Join Date: Mar 2009
Posts: 648
Rep Power: 20 |
Hi Andreas,
As far as I can tell, there is a class in your code, called "particleinjector" for which I could not find any reference in OpenFOAM. Is this class developed by you? If it is, you need to include the object particleinjector.o in your options file. Dragos |
|
March 3, 2008, 04:49 |
Thx
As Dragos suspected "pa
|
#4 |
New Member
Andreas Mehrle
Join Date: Mar 2009
Posts: 3
Rep Power: 17 |
Thx
As Dragos suspected "particleInjector" is a self defined class so no need to include "lagrangian/dieselspray". So I will try to include the objectfile. Andreas |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Undefined reference | mateusz_slowikowski | OpenFOAM Running, Solving & CFD | 7 | February 27, 2015 15:35 |
Undefined reference to %60mainb | seang | OpenFOAM Installation | 8 | February 1, 2014 14:48 |
Undefined reference to %60yyFlexLexeryywrapb | zhoubinwx | OpenFOAM Bugs | 1 | May 28, 2008 06:57 |
Undefined reference | mateusz_slowikowski | OpenFOAM Running, Solving & CFD | 3 | March 11, 2008 13:19 |
MPICH : undefined reference to.. | Vincent | Siemens | 3 | March 24, 2005 13:30 |