CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Community Contributions

[waves2Foam] waveDyMFoam compile warnings with relaxing.correct()

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 24, 2014, 22:29
Default waveDyMFoam compile warnings with relaxing.correct()
  #1
Member
 
ALLEN
Join Date: Aug 2014
Posts: 32
Rep Power: 12
allenfieldin is on a distinguished road
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 is offline   Reply With Quote

Old   November 25, 2014, 04:03
Default waveDyMFoam compile warnings with relaxing.correct()
  #2
Member
 
ALLEN
Join Date: Aug 2014
Posts: 32
Rep Power: 12
allenfieldin is on a distinguished road
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
allenfieldin is offline   Reply With Quote

Old   November 25, 2014, 12:10
Default
  #3
Member
 
Hao Chen
Join Date: Aug 2014
Posts: 66
Rep Power: 0
hchen is on a distinguished road
Hi Allen:

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

Best regards
Hao
hchen is offline   Reply With Quote

Reply


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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[waves2Foam] How to compile waveDyMFoam in openfoam 3.0.1 Yage OpenFOAM Community Contributions 0 January 8, 2017 09:41
[waves2Foam] Compile waveDyMFOAM Aarash OpenFOAM Community Contributions 1 October 3, 2015 13:09
trying to compile waveDyMFoam zaid OpenFOAM Programming & Development 0 July 7, 2014 12:34
Custom BC compile warnings & Runtime Errors Hisham OpenFOAM Programming & Development 5 November 2, 2011 03:48
Can someone PLEASE document the development version installation bernd OpenFOAM Installation 76 November 14, 2008 22:51


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