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

[waves2Foam] compiling waveFoam.C over OF400

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 6, 2017, 09:00
Default compiling waveFoam.C over OF400
  #1
New Member
 
Wojciech Czernous
Join Date: Jan 2017
Location: Gdynia, Poland
Posts: 1
Rep Power: 0
AntoninSertillangesOP is on a distinguished road
Dear All,

I am a new user of waves2Foam.
I have successfully installed it, over OpenFOAM 4.0.

Then, I consequently modified interFoam into waveFoam,
with the following exception.

Assuming that the working directory is
~/OpenFOAM/$USER-4.0/applications/utilities/waves2Foam/applications/solvers/solvers400/waveFoam
I have realized that there is no folder with path suggested by option
-I./../../../../src/lnInclude
(as have been advised to put in Make/options),
so I have changed it to
-I./../../../../src/waves2Foam/lnInclude

After cd to the directory:
~/OpenFOAM/$USER-4.0/applications/utilities/waves2Foam/applications/solvers/solvers400/waveFoam/
I have run the wmake, with the following result:

In file included from ./createFields.H:81:0,
from /opt/openfoam4/src/OpenFOAM/lnInclude/postProcess.H:129,
from waveFoam.C:59:
/opt/openfoam4/src/finiteVolume/lnInclude/gh.H: In function ‘int main(int, char**)’:
/opt/openfoam4/src/finiteVolume/lnInclude/gh.H:4:13: error: ‘g’ was not declared in this scope

---------------------------------------------------
Instead of deleting the line

#include "readGravitationalAcceleration.H"from the file createFields.H, I have conditioned this line as follows:
#ifndef GRAV_ACC_READ
#define GRAV_ACC_READ 1
#include "readGravitationalAcceleration.H"
#endif
As a result, I have compiled successfully the waveFoam solver, although I am not 100% sure,
whether the program logic is now correct.

Kind regards!


Last edited by AntoninSertillangesOP; February 8, 2017 at 05:21. Reason: maybe solved
AntoninSertillangesOP is offline   Reply With Quote

Old   February 11, 2017, 11:33
Default
  #2
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,900
Rep Power: 37
ngj will become famous soon enoughngj will become famous soon enough
Good afternoon,

@Wojciech: There is already a waveFoam solver available for OpenFOAM 4.0, so I do not understand, why you try to make your own.

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.

Last edited by wyldckat; August 25, 2018 at 07:02. Reason: Removed answers to other threads, after moving from the main one to individual ones
ngj 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 07:30
Getting error both interpreting and compiling serene6390 Fluent UDF and Scheme Programming 1 October 27, 2017 00:49
All files present. but solver not compiling saddy OpenFOAM Programming & Development 1 July 29, 2017 09:50
[OpenFOAM.org] Trouble Compiling OpenFOAM-dev using Intel Compiler 15 for use on Xeon Phi foamer123 OpenFOAM Installation 9 August 20, 2015 14:03
Help with KIVA4 source code compiling geothokar Main CFD Forum 0 September 3, 2010 05:40


All times are GMT -4. The time now is 01:46.