CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (http://www.cfd-online.com/Forums/openfoam-installation/)
-   -   shipHydrodynamicIG in OF 1.7.1 (http://www.cfd-online.com/Forums/openfoam-installation/79718-shiphydrodynamicig-1-7-1-a.html)

nuovodna September 1, 2010 08:35

shipHydrodynamicIG in OF 1.7.1
 
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


elvis September 7, 2010 04:05

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.

alberto September 7, 2010 18:40

To be fair that code (2008) is a "a bit older" than 1.6 ;-)

Ralph M November 14, 2010 07:43

Quote:

Originally Posted by nuovodna (Post 273611)
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


Hi Emanuele,

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

Ralph M November 14, 2010 09:40

@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

nuovodna November 14, 2010 13:16

thanks
 
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

Ralph M November 17, 2010 06:36

Quote:

Originally Posted by Ralph M (Post 283396)
@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

I just started the Ship Hydromechanics group on this forum to develop new ideas and tools for ship type problems. Please join!

Ralph


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