CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Community Contributions (https://www.cfd-online.com/Forums/openfoam-community-contributions/)
-   -   [waves2Foam] waveDyMFoam compile warnings with relaxing.correct() (https://www.cfd-online.com/Forums/openfoam-community-contributions/208043-wavedymfoam-compile-warnings-relaxing-correct.html)

allenfieldin November 24, 2014 21:29

waveDyMFoam compile warnings with relaxing.correct()
 
Hi, Niels,
sorry to bother you.
I am trying to using waveFoam together with dynamic mesh to study FSI problem, the steps are listed in Wiki as you did.
my foam version is extend-3.0, waveFoam is okay with it and I have run several cases with it, but when I try to compile waveDyMFoam in /waveFoam folder, it gives me the following error:

Quote:

allen@allen-HIT:~/foam/allen-3.0/applications/utilities/waves2Foam$ cd -
/home/allen/foam/allen-3.0/applications/utilities/waves2Foam/applications/solvers/solvers300/waveFoam
allen@allen-HIT:~/foam/allen-3.0/applications/utilities/waves2Foam/applications/solvers/solvers300/waveFoam$ wmake
/home/allen/foam/foam-extend-3.0/wmake/scripts/mkObjectDir: 37: [: -a: unexpected operator
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-200 -I/home/allen/foam/foam-extend-3.0/src/transportModels -I/home/allen/foam/foam-extend-3.0/src/transportModels/incompressible/lnInclude -I/home/allen/foam/foam-extend-3.0/src/transportModels/interfaceProperties/lnInclude -I/home/allen/foam/foam-extend-3.0/src/turbulenceModels/incompressible/turbulenceModel -I/home/allen/foam/foam-extend-3.0/src/finiteVolume/lnInclude -DOFVERSION=300 -DEXTBRANCH=1 -I/waves2Foam/lnInclude -I/waves2FoamSampling/lnInclude -I -IlnInclude -I. -I/home/allen/foam/foam-extend-3.0/src/foam/lnInclude -I/home/allen/foam/foam-extend-3.0/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPOpt/waveFoam.o -L/home/allen/foam/foam-extend-3.0/lib/linux64GccDPOpt \
-linterfaceProperties -lincompressibleTransportModels -lincompressibleTurbulenceModel -lincompressibleRASModels -lincompressibleLESModels -lfiniteVolume -llduSolvers -L -lwaves2Foam -lwaves2FoamSampling -L -lgsl -lgslcblas -lfoam -liberty -ldl -lrt -lm -o /waveFoam
/usr/bin/ld: cannot open output file /waveFoam: Permission denied
collect2: ld returned 1 exit status
make: *** [/waveFoam] Error 1

my waveDyMFoam/Make/option file looks like this:
Quote:

EXE_INC = \
-I../interFoam \
-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)/dynamicMesh/dynamicMesh/lnInclude \
-I$(LIB_SRC)/meshTools/lnInclude \
-I$(LIB_SRC)/dynamicMesh/dynamicFvMesh/lnInclude \
-I./../../../../../src/waves2Foam/lnInclude

EXE_LIBS = \
-linterfaceProperties \
-lincompressibleTransportModels \
-lincompressibleTurbulenceModel \
-lincompressibleRASModels \
-lincompressibleLESModels \
-lfiniteVolume \
-ldynamicMesh \
-lmeshTools \
-ldynamicFvMesh \
-ltopoChangerFvMesh \
-llduSolvers \
-L$(MESQUITE_LIB_DIR) -lmesquite \
-L$(FOAM_USER_LIBBIN) \
-lwaves2Foam
can you give me any hint on this?
I guess something goes wrong with my option file.

Thanks in advance:)
/Allen

allenfieldin November 25, 2014 03:03

waveDyMFoam compile warnings with relaxing.correct()
 
Hi , guys,
I have compiled dynamic method with waves2Foam in foam-extend-3.0, according to the steps in this link on wiki:http://openfoamwiki.net/index.php/Contrib/waves2Foam, a relaxing.corrcet() was added just after "#include "alphaEqnSubCycle.H" in waveDyMFoam.C.
I didi the exact thing, but it gives the following warning (not error !) :
Quote:

/home/allen/foam/foam-extend-3.0/src/finiteVolume/lnInclude/readPIMPLEControls.H: In function ‘int main(int, char**)’:
/home/allen/foam/foam-extend-3.0/src/finiteVolume/lnInclude/readPIMPLEControls.H:12:10: warning: unused variable ‘transonic’ [-Wunused-variable]
/home/allen/foam/foam-extend-3.0/src/finiteVolume/lnInclude/readPIMPLEControls.H:3:9: warning: unused variable ‘nOuterCorr’ [-Wunused-variable]
/home/allen/foam/foam-extend-3.0/src/finiteVolume/lnInclude/readPIMPLEControls.H:4:9: warning: unused variable ‘nCorr’ [-Wunused-variable]
/home/allen/foam/foam-extend-3.0/src/finiteVolume/lnInclude/readPIMPLEControls.H:9:10: warning: unused variable ‘momentumPredictor’ [-Wunused-variable]
/home/allen/foam/foam-extend-3.0/src/finiteVolume/lnInclude/readPIMPLEControls.H:12:10: warning: unused variable ‘transonic’ [-Wunused-variable]

I can find the solver now:
Quote:

which waveDyMFoam
/home/allen/foam/allen-3.0/applications/bin/linux64GccDPOpt/waveDyMFoam
but I want to know if these warnings cause problem in the following appliance of waveDyMFoam ?

Thanks
/Allen

hchen November 25, 2014 11:10

Hi Allen:

I do not think it will cause any problem. If you compile waveFoam, same warning may also occur.

Best regards
Hao


All times are GMT -4. The time now is 03:40.