phicau / IHFOAM

IHFOAM is a set of solvers and boundary conditions to generate and absorb water waves actively at the boundaries and to simulate their interaction with porous coastal structures.
11 stars 13 forks source link

Compilation issue #1

Closed remingtonCarmi closed 10 years ago

remingtonCarmi commented 10 years ago

Hi, I tried to compile the allMake files but I get command error messages : ./localMake: line 6: wclean: command not found ./localMake: line 8: wmake: command not found Thanks for your help RC

phicau commented 10 years ago

Hi RC,

this is because you have not loaded the OpenFOAM environmental variables correctly (i.e. the system does not know you are even using OpenFOAM).

I suggest you follow the guidelines in http://www.openfoam.org/download/ubuntu.php , especially starting at the User Configuration section.

If you exprience any trouble installing and making OpenFOAM run, please check cfd-online forum

Best,

Pablo

remingtonCarmi commented 10 years ago

Hi Pablo,

Thanks for your email.

I compiled OpenFOAM and I was able to run some basic simulations.

I am now trying again to use IHFOAM but I cannot compile it yet… Here is a log of the output I have in the terminal.

Do you know what I have done wrong?

BEGIN

Remis-MacBook-Pro:OpenFOAM Carmi$ cd IHFOAM/ Remis-MacBook-Pro:IHFOAM Carmi$ cd genAbs/ Remis-MacBook-Pro:genAbs Carmi$ ./allMake wmakeLnInclude: linking include files to ./lnInclude Making dependency list for source file IH_Waves_InletVelocity/IH_Waves_InletVelocityFvPatchVectorField.C Making dependency list for source file IH_Waves_InletAlpha/IH_Waves_InletAlphaFvPatchScalarField.C SOURCE=IH_Waves_InletVelocity/IH_Waves_InletVelocityFvPatchVectorField.C ; g++-mp-4.6 -m64 -fsignaling-nans -ftrapping-math -DdarwinIntel64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O2 -DNoRepository -ftemplate-depth-100 -DOFVERSION=2n3n0 -I/Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/src/finiteVolume/lnInclude -I./IH_Waves_InletVelocity/velProfiles -I../common -I../common/checks -I../common/calculateWaterLevel -IlnInclude -I. -I/Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/src/OpenFOAM/lnInclude -I/Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/src/OSspecific/POSIX/lnInclude -fPIC -Ddarwin -c $SOURCE -o Make/darwinIntel64Gcc46DPOpt/IH_Waves_InletVelocityFvPatchVectorField.o SOURCE=IH_Waves_InletAlpha/IH_Waves_InletAlphaFvPatchScalarField.C ; g++-mp-4.6 -m64 -fsignaling-nans -ftrapping-math -DdarwinIntel64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O2 -DNoRepository -ftemplate-depth-100 -DOFVERSION=2n3n0 -I/Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/src/finiteVolume/lnInclude -I./IH_Waves_InletVelocity/velProfiles -I../common -I../common/checks -I../common/calculateWaterLevel -IlnInclude -I. -I/Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/src/OpenFOAM/lnInclude -I/Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/src/OSspecific/POSIX/lnInclude -fPIC -Ddarwin -c $SOURCE -o Make/darwinIntel64Gcc46DPOpt/IH_Waves_InletAlphaFvPatchScalarField.o SOURCE=../common/waveFun.C ; g++-mp-4.6 -m64 -fsignaling-nans -ftrapping-math -DdarwinIntel64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O2 -DNoRepository -ftemplate-depth-100 -DOFVERSION=2n3n0 -I/Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/src/finiteVolume/lnInclude -I./IH_WavesInletVelocity/velProfiles -I../common -I../common/checks -I../common/calculateWaterLevel -IlnInclude -I. -I/Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/src/OpenFOAM/lnInclude -I/Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/src/OSspecific/POSIX/lnInclude -fPIC -Ddarwin -c $SOURCE -o Make/darwinIntel64Gcc46DPOpt/waveFun.o ../common/waveFun.C: In function 'void Elliptic::ellipticIntegralsKE(double, double, double)': ../common/waveFun.C:300:34: warning: use of old-style cast [-Wold-style-cast] ../common/waveFun.C:301:40: warning: use of old-style cast [-Wold-style-cast] ../common/waveFun.C: In function 'double Elliptic::JacobiAmp(double, double)': ../common/waveFun.C:349:25: warning: use of old-style cast [-Wold-style-cast] ../common/waveFun.C: In function 'int cnoidalFun::calculations(double, double, double, double, double_)': ../common/waveFun.C:602:16: warning: unused variable 'KElliptic' [-Wunused-variable] ../common/waveFun.C:603:16: warning: unused variable 'EElliptic' [-Wunused-variable] In file included from IH_Waves_InletAlpha/IH_Waves_InletAlphaFvPatchScalarField.H:277:0, from IH_Waves_InletAlpha/IH_Waves_InletAlphaFvPatchScalarField.C:47: ../common/memberFun.H:4:17: error: invalid suffix "n3n0" on integer constant ../common/memberFun.H:15:17: error: invalid suffix "n3n0" on integer constant In file included from IH_Waves_InletVelocity/IH_Waves_InletVelocityFvPatchVectorField.H:280:0, from IH_Waves_InletVelocity/IH_Waves_InletVelocityFvPatchVectorField.C:47: ../common/memberFun.H:4:17: error: invalid suffix "n3n0" on integer constant ../common/memberFun.H:15:17: error: invalid suffix "n3n0" on integer constant In file included from IH_Waves_InletAlpha/IH_Waves_InletAlphaFvPatchScalarField.H:277:0, from IH_Waves_InletAlpha/IH_Waves_InletAlphaFvPatchScalarField.C:47: ../common/memberFun.H: In member function 'Foam::scalar Foam::IH_Waves_InletAlphaFvPatchScalarField::PI()': ../common/memberFun.H:7:35: error: 'mathematicalConstant' has not been declared In file included from IH_Waves_InletVelocity/IH_Waves_InletVelocityFvPatchVectorField.H:280:0, from IH_Waves_InletVelocity/IH_Waves_InletVelocityFvPatchVectorField.C:47: ../common/memberFun.H: In member function 'Foam::scalar Foam::IH_Waves_InletVelocityFvPatchVectorField::PI()': ../common/memberFun.H:7:35: error: 'mathematicalConstant' has not been declared IH_Waves_InletAlpha/IH_Waves_InletAlphaFvPatchScalarField.C: In member function 'virtual void Foam::IH_Waves_InletAlphaFvPatchScalarField::updateCoeffs()': IH_Waves_InletAlpha/IH_Waves_InletAlphaFvPatchScalarField.C:316:12: warning: unused variable 'auxiliarSolit' [-Wunused-variable] IH_Waves_InletAlpha/IH_Waves_InletAlphaFvPatchScalarField.C:319:12: warning: unused variable 'Csolitary' [-Wunused-variable] IH_Waves_InletAlpha/IH_Waves_InletAlphaFvPatchScalarField.C:320:12: warning: unused variable 'ts' [-Wunused-variable] IH_Waves_InletAlpha/IH_Waves_InletAlphaFvPatchScalarField.C:321:12: warning: unused variable 'Xa' [-Wunused-variable] IH_Waves_InletAlpha/IH_Waves_InletAlphaFvPatchScalarField.C:361:18: warning: unused variable 'g' [-Wunused-variable] IH_Waves_InletVelocity/IH_Waves_InletVelocityFvPatchVectorField.C: In member function 'virtual void Foam::IH_Waves_InletVelocityFvPatchVectorField::updateCoeffs()': IH_Waves_InletVelocity/IH_Waves_InletVelocityFvPatchVectorField.C:320:12: warning: unused variable 'auxiliarSolit' [-Wunused-variable] IH_Waves_InletVelocity/IH_Waves_InletVelocityFvPatchVectorField.C:324:12: warning: unused variable 'Csolitary' [-Wunused-variable] IH_Waves_InletVelocity/IH_Waves_InletVelocityFvPatchVectorField.C:325:12: warning: unused variable 'etaSolit' [-Wunused-variable] IH_Waves_InletVelocity/IH_Waves_InletVelocityFvPatchVectorField.C:326:12: warning: unused variable 'ts' [-Wunused-variable] IH_Waves_InletVelocity/IH_Waves_InletVelocityFvPatchVectorField.C:327:12: warning: unused variable 'Xa' [-Wunused-variable] ../common/memberFun.H: In member function 'Foam::scalar Foam::IH_Waves_InletAlphaFvPatchScalarField::PI()': ../common/memberFun.H:10:9: warning: control reaches end of non-void function [-Wreturn-type] make: * [Make/darwinIntel64Gcc46DPOpt/IH_Waves_InletAlphaFvPatchScalarField.o] Error 1 make: * Waiting for unfinished jobs.... ../common/memberFun.H: In member function 'Foam::scalar Foam::IH_Waves_InletVelocityFvPatchVectorField::PI()': ../common/memberFun.H:10:9: warning: control reaches end of non-void function [-Wreturn-type] make: *\ [Make/darwinIntel64Gcc46DPOpt/IH_Waves_InletVelocityFvPatchVectorField.o] Error 1 \n\nWave generation boundary conditions compilation failed

############END#######

Thanks for your help

Remi Carmigniani rcarmi@me.com

On Jul 24, 2014, at 11:59 AM, Pablo Higuera notifications@github.com wrote:

Closed #1.

— Reply to this email directly or view it on GitHub.

phicau commented 10 years ago

Hi Remi,

try updating this line in your allMake script and compile:

ofversion=echo $WM_PROJECT_VERSION"-0" | sed -e 's/.x/-9/' -e 's/./\'$'\n/g' -e 's/-/\'$'\n/g' | grep "[0-9]" | head -3 | tr -d '\n'``

Please report back, as I cannot test it on a Mac right now.

Best,

Pablo

remingtonCarmi commented 10 years ago

Hi Pablo,

Thanks a lot.

It looks like it works. Here is the output I get

###############BEGIN Remis-MacBook-Pro:genAbs Carmi$ ./allMake 2>&1 | tee Remi.log ./allMake: line 3: 2.3.0-0: command not found wmakeLnInclude: linking include files to ./lnInclude Making dependency list for source file IH_Waves_InletAlpha/IH_Waves_InletAlphaFvPatchScalarField.C Making dependency list for source file IH_Waves_InletVelocity/IH_Waves_InletVelocityFvPatchVectorField.C SOURCE=IH_Waves_InletVelocity/IH_Waves_InletVelocityFvPatchVectorField.C ; g++-mp-4.6 -m64 -fsignaling-nans -ftrapping-math -DdarwinIntel64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O2 -DNoRepository -ftemplate-depth-100 -DOFVERSION= -I/Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/src/finiteVolume/lnInclude -I./IH_Waves_InletVelocity/velProfiles -I../common -I../common/checks -I../common/calculateWaterLevel -IlnInclude -I. -I/Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/src/OpenFOAM/lnInclude -I/Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/src/OSspecific/POSIX/lnInclude -fPIC -Ddarwin -c $SOURCE -o Make/darwinIntel64Gcc46DPOpt/IH_Waves_InletVelocityFvPatchVectorField.o SOURCE=IH_Waves_InletAlpha/IH_Waves_InletAlphaFvPatchScalarField.C ; g++-mp-4.6 -m64 -fsignaling-nans -ftrapping-math -DdarwinIntel64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O2 -DNoRepository -ftemplate-depth-100 -DOFVERSION= -I/Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/src/finiteVolume/lnInclude -I./IH_Waves_InletVelocity/velProfiles -I../common -I../common/checks -I../common/calculateWaterLevel -IlnInclude -I. -I/Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/src/OpenFOAM/lnInclude -I/Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/src/OSspecific/POSIX/lnInclude -fPIC -Ddarwin -c $SOURCE -o Make/darwinIntel64Gcc46DPOpt/IH_Waves_InletAlphaFvPatchScalarField.o SOURCE=../common/waveFun.C ; g++-mp-4.6 -m64 -fsignaling-nans -ftrapping-math -DdarwinIntel64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O2 -DNoRepository -ftemplate-depth-100 -DOFVERSION= -I/Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/src/finiteVolume/lnInclude -I./IH_WavesInletVelocity/velProfiles -I../common -I../common/checks -I../common/calculateWaterLevel -IlnInclude -I. -I/Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/src/OpenFOAM/lnInclude -I/Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/src/OSspecific/POSIX/lnInclude -fPIC -Ddarwin -c $SOURCE -o Make/darwinIntel64Gcc46DPOpt/waveFun.o ../common/waveFun.C: In function 'void Elliptic::ellipticIntegralsKE(double, double, double)': ../common/waveFun.C:300:34: warning: use of old-style cast [-Wold-style-cast] ../common/waveFun.C:301:40: warning: use of old-style cast [-Wold-style-cast] ../common/waveFun.C: In function 'double Elliptic::JacobiAmp(double, double)': ../common/waveFun.C:349:25: warning: use of old-style cast [-Wold-style-cast] ../common/waveFun.C: In function 'int cnoidalFun::calculations(double, double, double, double, double_)': ../common/waveFun.C:602:16: warning: unused variable 'KElliptic' [-Wunused-variable] ../common/waveFun.C:603:16: warning: unused variable 'EElliptic' [-Wunused-variable] In file included from IH_Waves_InletVelocity/IH_Waves_InletVelocityFvPatchVectorField.H:280:0, from IH_Waves_InletVelocity/IH_Waves_InletVelocityFvPatchVectorField.C:47: ../common/memberFun.H:4:27: error: operator '>=' has no left operand ../common/memberFun.H:15:27: error: operator '>=' has no left operand In file included from IH_Waves_InletAlpha/IH_Waves_InletAlphaFvPatchScalarField.H:277:0, from IH_Waves_InletAlpha/IH_Waves_InletAlphaFvPatchScalarField.C:47: ../common/memberFun.H:4:27: error: operator '>=' has no left operand ../common/memberFun.H:15:27: error: operator '>=' has no left operand In file included from IH_Waves_InletAlpha/IH_Waves_InletAlphaFvPatchScalarField.H:277:0, from IH_Waves_InletAlpha/IH_Waves_InletAlphaFvPatchScalarField.C:47: ../common/memberFun.H: In member function 'Foam::scalar Foam::IH_Waves_InletAlphaFvPatchScalarField::PI()': ../common/memberFun.H:7:35: error: 'mathematicalConstant' has not been declared In file included from IH_Waves_InletVelocity/IH_Waves_InletVelocityFvPatchVectorField.H:280:0, from IH_Waves_InletVelocity/IH_Waves_InletVelocityFvPatchVectorField.C:47: ../common/memberFun.H: In member function 'Foam::scalar Foam::IH_Waves_InletVelocityFvPatchVectorField::PI()': ../common/memberFun.H:7:35: error: 'mathematicalConstant' has not been declared IH_Waves_InletAlpha/IH_Waves_InletAlphaFvPatchScalarField.C: In member function 'virtual void Foam::IH_Waves_InletAlphaFvPatchScalarField::updateCoeffs()': IH_Waves_InletAlpha/IH_Waves_InletAlphaFvPatchScalarField.C:316:12: warning: unused variable 'auxiliarSolit' [-Wunused-variable] IH_Waves_InletAlpha/IH_Waves_InletAlphaFvPatchScalarField.C:319:12: warning: unused variable 'Csolitary' [-Wunused-variable] IH_Waves_InletAlpha/IH_Waves_InletAlphaFvPatchScalarField.C:320:12: warning: unused variable 'ts' [-Wunused-variable] IH_Waves_InletAlpha/IH_Waves_InletAlphaFvPatchScalarField.C:321:12: warning: unused variable 'Xa' [-Wunused-variable] IH_Waves_InletAlpha/IH_Waves_InletAlphaFvPatchScalarField.C:361:18: warning: unused variable 'g' [-Wunused-variable] IH_Waves_InletVelocity/IH_Waves_InletVelocityFvPatchVectorField.C: In member function 'virtual void Foam::IH_Waves_InletVelocityFvPatchVectorField::updateCoeffs()': IH_Waves_InletVelocity/IH_Waves_InletVelocityFvPatchVectorField.C:320:12: warning: unused variable 'auxiliarSolit' [-Wunused-variable] IH_Waves_InletVelocity/IH_Waves_InletVelocityFvPatchVectorField.C:324:12: warning: unused variable 'Csolitary' [-Wunused-variable] IH_Waves_InletVelocity/IH_Waves_InletVelocityFvPatchVectorField.C:325:12: warning: unused variable 'etaSolit' [-Wunused-variable] IH_Waves_InletVelocity/IH_Waves_InletVelocityFvPatchVectorField.C:326:12: warning: unused variable 'ts' [-Wunused-variable] IH_Waves_InletVelocity/IH_Waves_InletVelocityFvPatchVectorField.C:327:12: warning: unused variable 'Xa' [-Wunused-variable] ../common/memberFun.H: In member function 'Foam::scalar Foam::IH_Waves_InletAlphaFvPatchScalarField::PI()': ../common/memberFun.H:10:9: warning: control reaches end of non-void function [-Wreturn-type] make: * [Make/darwinIntel64Gcc46DPOpt/IH_Waves_InletAlphaFvPatchScalarField.o] Error 1 make: * Waiting for unfinished jobs.... ../common/memberFun.H: In member function 'Foam::scalar Foam::IH_Waves_InletVelocityFvPatchVectorField::PI()': ../common/memberFun.H:10:9: warning: control reaches end of non-void function [-Wreturn-type] make: *\ [Make/darwinIntel64Gcc46DPOpt/IH_Waves_InletVelocityFvPatchVectorField.o] Error 1 \n\nWave generation boundary conditions compilation failed Remis-MacBook-Pro:genAbs Carmi$ ./allMake 2>&1 | tee Remi.log wmakeLnInclude: linking include files to ./lnInclude Making dependency list for source file IH_Waves_InletVelocity/IH_Waves_InletVelocityFvPatchVectorField.C Making dependency list for source file IH_Waves_InletAlpha/IH_Waves_InletAlphaFvPatchScalarField.C SOURCE=../common/waveFun.C ; g++-mp-4.6 -m64 -fsignaling-nans -ftrapping-math -DdarwinIntel64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O2 -DNoRepository -ftemplate-depth-100 -DOFVERSION=230 -I/Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/src/finiteVolume/lnInclude -I./IH_Waves_InletVelocity/velProfiles -I../common -I../common/checks -I../common/calculateWaterLevel -IlnInclude -I. -I/Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/src/OpenFOAM/lnInclude -I/Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/src/OSspecific/POSIX/lnInclude -fPIC -Ddarwin -c $SOURCE -o Make/darwinIntel64Gcc46DPOpt/waveFun.o SOURCE=IH_Waves_InletAlpha/IH_Waves_InletAlphaFvPatchScalarField.C ; g++-mp-4.6 -m64 -fsignaling-nans -ftrapping-math -DdarwinIntel64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O2 -DNoRepository -ftemplate-depth-100 -DOFVERSION=230 -I/Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/src/finiteVolume/lnInclude -I./IH_Waves_InletVelocity/velProfiles -I../common -I../common/checks -I../common/calculateWaterLevel -IlnInclude -I. -I/Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/src/OpenFOAM/lnInclude -I/Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/src/OSspecific/POSIX/lnInclude -fPIC -Ddarwin -c $SOURCE -o Make/darwinIntel64Gcc46DPOpt/IH_Waves_InletAlphaFvPatchScalarField.o SOURCE=IH_Waves_InletVelocity/IH_Waves_InletVelocityFvPatchVectorField.C ; g++-mp-4.6 -m64 -fsignaling-nans -ftrapping-math -DdarwinIntel64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O2 -DNoRepository -ftemplate-depth-100 -DOFVERSION=230 -I/Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/src/finiteVolume/lnInclude -I./IH_Waves_InletVelocity/velProfiles -I../common -I../common/checks -I../common/calculateWaterLevel -IlnInclude -I. -I/Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/src/OpenFOAM/lnInclude -I/Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/src/OSspecific/POSIX/lnInclude -fPIC -Ddarwin -c $SOURCE -o Make/darwinIntel64Gcc46DPOpt/IH_WavesInletVelocityFvPatchVectorField.o ../common/waveFun.C: In function 'void Elliptic::ellipticIntegralsKE(double, double, double)': ../common/waveFun.C:300:34: warning: use of old-style cast [-Wold-style-cast] ../common/waveFun.C:301:40: warning: use of old-style cast [-Wold-style-cast] ../common/waveFun.C: In function 'double Elliptic::JacobiAmp(double, double)': ../common/waveFun.C:349:25: warning: use of old-style cast [-Wold-style-cast] ../common/waveFun.C: In function 'int cnoidalFun::calculations(double, double, double, double, double_)': ../common/waveFun.C:602:16: warning: unused variable 'KElliptic' [-Wunused-variable] ../common/waveFun.C:603:16: warning: unused variable 'EElliptic' [-Wunused-variable] IH_Waves_InletVelocity/IH_Waves_InletVelocityFvPatchVectorField.C: In member function 'virtual void Foam::IH_Waves_InletVelocityFvPatchVectorField::updateCoeffs()': IH_Waves_InletVelocity/IH_Waves_InletVelocityFvPatchVectorField.C:604:16: warning: variable 'cellV' set but not used [-Wunused-but-set-variable] IH_Waves_InletAlpha/IH_Waves_InletAlphaFvPatchScalarField.C: In member function 'virtual void Foam::IH_Waves_InletAlphaFvPatchScalarField::updateCoeffs()': IH_Waves_InletAlpha/IH_Waves_InletAlphaFvPatchScalarField.C:315:12: warning: variable 'auxiliarTotal' set but not used [-Wunused-but-set-variable] IH_Waves_InletAlpha/IH_Waves_InletAlphaFvPatchScalarField.C:316:12: warning: unused variable 'auxiliarSolit' [-Wunused-variable] IH_Waves_InletAlpha/IH_Waves_InletAlphaFvPatchScalarField.C:319:12: warning: unused variable 'Csolitary' [-Wunused-variable] IH_Waves_InletAlpha/IH_Waves_InletAlphaFvPatchScalarField.C:320:12: warning: unused variable 'ts' [-Wunused-variable] IH_Waves_InletAlpha/IH_Waves_InletAlphaFvPatchScalarField.C:321:12: warning: unused variable 'Xa' [-Wunused-variable] IH_Waves_InletAlpha/IH_Waves_InletAlphaFvPatchScalarField.C:361:18: warning: unused variable 'g' [-Wunused-variable] IH_Waves_InletVelocity/IH_Waves_InletVelocityFvPatchVectorField.C:320:12: warning: unused variable 'auxiliarSolit' [-Wunused-variable] IH_Waves_InletVelocity/IH_Waves_InletVelocityFvPatchVectorField.C:324:12: warning: unused variable 'Csolitary' [-Wunused-variable] IH_Waves_InletVelocity/IH_Waves_InletVelocityFvPatchVectorField.C:325:12: warning: unused variable 'etaSolit' [-Wunused-variable] IH_Waves_InletVelocity/IH_Waves_InletVelocityFvPatchVectorField.C:326:12: warning: unused variable 'ts' [-Wunused-variable] IH_Waves_InletVelocity/IH_Waves_InletVelocityFvPatchVectorField.C:327:12: warning: unused variable 'Xa' [-Wunused-variable] IH_Waves_InletVelocity/IH_Waves_InletVelocityFvPatchVectorField.C:539:10: warning: variable 'absDireccional' set but not used [-Wunused-but-set-variable] IH_Waves_InletAlpha/IH_Waves_InletAlphaFvPatchScalarField.C:379:12: warning: 'waveKy' may be used uninitialized in this function [-Wuninitialized] IH_Waves_InletAlpha/IH_Waves_InletAlphaFvPatchScalarField.C:377:12: warning: 'waveKx' may be used uninitialized in this function [-Wuninitialized] ../common/calculateWaterLevel/calculatedLevelSolitary.H:15:17: warning: 'waveAngle' may be used uninitialized in this function [-Wuninitialized] IH_Waves_InletAlpha/IH_Waves_InletAlphaFvPatchScalarField.C:375:12: note: 'waveAngle' was declared here IH_Waves_InletAlpha/IH_Waves_InletAlphaFvPatchScalarField.C:371:12: warning: 'waveOmega' may be used uninitialized in this function [-Wuninitialized] IH_Waves_InletVelocity/IH_Waves_InletVelocityFvPatchVectorField.C:395:12: warning: 'waveKy' may be used uninitialized in this function [-Wuninitialized] IH_Waves_InletVelocity/IH_Waves_InletVelocityFvPatchVectorField.C:393:12: warning: 'waveKx' may be used uninitialized in this function [-Wuninitialized] IH_Waves_InletVelocity/IH_Waves_InletVelocityFvPatchVectorField.C:391:12: warning: 'waveAngle' may be used uninitialized in this function [-Wuninitialized] IH_Waves_InletVelocity/IH_Waves_InletVelocityFvPatchVectorField.C:387:12: warning: 'waveOmega' may be used uninitialized in this function [-Wuninitialized] '/Users/Carmi/OpenFOAM/Carmi-2.3.0/platforms/darwinIntel64Gcc46DPOpt/lib/libIHwaveGeneration.dylib' is up to date.

Wave generation boundary conditions compiled successfully for OpenFOAM 230

wmakeLnInclude: linking include files to ./lnInclude Making dependency list for source file IH_3D_3DAbsorption_InletVelocity/IH_3D_3DAbsorption_InletVelocityFvPatchVectorField.C Making dependency list for source file IH_3D_2DAbsorption_InletVelocity/IH_3D_2DAbsorption_InletVelocityFvPatchVectorField.C SOURCE=IH_3D_3DAbsorption_InletVelocity/IH_3D_3DAbsorption_InletVelocityFvPatchVectorField.C ; g++-mp-4.6 -m64 -fsignaling-nans -ftrapping-math -DdarwinIntel64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O2 -DNoRepository -ftemplate-depth-100 -DOFVERSION=230 -I/Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/src/finiteVolume/lnInclude -I../common -IlnInclude -I. -I/Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/src/OpenFOAM/lnInclude -I/Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/src/OSspecific/POSIX/lnInclude -fPIC -Ddarwin -c $SOURCE -o Make/darwinIntel64Gcc46DPOpt/IH_3D_3DAbsorption_InletVelocityFvPatchVectorField.o SOURCE=IH_3D_2DAbsorption_InletVelocity/IH_3D_2DAbsorption_InletVelocityFvPatchVectorField.C ; g++-mp-4.6 -m64 -fsignaling-nans -ftrapping-math -DdarwinIntel64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O2 -DNoRepository -ftemplate-depth-100 -DOFVERSION=230 -I/Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/src/finiteVolume/lnInclude -I../common -IlnInclude -I. -I/Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/src/OpenFOAM/lnInclude -I/Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/src/OSspecific/POSIX/lnInclude -fPIC -Ddarwin -c $SOURCE -o Make/darwinIntel64Gcc46DPOpt/IH_3D_2DAbsorption_InletVelocityFvPatchVectorField.o '/Users/Carmi/OpenFOAM/Carmi-2.3.0/platforms/darwinIntel64Gcc46DPOpt/lib/libIHwaveAbsorption.dylib' is up to date.

Wave absorption boundary conditions compiled successfully for OpenFOAM 230

########END

But I get that with the second compilation

BEGIN

Remis-MacBook-Pro:IHFOAM Carmi$ cd solvers/ihFoamFE30_31/ Remis-MacBook-Pro:ihFoamFE30_31 Carmi$ ./allMake Making dependency list for source file ihFoam.C could not open file twoPhaseMixture.H for source file ihFoam.C due to No such file or directory could not open file readPIMPLEControls.H for source file ihFoam.C due to No such file or directory SOURCE=ihFoam.C ; g++-mp-4.6 -m64 -fsignaling-nans -ftrapping-math -DdarwinIntel64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O2 -DNoRepository -ftemplate-depth-100 -I/Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/src/transportModels -I/Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/src/transportModels/incompressible/lnInclude -I/Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/src/transportModels/interfaceProperties/lnInclude -I/Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/src/turbulenceModels/incompressible/turbulenceModel -I/Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/src/finiteVolume/lnInclude -IlnInclude -I. -I/Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/src/OpenFOAM/lnInclude -I/Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/src/OSspecific/POSIX/lnInclude -fPIC -Ddarwin -c $SOURCE -o Make/darwinIntel64Gcc46DPOpt/ihFoam.o ihFoam.C:68:29: fatal error: twoPhaseMixture.H: No such file or directory compilation terminated. make: *\ [Make/darwinIntel64Gcc46DPOpt/ihFoam.o] Error 1 ihFoam compilation failed

END

I have the twoPhaseMixture.H in OpenFOAM at the directory OpenFOAM-v2.3/OpenFOAM-2.3.0/src/transportModels/twoPhaseMixture/twoPhaseMixture I don’t think just copying and pasting it in the folder is a good idea. It does find the other ones though…

include "fvCFD.H"

include "MULES.H"

include "subCycle.H"

include “interfaceProperties.H"

What should I do? Thanks Remi

On Aug 7, 2014, at 12:10 AM, Pablo Higuera notifications@github.com wrote:

Hi Remi,

try updating this line in your allMake script and compile:

ofversion=echo $WM_PROJECT_VERSION"-0" | sed -e 's/.x/-9/' -e 's/./\'$'\n/g' -e 's/-/\'$'\n/g' | grep "[0-9]" | head -3 | tr -d '\n'

Please report back, as I cannot test it on a Mac right now.

Best,

Pablo

— Reply to this email directly or view it on GitHub.

phicau commented 10 years ago

Hi Remi,

thanks for the feedback.

The second issue is because you are trying to compile FOAM-extend version while using 2.3.0. You should compile the correct version: ihFoamOF230

However, please note that I do not rely in version 2.3.0. Read section 1.2 from the IHFOAM wiki to find out more details:

http://openfoamwiki.net/index.php/Contrib/IHFOAM

Best,

Pablo

remingtonCarmi commented 10 years ago

Hi Pablo

Thanks a lot for your help. I cannot compile IHFOAMOF230 This is what I get:

LOG

dhcp-96-243:solvers Carmi$ cd ihFoamOF230/ dhcp-96-243:ihFoamOF230 Carmi$ ls Make UEqn.H alphaCourantNo.H alphaEqnSubCycle.H createFields.H ihFoam.C pEqn.H README allMake alphaEqn.H correctPhi.H ihDyMFoam ihFoam.dep setDeltaT.H dhcp-96-243:ihFoamOF230 Carmi$ ./allMake Making dependency list for source file ihFoam.C SOURCE=ihFoam.C ; g++-mp-4.6 -m64 -fsignaling-nans -ftrapping-math -DdarwinIntel64 -DWMDP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O2 -DNoRepository -ftemplate-depth-100 -ggdb3 -I/Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/src/transportModels/twoPhaseMixture/lnInclude -I/Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/src/transportModels -I/Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/src/transportModels/incompressible/lnInclude -I/Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/src/transportModels/interfaceProperties/lnInclude -I/Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/src/turbulenceModels/incompressible/turbulenceModel -I/Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/src/finiteVolume/lnInclude -I/Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/src/meshTools/lnInclude -I/Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/src/fvOptions/lnInclude -I/Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/src/sampling/lnInclude -IlnInclude -I. -I/Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/src/OpenFOAM/lnInclude -I/Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/src/OSspecific/POSIX/lnInclude -fPIC -Ddarwin -c $SOURCE -o Make/darwinIntel64Gcc46DPOpt/ihFoam.o /Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/src/finiteVolume/lnInclude/readTimeControls.H: In function 'int main(int, char*)': /Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/src/finiteVolume/lnInclude/readTimeControls.H:38:8: warning: unused variable 'maxDeltaT' [-Wunused-variable] g++-mp-4.6 -m64 -fsignaling-nans -ftrapping-math -DdarwinIntel64 -DWMDP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O2 -DNoRepository -ftemplate-depth-100 -ggdb3 -I/Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/src/transportModels/twoPhaseMixture/lnInclude -I/Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/src/transportModels -I/Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/src/transportModels/incompressible/lnInclude -I/Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/src/transportModels/interfaceProperties/lnInclude -I/Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/src/turbulenceModels/incompressible/turbulenceModel -I/Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/src/finiteVolume/lnInclude -I/Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/src/meshTools/lnInclude -I/Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/src/fvOptions/lnInclude -I/Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/src/sampling/lnInclude -IlnInclude -I. -I/Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/src/OpenFOAM/lnInclude -I/Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/src/OSspecific/POSIX/lnInclude -fPIC -Ddarwin -lpthread -L/Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/platforms/darwinIntel64Gcc46DPOpt/lib/openmpi-system -lPstream Make/darwinIntel64Gcc46DPOpt/ihFoam.o -L/Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/platforms/darwinIntel64Gcc46DPOpt/lib \ -ltwoPhaseMixture -linterfaceProperties -ltwoPhaseProperties -lincompressibleTransportModels -lincompressibleTurbulenceModel -lincompressibleRASModels -lincompressibleLESModels -lfiniteVolume -lmeshTools -lfvOptions -lsampling /Users/Carmi/OpenFOAM/Carmi-2.3.0/platforms/darwinIntel64Gcc46DPOpt/lib/libIHwaveGeneration.so /Users/Carmi/OpenFOAM/Carmi-2.3.0/platforms/darwinIntel64Gcc46DPOpt/lib/libIHwaveAbsorption.so -lOpenFOAM -ldl -lpthread -lm -o /Users/Carmi/OpenFOAM/Carmi-2.3.0/platforms/darwinIntel64Gcc46DPOpt/bin/ihFoam g++-mp-4.6: error: /Users/Carmi/OpenFOAM/Carmi-2.3.0/platforms/darwinIntel64Gcc46DPOpt/lib/libIHwaveGeneration.so: No such file or directory g++-mp-4.6: error: /Users/Carmi/OpenFOAM/Carmi-2.3.0/platforms/darwinIntel64Gcc46DPOpt/lib/libIHwaveAbsorption.so: No such file or directory make: ** [/Users/Carmi/OpenFOAM/Carmi-2.3.0/platforms/darwinIntel64Gcc46DPOpt/bin/ihFoam] Error 1 ihFoam compilation failed dhcp-96-243:ihFoamOF230 Carmi$

LOF

Is the version with 2.3.0 completely not working?

I have tried to install other versions of OpenFOAM but I am unsuccessful and I don’t know why.

Thanks for your help

remi

On Aug 7, 2014, at 11:45 PM, Pablo Higuera notifications@github.com wrote:

Hi Remi,

thanks for the feedback.

The secon issue is because you are trying to compile FOAM-extend version while using 2.3.0. You should compile the correct version: ihFoamOF230

However, please note that I do not rely in version 2.3.0. Read section 1.2 from the IHFOAM wiki to find out more details:

http://openfoamwiki.net/index.php/Contrib/IHFOAM

Best,

Pablo

— Reply to this email directly or view it on GitHub.

phicau commented 10 years ago

Hi Remi,

the solver does not find the compiled libraries for wave generation and absorption. Try to compile them again and see if it works:

cd genAbs ./allMake

They should now be in: /Users/Carmi/OpenFOAM/Carmi-2.3.0/platforms/darwinIntel64Gcc46DPOpt/lib/

This path should be the same as the next one, write on the terminal: echo $FOAM_USER_LIBBIN

If you still have problems try to locate libIHwaveGeneration.so and libIHwaveAbsorption.so in your system.

Best,

Pablo

remingtonCarmi commented 10 years ago

Hi pablo,

Thanks for your help again.

I find the files in the correct directory but the extension I have is .dylib

What should I do? change the extension in the makefile (where?)? change manually the extension of these file?

Best Remi On Aug 11, 2014, at 11:28 PM, Pablo Higuera notifications@github.com wrote:

Hi Remi,

the solver does not find the compiled libraries for wave generation and absorption. Try to compile them again and see if it works:

cd genAbs ./allMake

They should now be in: /Users/Carmi/OpenFOAM/Carmi-2.3.0/platforms/darwinIntel64Gcc46DPOpt/lib/

This path should be the same as the next one, write on the terminal: echo $FOAM_USER_LIBBIN

If you still have problems try to locate libIHwaveGeneration.so and libIHwaveAbsorption.so in your system.

Best,

Pablo

— Reply to this email directly or view it on GitHub.

phicau commented 10 years ago

Hi Remi,

I think this solution will be the final one! Change your ihFoamOF230/Make/options file to:

EXE_INC = -ggdb3 \ -I$(LIB_SRC)/transportModels/twoPhaseMixture/lnInclude \ -I$(LIB_SRC)/transportModels \ -I$(LIB_SRC)/transportModels/incompressible/lnInclude \ -I$(LIB_SRC)/transportModels/interfaceProperties/lnInclude \ -I$(LIB_SRC)/turbulenceModels/incompressible/turbulenceModel \ -I$(LIB_SRC)/finiteVolume/lnInclude \ -I$(LIB_SRC)/meshTools/lnInclude \ -I$(LIB_SRC)/fvOptions/lnInclude \ -I$(LIB_SRC)/sampling/lnInclude

EXE_LIBS = \ -ltwoPhaseMixture \ -linterfaceProperties \ -ltwoPhaseProperties \ -lincompressibleTransportModels \ -lincompressibleTurbulenceModel \ -lincompressibleRASModels \ -lincompressibleLESModels \ -lfiniteVolume \ -lmeshTools \ -lfvOptions \ -lsampling \ -L$(FOAM_USER_LIBBIN) \ -lIHwaveGeneration \ -lIHwaveAbsorption

Then the solver should compile.

Best,

Pablo

remingtonCarmi commented 10 years ago

Hi Pabo,

It changed a little bit. Here is the new output : dhcp-96-243:ihFoamOF230 Carmi$ ./allMake Making dependency list for source file ihFoam.C SOURCE=ihFoam.C ; g++-mp-4.6 -m64 -fsignaling-nans -ftrapping-math -DdarwinIntel64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O2 -DNoRepository -ftemplate-depth-100 -ggdb3 -I/Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/src/transportModels/twoPhaseMixture/lnInclude -I/Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/src/transportModels -I/Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/src/transportModels/incompressible/lnInclude -I/Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/src/transportModels/interfaceProperties/lnInclude -I/Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/src/turbulenceModels/incompressible/turbulenceModel -I/Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/src/finiteVolume/lnInclude -I/Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/src/meshTools/lnInclude -I/Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/src/fvOptions/lnInclude -I/Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/src/sampling/lnInclude -IlnInclude -I. -I/Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/src/OpenFOAM/lnInclude -I/Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/src/OSspecific/POSIX/lnInclude -fPIC -Ddarwin -c $SOURCE -o Make/darwinIntel64Gcc46DPOpt/ihFoam.o /Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/src/finiteVolume/lnInclude/readTimeControls.H: In function 'int main(int, char**)': /Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/src/finiteVolume/lnInclude/readTimeControls.H:38:8: warning: unused variable 'maxDeltaT' [-Wunused-variable] g++-mp-4.6 -m64 -fsignaling-nans -ftrapping-math -DdarwinIntel64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O2 -DNoRepository -ftemplate-depth-100 -ggdb3 -I/Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/src/transportModels/twoPhaseMixture/lnInclude -I/Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/src/transportModels -I/Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/src/transportModels/incompressible/lnInclude -I/Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/src/transportModels/interfaceProperties/lnInclude -I/Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/src/turbulenceModels/incompressible/turbulenceModel -I/Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/src/finiteVolume/lnInclude -I/Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/src/meshTools/lnInclude -I/Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/src/fvOptions/lnInclude -I/Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/src/sampling/lnInclude -IlnInclude -I. -I/Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/src/OpenFOAM/lnInclude -I/Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/src/OSspecific/POSIX/lnInclude -fPIC -Ddarwin -lpthread -L/Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/platforms/darwinIntel64Gcc46DPOpt/lib/openmpi-system -lPstream Make/darwinIntel64Gcc46DPOpt/ihFoam.o -L/Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/platforms/darwinIntel64Gcc46DPOpt/lib \ -ltwoPhaseMixture -linterfaceProperties -ltwoPhaseProperties -lincompressibleTransportModels -lincompressibleTurbulenceModel -lincompressibleRASModels -lincompressibleLESModels -lfiniteVolume -lmeshTools -lfvOptions -lsampling -L/Users/Carmi/OpenFOAM/Carmi-2.3.0/platforms/darwinIntel64Gcc46DPOpt/lib -lIHwaveGeneration -lIHwaveAbsorption -lOpenFOAM -ldl -lpthread -lm -o /Users/Carmi/OpenFOAM/Carmi-2.3.0/platforms/darwinIntel64Gcc46DPOpt/bin/ihFoam

ihFoam compiled successfully for OpenFOAM 2.3.0 Note that this solver is really the regular interFoam. Please read the README file for more details.

Making dependency list for source file ihDyMFoam.C SOURCE=ihDyMFoam.C ; g++-mp-4.6 -m64 -fsignaling-nans -ftrapping-math -DdarwinIntel64 -DWMDP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O2 -DNoRepository -ftemplate-depth-100 -I.. -I/Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/src/transportModels/twoPhaseMixture/lnInclude -I/Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/src/transportModels -I/Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/src/transportModels/incompressible/lnInclude -I/Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/src/transportModels/interfaceProperties/lnInclude -I/Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/src/turbulenceModels/incompressible/turbulenceModel -I/Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/src/finiteVolume/lnInclude -I/Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/src/dynamicMesh/lnInclude -I/Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/src/dynamicFvMesh/lnInclude -I/Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/src/meshTools/lnInclude -I/Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/src/fvOptions/lnInclude -I/Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/src/sampling/lnInclude -IlnInclude -I. -I/Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/src/OpenFOAM/lnInclude -I/Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/src/OSspecific/POSIX/lnInclude -fPIC -Ddarwin -c $SOURCE -o Make/darwinIntel64Gcc46DPOpt/ihDyMFoam.o /Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/src/finiteVolume/lnInclude/readTimeControls.H: In function 'int main(int, char*)': /Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/src/finiteVolume/lnInclude/readTimeControls.H:38:8: warning: unused variable 'maxDeltaT' [-Wunused-variable] g++-mp-4.6 -m64 -fsignaling-nans -ftrapping-math -DdarwinIntel64 -DWMDP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O2 -DNoRepository -ftemplate-depth-100 -I.. -I/Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/src/transportModels/twoPhaseMixture/lnInclude -I/Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/src/transportModels -I/Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/src/transportModels/incompressible/lnInclude -I/Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/src/transportModels/interfaceProperties/lnInclude -I/Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/src/turbulenceModels/incompressible/turbulenceModel -I/Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/src/finiteVolume/lnInclude -I/Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/src/dynamicMesh/lnInclude -I/Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/src/dynamicFvMesh/lnInclude -I/Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/src/meshTools/lnInclude -I/Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/src/fvOptions/lnInclude -I/Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/src/sampling/lnInclude -IlnInclude -I. -I/Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/src/OpenFOAM/lnInclude -I/Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/src/OSspecific/POSIX/lnInclude -fPIC -Ddarwin -lpthread -L/Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/platforms/darwinIntel64Gcc46DPOpt/lib/openmpi-system -lPstream Make/darwinIntel64Gcc46DPOpt/ihDyMFoam.o -L/Users/Carmi/OpenFOAM/OpenFOAM-2.3.0/platforms/darwinIntel64Gcc46DPOpt/lib \ -ltwoPhaseMixture -linterfaceProperties -ltwoPhaseProperties -lincompressibleTransportModels -lincompressibleTurbulenceModel -lincompressibleRASModels -lincompressibleLESModels -lfiniteVolume -ldynamicMesh -ldynamicFvMesh -ltopoChangerFvMesh -lmeshTools -lfvOptions -lsampling /Users/Carmi/OpenFOAM/Carmi-2.3.0/platforms/darwinIntel64Gcc46DPOpt/lib/libIHwaveGeneration.so /Users/Carmi/OpenFOAM/Carmi-2.3.0/platforms/darwinIntel64Gcc46DPOpt/lib/libIHwaveAbsorption.so -lOpenFOAM -ldl -lpthread -lm -o /Users/Carmi/OpenFOAM/Carmi-2.3.0/platforms/darwinIntel64Gcc46DPOpt/bin/ihDyMFoam g++-mp-4.6: error: /Users/Carmi/OpenFOAM/Carmi-2.3.0/platforms/darwinIntel64Gcc46DPOpt/lib/libIHwaveGeneration.so: No such file or directory g++-mp-4.6: error: /Users/Carmi/OpenFOAM/Carmi-2.3.0/platforms/darwinIntel64Gcc46DPOpt/lib/libIHwaveAbsorption.so: No such file or directory make: ** [/Users/Carmi/OpenFOAM/Carmi-2.3.0/platforms/darwinIntel64Gcc46DPOpt/bin/ihDyMFoam] Error 1 ihDyMFoam compilation failed

It says that ihfoam compiled successfully but not ihDyMFoam.

Can you send me a test script (with the commands) to test it on my computer and see if IHFOAM run?

Thank you a lot

Remi

On Aug 12, 2014, at 12:39 PM, Pablo Higuera notifications@github.com wrote:

EXE_INC = -ggdb3 \ -I$(LIB_SRC)/transportModels/twoPhaseMixture/lnInclude \ -I$(LIB_SRC)/transportModels \ -I$(LIB_SRC)/transportModels/incompressible/lnInclude \ -I$(LIB_SRC)/transportModels/interfaceProperties/lnInclude \ -I$(LIB_SRC)/turbulenceModels/incompressible/turbulenceModel \ -I$(LIB_SRC)/finiteVolume/lnInclude \ -I$(LIB_SRC)/meshTools/lnInclude \ -I$(LIB_SRC)/fvOptions/lnInclude \ -I$(LIB_SRC)/sampling/lnInclude

EXE_LIBS = \ -ltwoPhaseMixture \ -linterfaceProperties \ -ltwoPhaseProperties \ -lincompressibleTransportModels \ -lincompressibleTurbulenceModel \ -lincompressibleRASModels \ -lincompressibleLESModels \ -lfiniteVolume \ -lmeshTools \ -lfvOptions \ -lsampling \ -L$(FOAM_USER_LIBBIN) \ -lIHwaveGeneration \ -lIHwaveAbsorption

phicau commented 10 years ago

Hi Remi,

the options file for ihDyMFoam needs the same changes. Thanks to your feedback I have already updated all the option files for full compatibility with Mac.

You can now update the code following the instructions in the wiki site, or just change the last 2 lines of the options file by the last 3 I provided in the previous post.

Unfortunately we are not providing reference materials for OpenFOAM version 2.3.0 due to problems with pressure calculation. Nevertheless, I suggest you to modify the tutorials provided for version 2.2.2.

Best,

Pablo

remingtonCarmi commented 10 years ago

Hi Pablo,

Is OF222 working with IHFOAM? I was able to make it compile on my Mac.

I tried to execute the tutorial baseWaveFlumes with the following commands :

blockMesh interFoam

and I receive this error :

dhcp-96-243:baseWaveFlume Carmi$ interFoam /---------------------------------------------------------------------------\ | ========= | | | \ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \ / O peration | Version: 2.2.2 | | \ / A nd | Web: www.OpenFOAM.org | | \/ M anipulation | | ---------------------------------------------------------------------------/ Build : 2.2.2-9739c53ec43f Exec : interFoam Date : Aug 13 2014 Time : 12:06:46 Host : "dhcp-96-243.caltech.edu" PID : 26405 Case : /Volumes/OpenFOAM-v2.2.2/IHFOAM/Run/baseWaveFlume nProcs : 1 sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE). fileModificationChecking : Monitoring run-time modified files using timeStampMaster allowSystemOperations : Disallowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // Create time

Create mesh for time = 0

PIMPLE: Operating solver in PISO mode

Reading field p_rgh

Reading field U

--> FOAM FATAL IO ERROR: Unknown patchField type IH_Waves_InletVelocity for patch type patch

Valid patchField types are :

68 ( SRFFreestreamVelocity SRFVelocity activeBaffleVelocity activePressureForceBaffleVelocity advective atmBoundaryLayerInletVelocity calculated codedFixedValue codedMixed cyclic cyclicAMI cyclicSlip cylindricalInletVelocity directionMixed empty externalCoupled fixedGradient fixedInternalValue fixedJump fixedJumpAMI fixedMean fixedNormalSlip fixedValue flowRateInletVelocity fluxCorrectedVelocity freestream inletOutlet kqRWallFunction mapped mappedField mappedFixedInternalValue mappedFixedPushedInternalValue mappedFlowRate mappedVelocityFlux mixed movingWallVelocity nonuniformTransformCyclic oscillatingFixedValue outletInlet outletMappedUniformInlet partialSlip pressureDirectedInletOutletVelocity pressureDirectedInletVelocity pressureInletOutletParSlipVelocity pressureInletOutletVelocity pressureInletUniformVelocity pressureInletVelocity pressureNormalInletOutletVelocity processor processorCyclic rotatingPressureInletOutletVelocity rotatingWallVelocity sliced slip supersonicFreestream surfaceNormalFixedValue swirlFlowRateInletVelocity symmetryPlane timeVaryingMappedFixedValue translatingWallVelocity turbulentInlet uniformFixedValue uniformJump uniformJumpAMI variableHeightFlowRateInletVelocity waveTransmissive wedge zeroGradient )

file: /Volumes/OpenFOAM-v2.2.2/IHFOAM/Run/baseWaveFlume/0/U.boundaryField.inlet from line 26 to line 28.

From function fvPatchField<Type>::New(const fvPatch&, const DimensionedField<Type, volMesh>&, const dictionary&)
in file /Users/Carmi/OpenFOAM/OpenFOAM-2.2.2/src/finiteVolume/lnInclude/fvPatchFieldNew.C at line 136.

FOAM exiting

Seems like IH_Waves_InletVelocity was not correctly compiled. I looked back when I compiled genAbs ./allMake, I had these warnings :

dhcp-96-243:IHFOAM Carmi$ cd genAbs/ dhcp-96-243:genAbs Carmi$ ./allMake wmakeLnInclude: linking include files to ./lnInclude Making dependency list for source file IH_Waves_InletAlpha/IH_Waves_InletAlphaFvPatchScalarField.C Making dependency list for source file IH_Waves_InletVelocity/IH_Waves_InletVelocityFvPatchVectorField.C SOURCE=IH_Waves_InletAlpha/IH_Waves_InletAlphaFvPatchScalarField.C ; g++-mp-4.6 -m64 -fsignaling-nans -ftrapping-math -DdarwinIntel64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O2 -DNoRepository -ftemplate-depth-100 -DOFVERSION=222 -I/Users/Carmi/OpenFOAM/OpenFOAM-2.2.2/src/finiteVolume/lnInclude -I./IH_Waves_InletVelocity/velProfiles -I../common -I../common/checks -I../common/calculateWaterLevel -IlnInclude -I. -I/Users/Carmi/OpenFOAM/OpenFOAM-2.2.2/src/OpenFOAM/lnInclude -I/Users/Carmi/OpenFOAM/OpenFOAM-2.2.2/src/OSspecific/POSIX/lnInclude -fPIC -Ddarwin -c $SOURCE -o Make/darwinIntel64Gcc46DPOpt/IH_Waves_InletAlphaFvPatchScalarField.o SOURCE=IH_Waves_InletVelocity/IH_Waves_InletVelocityFvPatchVectorField.C ; g++-mp-4.6 -m64 -fsignaling-nans -ftrapping-math -DdarwinIntel64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O2 -DNoRepository -ftemplate-depth-100 -DOFVERSION=222 -I/Users/Carmi/OpenFOAM/OpenFOAM-2.2.2/src/finiteVolume/lnInclude -I./IH_Waves_InletVelocity/velProfiles -I../common -I../common/checks -I../common/calculateWaterLevel -IlnInclude -I. -I/Users/Carmi/OpenFOAM/OpenFOAM-2.2.2/src/OpenFOAM/lnInclude -I/Users/Carmi/OpenFOAM/OpenFOAM-2.2.2/src/OSspecific/POSIX/lnInclude -fPIC -Ddarwin -c $SOURCE -o Make/darwinIntel64Gcc46DPOpt/IH_Waves_InletVelocityFvPatchVectorField.o SOURCE=../common/waveFun.C ; g++-mp-4.6 -m64 -fsignaling-nans -ftrapping-math -DdarwinIntel64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O2 -DNoRepository -ftemplate-depth-100 -DOFVERSION=222 -I/Users/Carmi/OpenFOAM/OpenFOAM-2.2.2/src/finiteVolume/lnInclude -I./IH_WavesInletVelocity/velProfiles -I../common -I../common/checks -I../common/calculateWaterLevel -IlnInclude -I. -I/Users/Carmi/OpenFOAM/OpenFOAM-2.2.2/src/OpenFOAM/lnInclude -I/Users/Carmi/OpenFOAM/OpenFOAM-2.2.2/src/OSspecific/POSIX/lnInclude -fPIC -Ddarwin -c $SOURCE -o Make/darwinIntel64Gcc46DPOpt/waveFun.o ../common/waveFun.C: In function 'void Elliptic::ellipticIntegralsKE(double, double, double)': ../common/waveFun.C:300:34: warning: use of old-style cast [-Wold-style-cast] ../common/waveFun.C:301:40: warning: use of old-style cast [-Wold-style-cast] ../common/waveFun.C: In function 'double Elliptic::JacobiAmp(double, double)': ../common/waveFun.C:349:25: warning: use of old-style cast [-Wold-style-cast] ../common/waveFun.C: In function 'int cnoidalFun::calculations(double, double, double, double, double_)': ../common/waveFun.C:602:16: warning: unused variable 'KElliptic' [-Wunused-variable] ../common/waveFun.C:603:16: warning: unused variable 'EElliptic' [-Wunused-variable] IH_Waves_InletAlpha/IH_Waves_InletAlphaFvPatchScalarField.C: In member function 'virtual void Foam::IH_Waves_InletAlphaFvPatchScalarField::updateCoeffs()': IH_Waves_InletAlpha/IH_Waves_InletAlphaFvPatchScalarField.C:315:12: warning: variable 'auxiliarTotal' set but not used [-Wunused-but-set-variable] IH_Waves_InletAlpha/IH_Waves_InletAlphaFvPatchScalarField.C:316:12: warning: unused variable 'auxiliarSolit' [-Wunused-variable] IH_Waves_InletAlpha/IH_Waves_InletAlphaFvPatchScalarField.C:319:12: warning: unused variable 'Csolitary' [-Wunused-variable] IH_Waves_InletAlpha/IH_Waves_InletAlphaFvPatchScalarField.C:320:12: warning: unused variable 'ts' [-Wunused-variable] IH_Waves_InletAlpha/IH_Waves_InletAlphaFvPatchScalarField.C:321:12: warning: unused variable 'Xa' [-Wunused-variable] IH_Waves_InletAlpha/IH_Waves_InletAlphaFvPatchScalarField.C:361:18: warning: unused variable 'g' [-Wunused-variable] IH_Waves_InletVelocity/IH_Waves_InletVelocityFvPatchVectorField.C: In member function 'virtual void Foam::IH_Waves_InletVelocityFvPatchVectorField::updateCoeffs()': IH_Waves_InletVelocity/IH_Waves_InletVelocityFvPatchVectorField.C:604:16: warning: variable 'cellV' set but not used [-Wunused-but-set-variable] IH_Waves_InletVelocity/IH_Waves_InletVelocityFvPatchVectorField.C:320:12: warning: unused variable 'auxiliarSolit' [-Wunused-variable] IH_Waves_InletVelocity/IH_Waves_InletVelocityFvPatchVectorField.C:324:12: warning: unused variable 'Csolitary' [-Wunused-variable] IH_Waves_InletVelocity/IH_Waves_InletVelocityFvPatchVectorField.C:325:12: warning: unused variable 'etaSolit' [-Wunused-variable] IH_Waves_InletVelocity/IH_Waves_InletVelocityFvPatchVectorField.C:326:12: warning: unused variable 'ts' [-Wunused-variable] IH_Waves_InletVelocity/IH_Waves_InletVelocityFvPatchVectorField.C:327:12: warning: unused variable 'Xa' [-Wunused-variable] IH_Waves_InletVelocity/IH_Waves_InletVelocityFvPatchVectorField.C:539:10: warning: variable 'absDireccional' set but not used [-Wunused-but-set-variable] IH_Waves_InletAlpha/IH_Waves_InletAlphaFvPatchScalarField.C:379:12: warning: 'waveKy' may be used uninitialized in this function [-Wuninitialized] IH_Waves_InletAlpha/IH_Waves_InletAlphaFvPatchScalarField.C:377:12: warning: 'waveKx' may be used uninitialized in this function [-Wuninitialized] ../common/calculateWaterLevel/calculatedLevelSolitary.H:15:17: warning: 'waveAngle' may be used uninitialized in this function [-Wuninitialized] IH_Waves_InletAlpha/IH_Waves_InletAlphaFvPatchScalarField.C:375:12: note: 'waveAngle' was declared here IH_Waves_InletAlpha/IH_Waves_InletAlphaFvPatchScalarField.C:371:12: warning: 'waveOmega' may be used uninitialized in this function [-Wuninitialized] IH_Waves_InletVelocity/IH_Waves_InletVelocityFvPatchVectorField.C:395:12: warning: 'waveKy' may be used uninitialized in this function [-Wuninitialized] IH_Waves_InletVelocity/IH_Waves_InletVelocityFvPatchVectorField.C:393:12: warning: 'waveKx' may be used uninitialized in this function [-Wuninitialized] IH_Waves_InletVelocity/IH_Waves_InletVelocityFvPatchVectorField.C:391:12: warning: 'waveAngle' may be used uninitialized in this function [-Wuninitialized] IH_Waves_InletVelocity/IH_Waves_InletVelocityFvPatchVectorField.C:387:12: warning: 'waveOmega' may be used uninitialized in this function [-Wuninitialized] '/Users/Carmi/OpenFOAM/Carmi-2.2.2/platforms/darwinIntel64Gcc46DPOpt/lib/libIHwaveGeneration.dylib' is up to date.

Wave generation boundary conditions compiled successfully for OpenFOAM 222

wmakeLnInclude: linking include files to ./lnInclude Making dependency list for source file IH_3D_2DAbsorption_InletVelocity/IH_3D_2DAbsorption_InletVelocityFvPatchVectorField.C Making dependency list for source file IH_3D_3DAbsorption_InletVelocity/IH_3D_3DAbsorption_InletVelocityFvPatchVectorField.C SOURCE=IH_3D_3DAbsorption_InletVelocity/IH_3D_3DAbsorption_InletVelocityFvPatchVectorField.C ; g++-mp-4.6 -m64 -fsignaling-nans -ftrapping-math -DdarwinIntel64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O2 -DNoRepository -ftemplate-depth-100 -DOFVERSION=222 -I/Users/Carmi/OpenFOAM/OpenFOAM-2.2.2/src/finiteVolume/lnInclude -I../common -IlnInclude -I. -I/Users/Carmi/OpenFOAM/OpenFOAM-2.2.2/src/OpenFOAM/lnInclude -I/Users/Carmi/OpenFOAM/OpenFOAM-2.2.2/src/OSspecific/POSIX/lnInclude -fPIC -Ddarwin -c $SOURCE -o Make/darwinIntel64Gcc46DPOpt/IH_3D_3DAbsorption_InletVelocityFvPatchVectorField.o SOURCE=IH_3D_2DAbsorption_InletVelocity/IH_3D_2DAbsorption_InletVelocityFvPatchVectorField.C ; g++-mp-4.6 -m64 -fsignaling-nans -ftrapping-math -DdarwinIntel64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O2 -DNoRepository -ftemplate-depth-100 -DOFVERSION=222 -I/Users/Carmi/OpenFOAM/OpenFOAM-2.2.2/src/finiteVolume/lnInclude -I../common -IlnInclude -I. -I/Users/Carmi/OpenFOAM/OpenFOAM-2.2.2/src/OpenFOAM/lnInclude -I/Users/Carmi/OpenFOAM/OpenFOAM-2.2.2/src/OSspecific/POSIX/lnInclude -fPIC -Ddarwin -c $SOURCE -o Make/darwinIntel64Gcc46DPOpt/IH_3D_2DAbsorption_InletVelocityFvPatchVectorField.o '/Users/Carmi/OpenFOAM/Carmi-2.2.2/platforms/darwinIntel64Gcc46DPOpt/lib/libIHwaveAbsorption.dylib' is up to date.

Wave absorption boundary conditions compiled successfully for OpenFOAM 222

Can you help me make it work?

Thanks

Remi

On Aug 13, 2014, at 12:21 AM, Pablo Higuera notifications@github.com wrote:

Hi Remi,

the options file for ihDyMFoam needs the same changes. Thanks to your feedback I have already updated all the option files for full compatibility with Mac.

You can now update the code following the instructions in the wiki site, or just change the last 2 lines of the options file by the last 3 I provided in the previous post.

Unfortunately we are not providing reference materials for OpenFOAM version 2.3.0 due to problems with pressure calculation. Nevertheless, I suggest you to modify the tutorials provided for version 2.2.2.

Best,

Pablo

— Reply to this email directly or view it on GitHub.

phicau commented 10 years ago

Hi Remi,

beware you are running interFoam, not ihFoam...

ihFoam is working 100% for version 2.2.2, so after compilation (first the BCs and then the solver) be sure that the tutorials will run. You have a convenient automatic run script for each case.

Best,

Pablo

remingtonCarmi commented 10 years ago

Hi Pablo

Thanks a lot!

It is working now!

I am able to compute the baseWaveFlume and CR35 example (and play with it).

Unfortunately the two other ones, I am encountering some issues.

For irreg45 I have the following error :

--> FOAM FATAL ERROR: You are trying to use scotch but do not have the scotchDecomp library loaded. This message is from the dummy scotchDecomp stub library instead.

Please install scotch and make sure that libscotch.so is in your LD_LIBRARY_PATH. The scotchDecomp library can then be built in $FOAM_SRC/parallel/decompose/decompositionMethods/scotchDecomp

but that is an issue I have with OF. I am trying to recompile. I had the error : could not open file Probably a ulimit too low.

Thanks

Remi

On Aug 13, 2014, at 1:43 PM, Pablo Higuera notifications@github.com wrote:

Hi Remi,

beware you are running interFoam, not ihFoam...

ihFoam is working 100% for version 2.2.2, so after compilation (first the BCs and then the solver) be sure that the tutorials will run. You have a convenient automatic run script for each case.

Best,

Pablo

— Reply to this email directly or view it on GitHub.

remingtonCarmi commented 10 years ago

Hi Pablo,

I am playing a little with IHFOAM but I encounter an error now.

I am just trying to modify the geometry of the base wave fume by changing the slope.

First I did a constant slope and everything worked just fine (simple I change the extremes right nodes of the tutorial).

Now I am trying to add a slope starting from the position 8.0 and going up to 1.0 m. So I have two hexagone.

The blockMesh seems to compile correctly and the initial data looks fine, but the code does not run.

Is there something I am missing?

This is my output

dhcp-96-243:baseWaveFlume3 Carmi$ ./runCase blockMesh meshing... Preparing 0 folder... Setting the fields... Running... ./runCase: line 16: 19453 Floating point exception: 8 ihFoam > ihFoam.log Simulation complete.

Thanks

Remi

remingtonCarmi commented 10 years ago

Hi Pablo,

Just to add, I have seen the irregular45degreetank example. I want to be able to use several hex in the future to add structures (walls) in my setup. It looks like I have an error due to the fact I have several hex with ihfoam.

I looked at DamBreak tutorial of OF222 as an example of how to use multiple hex.

Am I forgetting something?

Thanks

Best

Remi

On Aug 19, 2014, at 6:17 PM, Rémi CARMIGNIANI rcarmi@me.com wrote:

Hi Pablo,

I am playing a little with IHFOAM but I encounter an error now.

I am just trying to modify the geometry of the base wave fume by changing the slope.

First I did a constant slope and everything worked just fine (simple I change the extremes right nodes of the tutorial).

Now I am trying to add a slope starting from the position 8.0 and going up to 1.0 m. So I have two hexagone.

The blockMesh seems to compile correctly and the initial data looks fine, but the code does not run.

Is there something I am missing?

This is my output

dhcp-96-243:baseWaveFlume3 Carmi$ ./runCase blockMesh meshing... Preparing 0 folder... Setting the fields... Running... ./runCase: line 16: 19453 Floating point exception: 8 ihFoam > ihFoam.log Simulation complete.

Thanks Remi
AhmedUA commented 7 years ago

Dear All, i am newbie in openfoam,despite many trials i am not able to figure out the problem. I am having this same trouble but with olaFoam, as reported by remi below. Please help me out with this, i just altered the basewaveflume blockMesh by moving its 2 right points closer to origin so that it makes a slope.and i am getting floating point exception and simulation gets completed. Please help me out anyone, i am freaking out

""Hi Pablo,

I am playing a little with IHFOAM but I encounter an error now.

I am just trying to modify the geometry of the base wave fume by changing the slope.

First I did a constant slope and everything worked just fine (simple I change the extremes right nodes of the tutorial).

Now I am trying to add a slope starting from the position 8.0 and going up to 1.0 m. So I have two hexagone.

The blockMesh seems to compile correctly and the initial data looks fine, but the code does not run.

Is there something I am missing?

This is my output

dhcp-96-243:baseWaveFlume3 Carmi$ ./runCase blockMesh meshing... Preparing 0 folder... Setting the fields... Running... ./runCase: line 16: 19453 Floating point exception: 8 ihFoam > ihFoam.log Simulation complete.

Thanks

Remi""

phicau commented 7 years ago

Hi Ahmed,

this is a bug report system, not a support forum. cfd-online is the support forum that you are looking for to post your question.

As for your question, it is certainly an issue with the mesh, try checkMesh and see other examples online on how to create slopes properly.

Best,

Pablo

AhmedUA commented 7 years ago

@phicau, Thankyou for your prompt reply, my apologies for asking it here in the first place it was mere confusion which made me type in query here. I tried checkMesh but it shows no errors though. I guess i will post all the detail of my issue in the forum then a/c to the posting criteria. Thankyou btw.

BR Ahmed

phicau commented 7 years ago

Looking forward to answering your question at cfd-online once you provide more info.