CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Running, Solving & CFD

TwoPhaseEulerFoamThreePhaseEulerFoam compiling error 1Help

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   February 20, 2008, 21:11
Default Hello guys, I am trying to
  #1
New Member
 
Alex Londono
Join Date: Mar 2009
Location: Medellin, Antioquia, Colombia
Posts: 9
Rep Power: 8
alondono is on a distinguished road
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.
alondono is offline   Reply With Quote

Old   February 20, 2008, 23:55
Default Hi Alex, maybe you should p
  #2
Senior Member
 
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,894
Rep Power: 26
alberto will become famous soon enoughalberto will become famous soon enough
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 live DVD/USB, hard drive image and virtual image.
OpenQBMM - An open-source implementation of quadrature-based moment methods
alberto is offline   Reply With Quote

Old   August 4, 2010, 04:04
Default
  #3
New Member
 
Pritika Goyal
Join Date: May 2010
Posts: 7
Rep Power: 7
Pritika is on a distinguished road
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
Pritika is offline   Reply With Quote

Old   June 2, 2011, 19:14
Default
  #4
New Member
 
Prashant Gupta
Join Date: Mar 2011
Location: Edinburgh
Posts: 29
Rep Power: 6
Prash is on a distinguished road
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
Prash is offline   Reply With Quote

Old   June 2, 2011, 19:15
Default
  #5
New Member
 
Prashant Gupta
Join Date: Mar 2011
Location: Edinburgh
Posts: 29
Rep Power: 6
Prash is on a distinguished road
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.
Prash is offline   Reply With Quote

Old   June 2, 2011, 20:01
Default
  #6
New Member
 
Prashant Gupta
Join Date: Mar 2011
Location: Edinburgh
Posts: 29
Rep Power: 6
Prash is on a distinguished road
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
Prash is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


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 08:33
Error while compiling UDF Sridhar FLUENT 0 August 7, 2001 11:02


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