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

[waves2Foam] Problems with waveDyMFoam and ghRef

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 11, 2017, 10:18
Default Problems with waveDyMFoam and ghRef
  #1
New Member
 
Anastasios Stampoultzoglou
Join Date: May 2014
Posts: 21
Rep Power: 12
Tasos is on a distinguished road
Hallo everyone,

I also have some problems in compiling the waveDyMFoam.

I think that the problem may be in the createField.H.

In the interFoam version we have this :
//#include "readGravitationalAcceleration.H"
#include "readhRef.H"
#include "gh.H"
//volScalarField gh("gh", g & (mesh.C() - referencePoint));
//surfaceScalarField ghf("ghf", g & (mesh.Cf() - referencePoint));

On the other hand in the waveFoam version we have this :
//#include "readGravitationalAcceleration.H"
//#include "readhRef.H"
//#include "gh.H"
volScalarField gh("gh", g & (mesh.C() - referencePoint));
surfaceScalarField ghf("ghf", g & (mesh.Cf() - referencePoint));
Does anyone know the difference?

If someone replaces the second with the first way, then both (waveFoam and waveDyMFoam) can be compiled, because the waveDyMFoam is "using" the ghRef. But is it correct?

Thank you in advance.
Tasos.
Tasos is offline   Reply With Quote

Old   January 11, 2017, 13:39
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
Hi Tasos,

The reference point part (introduced by waves2Foam) pre-dates the implementation into OpenFoam, which is why there are two options in newer version of OpenFoam. I have not had any problems using the waves2Foam version, but please tell me, if you encounter any issues (besides compilation).

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

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] Problem Compiling WaveDyMFoam in OF 3.0.1 Pablo M OpenFOAM Community Contributions 1 April 26, 2017 13:01
ghRef Dynamic Meshing willzyba OpenFOAM Running, Solving & CFD 1 May 20, 2016 14:46
ghRef defination location manoj_nav OpenFOAM Programming & Development 4 May 20, 2016 14:26


All times are GMT -4. The time now is 06:24.