|
[Sponsors] |
[waves2Foam] Problems with waveDyMFoam and ghRef |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 11, 2017, 10:18 |
Problems with waveDyMFoam and ghRef
|
#1 |
New Member
Anastasios Stampoultzoglou
Join Date: May 2014
Posts: 21
Rep Power: 12 |
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. |
|
January 11, 2017, 13:39 |
|
#2 |
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37 |
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. |
|
|
|
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 |