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

[waves2Foam] trying to merge interDyMFoam and wave2foam (openfoam 1712+)

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

Like Tree1Likes
  • 1 Post By evxta3

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 17, 2018, 09:06
Default trying to merge interDyMFoam and wave2foam (openfoam 1712+)
  #1
Member
 
Paul Palladium
Join Date: Jan 2016
Posts: 93
Rep Power: 10
Fauster is on a distinguished road
Dear Foamers,

I am trying to merge interDyMFoam and wave2foam without success (openfoam 1712+).

I tried to follow the guideline in the Jacobsen paper but it's not clear for me how to proceed. I did not understand how to use properly the compareFiles.sh

What I did :
  • I copy past interDyMFoam solver next to waveFoam (in the directory waves2Foam/solvers/solvers1712_PLUS/) and rename it waveDyMFoam.
  • I copy past all the headers from waveFoam solver to waveDyMFoam.
  • I renamed interDyMFoam.C to waveDyMFoam.C and add
#include "readGravitationalAcceleration.H"
#include "readWaveProperties.H"
#include "createExternalWaveForcing.H"
#include "correctPhi.H"
after #include "createFvOptions.H"

  • I changed the make/files and make/options files according to the guideline.
If I try to compile the solver I obtain :


Quote:
Making dependency list for source file waveDyMFoam.C
wmkdep: could not open file 'relaxationZone.H' for source file 'waveDyMFoam.C': No such file or directory
wmkdep: could not open file 'externalWaveForcing.H' for source file 'waveDyMFoam.C': No such file or directory
wmkdep: could not open file 'readWaveProperties.H' for source file 'waveDyMFoam.C': No such file or directory
wmkdep: could not open file 'createExternalWaveForcing.H' for source file 'waveDyMFoam.C': No such file or directory
........
waveDyMFoam.C:52:28: fatal error: relaxationZone.H: Aucun fichier ou dossier de ce type
compilation terminated.
So the compiler can't link to the new libraries added in waveDyMFoam.C.


So does it come from the file located in the make directory ?

Quote:

waveDyMFoam.C

EXE = $(FOAM_USER_APPBIN)/waveDyMFoam
Quote:
EXE_INC = \
-I. \
-I.. \
-I../../VoF \
-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/turbulenceModels/lnInclude \
-I$(LIB_SRC)/TurbulenceModels/incompressible/lnInclude \
-I$(LIB_SRC)/transportModels/immiscibleIncompressibleTwoPhaseMixture/lnInclude \
-I$(LIB_SRC)/finiteVolume/lnInclude \
-I$(LIB_SRC)/dynamicMesh/lnInclude \
-I$(LIB_SRC)/dynamicFvMesh/lnInclude \
-I$(LIB_SRC)/meshTools/lnInclude \
-I$(LIB_SRC)/sampling/lnInclude \
-DOFVERSION=1712 \
-DEXTBRANCH=0 \
-DOFPLUSBRANCH=1 \
-DXVERSION=$(WAVES_XVERSION) \
-I$(WAVES_SRC)/waves2Foam/lnInclude \
-I$(WAVES_SRC)/waves2Foam/relaxationZone \
-I$(WAVES_SRC)/waves2FoamSamplingNew/lnInclude \
-I$(WAVES_GSL_INCLUDE)

EXE_LIBS = \
-limmiscibleIncompressibleTwoPhaseMixture \
-lturbulenceModels \
-lincompressibleTurbulenceModels \
-lfiniteVolume \
-ldynamicMesh \
-ldynamicFvMesh \
-ltopoChangerFvMesh \
-lmeshTools \
-lfvOptions \
-lsampling \
-lwaveModels \
-L$(WAVES_LIBBIN) \
-lwaves2Foam \
-lwaves2FoamSampling \
-L$(WAVES_GSL_LIB) \
-lgsl \
-lgslcblas
Fauster is offline   Reply With Quote

Old   April 17, 2018, 09:33
Default
  #2
New Member
 
Maoyanjun
Join Date: Jan 2016
Posts: 20
Rep Power: 10
Maoyanjun is on a distinguished road
Quote:
Originally Posted by Fauster View Post
Dear Foamers,

I am trying to merge interDyMFoam and wave2foam without success (openfoam 1712+).

I tried to follow the guideline in the Jacobsen paper but it's not clear for me how to proceed. I did not understand how to use properly the compareFiles.sh

What I did :
  • I copy past interDyMFoam solver next to waveFoam (in the directory waves2Foam/solvers/solvers1712_PLUS/) and rename it waveDyMFoam.
  • I copy past all the headers from waveFoam solver to waveDyMFoam.
  • I renamed interDyMFoam.C to waveDyMFoam.C and add
#include "readGravitationalAcceleration.H"
#include "readWaveProperties.H"
#include "createExternalWaveForcing.H"
#include "correctPhi.H"
after #include "createFvOptions.H"

  • I changed the make/files and make/options files according to the guideline.
If I try to compile the solver I obtain :



So the compiler can't link to the new libraries added in waveDyMFoam.C.


So does it come from the file located in the make directory ?
hi, I am a bit busy now, so just give you a reference, I think there are some problems in your options file. it can not find the including files in the options file. so try to check your option file especially the including file "-I *************" part. yet, some suggestions have given on my Blog:
http://maoyanjun.top/2018/01/10/wave...D%BF%E7%94%A8/
wish you be successful.

I will try to compile it a few days later.
if you visit my Blog, please leave a comment there. hahaha, my Blog Comment zone is too quiet.

sorry I forgot it is a Blog written in Chinese. try to translate it, and hope you can understand it.
Maoyanjun is offline   Reply With Quote

Old   April 19, 2018, 02:58
Default
  #3
New Member
 
Maoyanjun
Join Date: Jan 2016
Posts: 20
Rep Power: 10
Maoyanjun is on a distinguished road
Quote:
Originally Posted by Fauster View Post
Dear Foamers,

I am trying to merge interDyMFoam and wave2foam without success (openfoam 1712+).

I tried to follow the guideline in the Jacobsen paper but it's not clear for me how to proceed. I did not understand how to use properly the compareFiles.sh

What I did :
  • I copy past interDyMFoam solver next to waveFoam (in the directory waves2Foam/solvers/solvers1712_PLUS/) and rename it waveDyMFoam.
  • I copy past all the headers from waveFoam solver to waveDyMFoam.
  • I renamed interDyMFoam.C to waveDyMFoam.C and add
#include "readGravitationalAcceleration.H"
#include "readWaveProperties.H"
#include "createExternalWaveForcing.H"
#include "correctPhi.H"
after #include "createFvOptions.H"

  • I changed the make/files and make/options files according to the guideline.
If I try to compile the solver I obtain :



So the compiler can't link to the new libraries added in waveDyMFoam.C.


So does it come from the file located in the make directory?
hi, buddy, are you here?? I have succeeded to compile it on OF -v1706_PLUS.I think it is more difficult to do that than based on OF-V1712 . before you compile the waves2Foam src. you need to source the env variables for waves2Foam
```
cd waves2Foam/bin
source bashrc
cd ..
./Allwmake
```
I think this will help you, you may meet other problems, just contact me if I could help.
Maoyanjun is offline   Reply With Quote

Old   April 19, 2018, 11:28
Default
  #4
Member
 
Paul Palladium
Join Date: Jan 2016
Posts: 93
Rep Power: 10
Fauster is on a distinguished road
Quote:
Originally Posted by Maoyanjun View Post
hi, buddy, are you here?? I have succeeded to compile it on OF -v1706_PLUS.I think it is more difficult to do that than based on OF-V1712 . before you compile the waves2Foam src. you need to source the env variables for waves2Foam
```
cd waves2Foam/bin
source bashrc
cd ..
./Allwmake
```
I think this will help you, you may meet other problems, just contact me if I could help.
Thanks for your help I solved my problem and waveFoam is compiled with dynamicMesh.

F
Fauster is offline   Reply With Quote

Old   March 7, 2023, 08:00
Default
  #5
New Member
 
Tommaso
Join Date: Jan 2020
Posts: 16
Rep Power: 6
evxta3 is on a distinguished road
Hi, Could you please give more details about this. I am trying to instal compressibleInterFoam in waves2foam
willjamesp likes this.
evxta3 is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

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



All times are GMT -4. The time now is 21:38.