|
[Sponsors] |
TwoPhaseEulerFoamThreePhaseEulerFoam compiling error 1Help |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
February 20, 2008, 21:11 |
Hello guys,
I am trying to
|
#1 |
New Member
Alex Londono
Join Date: Mar 2009
Location: Medellin, Antioquia, Colombia
Posts: 9
Rep Power: 17 |
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.C.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.C.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.C.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. |
|
February 20, 2008, 23:55 |
Hi Alex,
maybe you should p
|
#2 |
Senior Member
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36 |
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 Regards, Alberto
__________________
Alberto Passalacqua GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541) OpenQBMM - An open-source implementation of quadrature-based moment methods. To obtain more accurate answers, please specify the version of OpenFOAM you are using. |
|
August 4, 2010, 05:04 |
|
#3 |
New Member
Pritika Goyal
Join Date: May 2010
Posts: 7
Rep Power: 15 |
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:rintStack(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:haseModel const&, Foam:haseModel 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 |
|
June 2, 2011, 20:14 |
|
#4 |
New Member
Prashant Gupta
Join Date: Mar 2011
Location: Edinburgh
Posts: 29
Rep Power: 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:rintStack(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 |
|
June 2, 2011, 20:15 |
|
#5 |
New Member
Prashant Gupta
Join Date: Mar 2011
Location: Edinburgh
Posts: 29
Rep Power: 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:rintStack(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. |
|
June 2, 2011, 21:01 |
|
#6 |
New Member
Prashant Gupta
Join Date: Mar 2011
Location: Edinburgh
Posts: 29
Rep Power: 15 |
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 |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Errors when Compiling UDF: error C2040/error C2099 | Julian K. | FLUENT | 1 | December 21, 2008 01:23 |
compiling udf error help | venkatesh4386@gmail.com | FLUENT | 1 | November 7, 2008 03:20 |
UDF error in compiling | Shin | FLUENT | 1 | December 15, 2007 21:25 |
error while compiling a udf | rahul | FLUENT | 10 | August 30, 2006 09:33 |
Error while compiling UDF | Sridhar | FLUENT | 0 | August 7, 2001 12:02 |