CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Installation

shipHydrodynamicIG in OF 1.7.1

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

Reply
 
LinkBack Thread Tools Display Modes
Old   September 1, 2010, 08:35
Default shipHydrodynamicIG in OF 1.7.1
  #1
Senior Member
 
Emanuele
Join Date: Mar 2009
Posts: 110
Rep Power: 8
nuovodna is on a distinguished road
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
nuovodna is offline   Reply With Quote

Old   September 7, 2010, 04:05
Default
  #2
Senior Member
 
Elvis
Join Date: Mar 2009
Location: Sindelfingen, Germany
Posts: 577
Blog Entries: 5
Rep Power: 13
elvis is on a distinguished road
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.
elvis is offline   Reply With Quote

Old   September 7, 2010, 18:40
Default
  #3
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
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 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   November 14, 2010, 07:43
Default
  #4
Senior Member
 
Ralph Moolenaar
Join Date: Aug 2010
Location: 's-Hertogenbosch, the Netherlands
Posts: 120
Rep Power: 6
Ralph M is on a distinguished road
Quote:
Originally Posted by nuovodna View Post
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 is offline   Reply With Quote

Old   November 14, 2010, 09:40
Default
  #5
Senior Member
 
Ralph Moolenaar
Join Date: Aug 2010
Location: 's-Hertogenbosch, the Netherlands
Posts: 120
Rep Power: 6
Ralph M is on a distinguished road
@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
Ralph M is offline   Reply With Quote

Old   November 14, 2010, 13:16
Default thanks
  #6
Senior Member
 
Emanuele
Join Date: Mar 2009
Posts: 110
Rep Power: 8
nuovodna is on a distinguished road
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
nuovodna is offline   Reply With Quote

Old   November 17, 2010, 06:36
Default
  #7
Senior Member
 
Ralph Moolenaar
Join Date: Aug 2010
Location: 's-Hertogenbosch, the Netherlands
Posts: 120
Rep Power: 6
Ralph M is on a distinguished road
Quote:
Originally Posted by Ralph M View Post
@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
Ralph M 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
OpenCFD release OpenFOAM® version 1.7.1 opencfd OpenFOAM Announcements from ESI-OpenCFD 0 August 26, 2010 11:40


All times are GMT -4. The time now is 19:34.