CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   TwoPhaseEulerFoamThreePhaseEulerFoam compiling error 1Help (https://www.cfd-online.com/Forums/openfoam-solving/59110-twophaseeulerfoamthreephaseeulerfoam-compiling-error-1help.html)

alondono February 20, 2008 20:11

Hello guys, I am trying to
 
Hello guys,

I am trying to expand the twoPhseEulerFoam code to a MultiphaseEulerFoam solver, but initially I'm just adding a new phase, I have some problems whit the dragModel implementation, please check the message I obtain when I am compiling my code:


SOURCE_DIR=.
SOURCE=threePhaseEulerFoam.C ; g++ -m32 -Dlinux -DDP -Wall -W -Wno-unused-para meter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-30 -I/home/openfoam/ OpenFOAM/OpenFOAM-1.3/src/finiteVolume/lnInclude -I/home/openfoam/OpenFOAM/OpenF OAM-1.3/src/transportModels/incompressible/lnInclude -IturbulenceModel -Ikinetic TheoryModel/lnInclude -IinterfacialModels/lnInclude -IphaseModel/lnInclude -Iave raging -I/home/openfoam/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude -IlnInclude -I. -fPIC -pthread -c $SOURCE -o Make/linuxGcc4DPOpt/threePhaseEulerFoam.o
/home/openfoam/OpenFOAM/OpenFOAM-1.3/wmake/bashScripts/mkObjectDir /home/openfoam/OpenFOAM/OpenFOAM-1.3/applications/bin/linuxGcc4DPOpt/threePhaseE ulerFoam
g++ -m32 -Dlinux -DDP -Wall -W -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-30 -I/home/openfoam/OpenFOAM/OpenFOAM-1.3/src/finiteVolume/lnInclude -I/home/openfoam/OpenFOAM/OpenFOAM-1.3/src/transportModels/incompressible/lnIncl ude -IturbulenceModel -IkineticTheoryModel/lnInclude -IinterfacialModels/lnInclude -IphaseModel/lnInclude -Iaveraging -I/home/openfoam/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude -IlnInclude -I. -fPIC -pthread Make/linuxGcc4DPOpt/threePhaseEulerFoam.o -L/home/openfoam/OpenFOAM/OpenFOAM-1.3/lib/linuxGcc4DPOpt \
-lEulerianInterfacialModels -lfiniteVolume -lmeshTools -lincompressibleTransportModels -lphaseModel -lkineticTheoryModel -lOpenFOAM -liberty -o /home/openfoam/OpenFOAM/OpenFOAM-1.3/applications/bin/linuxGcc4DPOpt/threePhaseE ulerFoam
Make/linuxGcc4DPOpt/threePhaseEulerFoam.o: In function `main':
threePhaseEulerFoam.Chttp://www.cfd-online.com/OpenFOAM_D...lipart/sad.gif.text+0x3263): undefined reference to `Foam::dragModel::New(Foam::dictionary const&, Foam::GeometricField<double,> const&, Foam::phaseModel const&, Foam::phaseModel const&, Foam::phaseModel const&)'
threePhaseEulerFoam.Chttp://www.cfd-online.com/OpenFOAM_D...lipart/sad.gif.text+0x32b2): undefined reference to `Foam::dragModel::New(Foam::dictionary const&, Foam::GeometricField<double,> const&, Foam::phaseModel const&, Foam::phaseModel const&, Foam::phaseModel const&)'
threePhaseEulerFoam.Chttp://www.cfd-online.com/OpenFOAM_D...lipart/sad.gif.text+0x3301): undefined reference to `Foam::dragModel::New(Foam::dictionary const&, Foam::GeometricField<double,> const&, Foam::phaseModel const&, Foam::phaseModel const&, Foam::phaseModel const&)'
collect2: ld returned 1 exit status
make: *** [/home/openfoam/OpenFOAM/OpenFOAM-1.3/applications/bin/linuxGcc4DPOpt/threePhase EulerFoam] Error 1


Any sugestions?, do you think that the multiphaseInterFoam code could could be implemented in twoPhaseEulerFoam, I mean for creating the new phases?

Thanks in advance,

Kind Regards.

Alex L.

alberto February 20, 2008 22:55

Hi Alex, maybe you should p
 
Hi Alex,

maybe you should post also the code snippet which is giving the error (where you call the drag model). It just seems you're calling the drag model without having included the corresponding .H file or some other trivial mistake.

1. To get an idea of how to extend twoPhaseEulerFoam you might start from the work presented at the OpenFOAM International Conference by Luiz Fernando Silva, Lage P.L.C, "Implementation of an Eulerian Multi-phase model in OpenFOAM and its application to polidesperse two-phase flow". They extended the two-phase solver to n fluids.

2. In my opinion, considering that you want to simulate gas-solid flows, the first step to do is to make the algorithm more robust. The current management of the granular pressure is not reliable, and an implicit treatment would improve the solver significantly.

3. I would also spend some time to check the drag convergence, especially with large particles (something like: rho_s = 2500kg/m^2, dp = 500 micrometers) with moderate to high fluid velocities.

If you've questions, feel free to email to me http://www.cfd-online.com/OpenFOAM_D...part/happy.gif

Regards,
Alberto

Pritika August 4, 2010 04:04

hey

i'm trying to to expand the twoPhseEulerFoam code to a MultiphaseEulerFoam solver for a g-l-s flow in a slurry bubble column. initially i am simulating a 2 phase g-l column. i need to add a new drag model (named SchillerNaumannOLd as of now) to this case. i have the model written but when i run the case i get the following error:

Selecting dragModel for phase a: SchillerNaumannOld

7
(
GidaspowSchillerNaumann
SchillerNaumann
Ergun
GidaspowErgunWenYu
SyamlalOBrien
WenYu
Gibilaro
)


dragModel::New :
unknown dragModelType type SchillerNaumannOld, constructor not in hash table

Valid dragModel types are :
#0 Foam::error::printStack(Foam::Ostream&) in "/home/prito/OpenFOAM/OpenFOAM-1.6/lib/linuxGccDPOpt/libOpenFOAM.so"
#1 Foam::error::abort() in "/home/prito/OpenFOAM/OpenFOAM-1.6/lib/linuxGccDPOpt/libOpenFOAM.so"
#2 Foam::dragModel::New(Foam::dictionary const&, Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const&, Foam::phaseModel const&, Foam::phaseModel const&) in "/home/prito/OpenFOAM/OpenFOAM-1.6/lib/linuxGccDPOpt/libEulerianInterfacialModels.so"
#3 main in "/home/prito/OpenFOAM/OpenFOAM-1.6/applications/bin/linuxGccDPOpt/twoPhaseEulerFoam"
#4 __libc_start_main in "/lib/tls/i686/cmov/libc.so.6"
#5 _start at /usr/src/packages/BUILD/glibc-2.9/csu/../sysdeps/i386/elf/start.S:122


FOAM aborting

********************************************

Any suggestions on how i can get the application to read my drag model?
thanks

Prash June 2, 2011 19:14

Dear People ,

I am facing a similar problem,


--> FOAM FATAL ERROR:
dragModel::New :
unknown dragModelType type vanderhoef, constructor not in hash table

Valid dragModel types are :


FOAM aborting

#0 Foam::error::printStack(Foam::Ostream&) in "/home/s1065046/OpenFOAM/OpenFOAM-1.7.1/lib/linux64GccDPOpt/libOpenFOAM.so"
#1 Foam::error::abort() in "/home/s1065046/OpenFOAM/OpenFOAM-1.7.1/lib/linux64GccDPOpt/libOpenFOAM.so"
#2 Foam::dragModel::New(Foam::dictionary const&, Foam::IOdictionary const&, Foam::Field<double> const&, Foam::Field<double> const&) in "/home/s1065046/OpenFOAM/s1065046-1.7.1/lib/linux64GccDPOpt/libLagrangianInterfacialModels.so"
#3 Foam::enhancedCloud::enhancedCloud(Foam::volPointI nterpolation const&, Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh> const&, Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const&, Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh>&, Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh> const&, Foam::dimensioned<double>, Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>&, Foam::IOdictionary&, Foam::IOdictionary&, double) in "/home/s1065046/OpenFOAM/s1065046-1.7.1/applications/bin/linux64GccDPOpt/lammpsFoam"
#4 main in "/home/s1065046/OpenFOAM/s1065046-1.7.1/applications/bin/linux64GccDPOpt/lammpsFoam"
#5 __libc_start_main in "/lib64/libc.so.6"
#6 _start at /usr/src/packages/BUILD/glibc-2.10.1/csu/../sysdeps/x86_64/elf/start.S:116

Prash June 2, 2011 19:15

Dear People ,

I am facing a similar problem,


--> FOAM FATAL ERROR:
dragModel::New :
unknown dragModelType type vanderhoef, constructor not in hash table

Valid dragModel types are :


FOAM aborting

#0 Foam::error::printStack(Foam::Ostream&) in "/home/s1065046/OpenFOAM/OpenFOAM-1.7.1/lib/linux64GccDPOpt/libOpenFOAM.so"
#1 Foam::error::abort() in "/home/s1065046/OpenFOAM/OpenFOAM-1.7.1/lib/linux64GccDPOpt/libOpenFOAM.so"
#2 Foam::dragModel::New(Foam::dictionary const&, Foam::IOdictionary const&, Foam::Field<double> const&, Foam::Field<double> const&) in "/home/s1065046/OpenFOAM/s1065046-1.7.1/lib/linux64GccDPOpt/libLagrangianInterfacialModels.so"
#3 Foam::enhancedCloud::enhancedCloud(Foam::volPointI nterpolation const&, Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh> const&, Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const&, Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh>&, Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh> const&, Foam::dimensioned<double>, Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>&, Foam::IOdictionary&, Foam::IOdictionary&, double) in "/home/s1065046/OpenFOAM/s1065046-1.7.1/applications/bin/linux64GccDPOpt/lammpsFoam"
#4 main in "/home/s1065046/OpenFOAM/s1065046-1.7.1/applications/bin/linux64GccDPOpt/lammpsFoam"
#5 __libc_start_main in "/lib64/libc.so.6"
#6 _start at /usr/src/packages/BUILD/glibc-2.10.1/csu/../sysdeps/x86_64/elf/start.S:116


Need Help !! Please reply.

Prash June 2, 2011 20:01

Dear People,

Sorry for posting this and that too twice, I made a silly error of not including the NDraglaw.C in the Make/files/ .

Love being publicly embarrassed.

Prashant


All times are GMT -4. The time now is 05:50.