|
[Sponsors] |
September 1, 2010, 09:35 |
shipHydrodynamicIG in OF 1.7.1
|
#1 |
Senior Member
Emanuele
Join Date: Mar 2009
Posts: 110
Rep Power: 17 |
Hi, i m trying to compile the shipHydrodynamicIG solver in OF 1.7.1 (Ubuntu packages)
http://openfoam-extend.svn.sourcefor...ydrodynamicIG/ But i have these errors Code:
SOURCE=shipFoam.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I/opt/openfoam171/applications/solvers/multiphase/interFoam -I/opt/openfoam171/src/transportModels -I/opt/openfoam171/src/transportModels/incompressible/lnInclude -I/opt/openfoam171/src/transportModels/interfaceProperties/lnInclude -I/opt/openfoam171/src/turbulenceModels/incompressible/turbulenceModel -I/opt/openfoam171/src/finiteVolume/lnInclude -I/opt/openfoam171/src/dynamicMesh/lnInclude -I/opt/openfoam171/src/meshTools/lnInclude -I/opt/openfoam171/src/dynamicFvMesh/lnInclude -I/opt/openfoam171/src/sampling/lnInclude -I/opt/openfoam171/src/ODE/lnInclude -IrotationMatrix -ImotionODE -IbodyMotion -IwriteMotionFile -IlnInclude -I. -I/opt/openfoam171/src/OpenFOAM/lnInclude -I/opt/openfoam171/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/shipFoam.o In file included from shipFoam.C:122: /opt/openfoam171/applications/solvers/multiphase/interFoam/setDeltaT.H: In function ‘int main(int, char**)’: /opt/openfoam171/applications/solvers/multiphase/interFoam/setDeltaT.H:37: error: ‘maxAlphaCo’ was not declared in this scope /opt/openfoam171/applications/solvers/multiphase/interFoam/setDeltaT.H:37: error: ‘alphaCoNum’ was not declared in this scope In file included from shipFoam.C:160: /opt/openfoam171/applications/solvers/multiphase/interFoam/UEqn.H:29: error: ‘ghf’ was not declared in this scope /opt/openfoam171/applications/solvers/multiphase/interFoam/UEqn.H:30: error: ‘p_rgh’ was not declared in this scope /opt/openfoam171/src/finiteVolume/lnInclude/readPISOControls.H:11: warning: unused variable ‘transonic’ /opt/openfoam171/src/finiteVolume/lnInclude/readPISOControls.H:14: warning: unused variable ‘nOuterCorr’ /opt/openfoam171/src/finiteVolume/lnInclude/readPISOControls.H:3: warning: unused variable ‘nCorr’ /opt/openfoam171/src/finiteVolume/lnInclude/readPISOControls.H:8: warning: unused variable ‘momentumPredictor’ /opt/openfoam171/src/finiteVolume/lnInclude/readPISOControls.H:11: warning: unused variable ‘transonic’ /opt/openfoam171/src/finiteVolume/lnInclude/readPISOControls.H:14: warning: unused variable ‘nOuterCorr’ make: *** [Make/linux64GccDPOpt/shipFoam.o] Error 1 |
|
September 7, 2010, 05:05 |
|
#2 |
Senior Member
|
Hi,
you try to use parts from the DEV- or EXTEND-guys (Version 1.6) with the very latest OpenFOAM (Version 1.7.1) from the OpenCFD guys. => OpenCFD does not assure "backward" compatiblity to older Versions. Sometimes they drop things as they think it is outdated stuff. This makes some people unhappy that do performance benchmarks for old<->new versions. You have to tweak less code if you stay on the same Version number. Sometimes it is wise to ask if this stuff uses stuff from DEV/EXTEND-Version like GGI for example. => Stuff that never made it into OpenCFD OpenFOAM Version. |
|
September 7, 2010, 19:40 |
|
#3 |
Senior Member
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36 |
To be fair that code (2008) is a "a bit older" than 1.6 ;-)
__________________
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. |
|
November 14, 2010, 07:43 |
|
#4 | |
Senior Member
Ralph Moolenaar
Join Date: Aug 2010
Location: 's-Hertogenbosch, the Netherlands
Posts: 120
Rep Power: 16 |
Quote:
I've been looking in this solver too. When you go into shipFoam.C you can find lines 141 and 142 hidden. Remove the "//" and the error is vanished. Also add in the same file at line 117 "alphaCourantNo.H" and "CourantNo.H". Furthermore change p into p_rgh. Good luck! Ralph |
||
November 14, 2010, 09:40 |
|
#5 |
Senior Member
Ralph Moolenaar
Join Date: Aug 2010
Location: 's-Hertogenbosch, the Netherlands
Posts: 120
Rep Power: 16 |
@Emanuele: Today I found something with the p and p_rgh thing in ShipFoam. Let me know if you're interested in the compiled version for OF1.7.1.
@All: It would be nice to have a group of people to check/validate this version! Cheers, Ralph |
|
November 14, 2010, 13:16 |
thanks
|
#6 |
Senior Member
Emanuele
Join Date: Mar 2009
Posts: 110
Rep Power: 17 |
thanks for your reply Ralph! Now i m not a current user of OpenFOAM anymore but i ll suggest to test this solver to a hydrodynamic research group wherewith i have worked in the recent past.
Thanks again Regards Emanuele |
|
November 17, 2010, 06:36 |
|
#7 | |
Senior Member
Ralph Moolenaar
Join Date: Aug 2010
Location: 's-Hertogenbosch, the Netherlands
Posts: 120
Rep Power: 16 |
Quote:
Ralph |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
OpenCFD release OpenFOAM® version 1.7.1 | opencfd | OpenFOAM Announcements from ESI-OpenCFD | 0 | August 26, 2010 12:40 |