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

[waves2Foam] Compiling with OpenFoam4

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 30, 2016, 07:39
Default Compiling with OpenFoam4
  #1
New Member
 
Alireza Bahmanpour
Join Date: Jul 2014
Posts: 12
Rep Power: 12
alirezab is on a distinguished road
Hi Niels,

Any chance you will be making waves2Foam compatible with the new OpenFOAM 4.0.0?

Best regards,
Alireza
alirezab is offline   Reply With Quote

Old   June 30, 2016, 09:25
Default
  #2
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37
ngj will become famous soon enoughngj will become famous soon enough
Hallo Alireza,

It is possible that waves2Foam will be made compatible with OpenFoam-4.0.0. There have been substantial changes in the code (see e.g. http://bugs.openfoam.org/view.php?id=2134#c6474), so it will take a bit of time to handle the cross-version compatibility.

Furthermore, it appears that the approach to run-time sampling has changed substantially in OpenFoam-4.0.0 (functionObjects) and some of the canonical classes does no longer exist. Consequently, I cannot promise that sampling tools such as waveGauges and overtopping will be supported.

Kind regards,

Niels
__________________
Please note that I do not use the Friend-feature, so do not be offended, if I do not accept a request.
ngj is offline   Reply With Quote

Old   July 1, 2016, 17:52
Default
  #3
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37
ngj will become famous soon enoughngj will become famous soon enough
Please follow this link on compatibility with OpenFoam-4.0.0:

http://www.cfd-online.com/Forums/ope...tml#post607668

Kind regards,

Niels
__________________
Please note that I do not use the Friend-feature, so do not be offended, if I do not accept a request.
ngj is offline   Reply With Quote

Old   August 2, 2016, 08:12
Default Remarks in compiling waves2Foam with OpenFoam4
  #4
New Member
 
Pierre-Henri Musiedlak
Join Date: Dec 2015
Posts: 11
Rep Power: 10
phmusi is on a distinguished road
Hello everyone,

Thanks Niels for the compiling of waves2Foam with OpenFOAM4.

I still get some stuffs happening for whatever the reason:
- some librairies doesn't compile because they try to compile with "extended" files
=> So in bin/bashrc: I manually fix: EXTBRANCH=0 (avaoiding the if loop)
=> When I compile I do get at the very beginning: EXTBRANCH=0
But then, the same compiling errors are done

The only solution I found was to go in files and comment the if loop to force the right #include:
Code:
/*if EXTBRANCH==1
    #if 310<OFVERSION
        #include "foamTime.H"
    #else
        #include "Time.H"
    #endif
#else
    #include "Time.H"
#endif*/
 #include "Time.H"
Hope it will help someone

Pierre-Henri
phmusi is offline   Reply With Quote

Old   August 2, 2016, 16:56
Default
  #5
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37
ngj will become famous soon enoughngj will become famous soon enough
Hi Pierre-Henri,

Are you sure that you are using Openfoam-40 and not the current development number for foam-extend-4.0? Something goes wrong elsewhere and I have not had those problems, so you need to provide more information.

I am currently on holiday, so do not know, when I check in again.

Make sure that you use the most recent version of the svn-repository.

Kind regards

Niels
__________________
Please note that I do not use the Friend-feature, so do not be offended, if I do not accept a request.
ngj is offline   Reply With Quote

Old   August 3, 2016, 07:19
Default
  #6
New Member
 
Pierre-Henri Musiedlak
Join Date: Dec 2015
Posts: 11
Rep Power: 10
phmusi is on a distinguished road
Hello Niels,

I am sure I am using OpenFOAM-40 because I download it directly from :
HTML Code:
http://openfoam.org/download/4-0-ubuntu/
And I followed the wiki for the install of waves2Foam, but svn doesn't work for me so I use:
Code:
git clone https://github.com/ogoe/waves2Foam
So I hope it is the same.

I am also having troubles compiling waveDyMFoam. I made a copy of interDyMFoam and follows the instructions to convert interFoam in waveFoam, but I still have some issues : createFields.H gives some troubles with readGravitationalAcceleration.H, readWaveProperties.H and createExternalWaveForcing.H.
If I come up with an answer I will post it here.

Enjoy your holidays

Thanks

Pierre-Henri
phmusi is offline   Reply With Quote

Old   August 3, 2016, 14:00
Default
  #7
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37
ngj will become famous soon enoughngj will become famous soon enough
Sorry, I cannot vouch for other mirrors. I recommend that you manage to use svn.

Kind regards

Niels
__________________
Please note that I do not use the Friend-feature, so do not be offended, if I do not accept a request.
ngj is offline   Reply With Quote

Old   August 4, 2016, 07:55
Default
  #8
New Member
 
Pierre-Henri Musiedlak
Join Date: Dec 2015
Posts: 11
Rep Power: 10
phmusi is on a distinguished road
Hello Niels,

I manage to make the svn works and I do get the same errors in compiling: "foamTime.H"
which means it still think I am using foam-extended but in Environmental variables EXTBRANCH=0 and FOAMEXTENDPROJECT=0

Pierre-Henri
phmusi is offline   Reply With Quote

Old   August 9, 2016, 09:51
Default
  #9
Senior Member
 
ArielJ
Join Date: Aug 2015
Posts: 127
Rep Power: 11
arieljeds is on a distinguished road
Hi everyone,

I'm getting a symbol lookup error when I try any of the utilities with waveFoam, i.e.:
Code:
setWaveParameters: symbol lookup error: /ichec/packages/OpenFOAM/2.4.0/intel/OpenFOAM-2.4.0/platforms/linux64IccDPOpt/lib/libwaves2Foam.so: undefined symbol: globalvariables_mp_time_
I've been using waves2Foam for months now on a cluster, I haven't changed the code at all. I've been away for 2 weeks and now that I'm back I am getting this error. I have absolutely no idea how this would have occurred... Has anyone had this happen??? I have NOT changed any of the source code since the last time I successfully ran a simulation on this cluster..
arieljeds is offline   Reply With Quote

Old   August 11, 2016, 05:11
Default
  #10
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37
ngj will become famous soon enoughngj will become famous soon enough
Good morning,

I am back from my holiday. I have just compiled waves2Foam on OpenFoam-4.0. I do not experience any problems.

You will need to post the errors from the compilation and the places/files, where it goes wrong. Otherwise, it is virtually impossible to help any further. Also, please acquaint yourself with these instructions: http://www.cfd-online.com/Forums/ope...-get-help.html

@Ariel: I guess that something has gone wrong with your installation of OceanWave3D (at least the missing symbol looks like something from the coupling between OceanWave3D and waves2Foam). I simply recommend to recompile waves2Foam.

Kind regards,

Niels
__________________
Please note that I do not use the Friend-feature, so do not be offended, if I do not accept a request.
ngj is offline   Reply With Quote

Old   August 11, 2016, 07:25
Default
  #11
Senior Member
 
ArielJ
Join Date: Aug 2015
Posts: 127
Rep Power: 11
arieljeds is on a distinguished road
Hi Niels,

Thank you for your reply... I noticed the same thing and tried to do a clean and recompile, but still having a lot of linking issues. However, as this was working perfectly before but I am running it on a public cluster, my suspicion is that the issues are to do with some other linking or missing libraries on the cluster and not an issue with waves2Foam. I will keep trying here and hopefully get it back up and running again.

Ariel
arieljeds 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
[OpenFOAM.org] Compiling OpenFOAM 5.0 on the Titan Supercomputer wildfire230 OpenFOAM Installation 20 May 6, 2020 08:30
Getting error both interpreting and compiling serene6390 Fluent UDF and Scheme Programming 1 October 27, 2017 01:49
All files present. but solver not compiling saddy OpenFOAM Programming & Development 1 July 29, 2017 10:50
[OpenFOAM.org] Trouble Compiling OpenFOAM-dev using Intel Compiler 15 for use on Xeon Phi foamer123 OpenFOAM Installation 9 August 20, 2015 15:03
Help with KIVA4 source code compiling geothokar Main CFD Forum 0 September 3, 2010 06:40


All times are GMT -4. The time now is 08:42.