|
[Sponsors] |
November 17, 2013, 13:21 |
|
#581 |
Member
maryam morta
Join Date: Sep 2013
Posts: 54
Rep Power: 13 |
Hi Niel,
while ago I accomplished to run waveDyMFoam with no error. But now I can't wmake it again that I don't know why! Or maybe I was wrong that I thought it was running well!At first, It seems I have overwrited the option file. But after changing the option to the correct one it gives me the error below. (WaveFoam is working and its command is known in the terminal.) The error is: Code:
Making dependency list for source file waveDyMFoam.C SOURCE=waveDyMFoam.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-100 -I.. -I/opt/openfoam210/src/transportModels -I/opt/openfoam210/src/transportModels/incompressible/lnInclude -I/opt/openfoam210/src/transportModels/interfaceProperties/lnInclude -I/opt/openfoam210/src/turbulenceModels/incompressible/turbulenceModel -I/opt/openfoam210/src/finiteVolume/lnInclude -I/opt/openfoam210/src/dynamicMesh/lnInclude -I/opt/openfoam210/src/meshTools/lnInclude -I/opt/openfoam210/src/dynamicFvMesh/lnInclude -I./../../../../../src/lnInclude -IlnInclude -I. -I/opt/openfoam210/src/OpenFOAM/lnInclude -I/opt/openfoam210/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGccDPOpt/waveDyMFoam.o In file included from waveDyMFoam.C:54: ../createFields.H: In function ‘int main(int, char**)’: ../createFields.H:146: error: ‘relaxationZone’ was not declared in this scope ../createFields.H:146: error: expected ‘;’ before ‘relaxing’ In file included from ./../../../../../src/lnInclude/convexPolyhedral.H:55, from ./../../../../../src/lnInclude/relaxationScheme.H:63, from ./../../../../../src/lnInclude/relaxationZone.H:44, from waveDyMFoam.C:56: ./../../../../../src/lnInclude/localFace.H:44: error: ‘namespace’ definition is not allowed here In file included from ./../../../../../src/lnInclude/convexPolyhedral.H:56, from ./../../../../../src/lnInclude/relaxationScheme.H:63, from ./../../../../../src/lnInclude/relaxationZone.H:44, from waveDyMFoam.C:56: ./../../../../../src/lnInclude/localCell.H:45: error: ‘namespace’ definition is not allowed here In file included from ./../../../../../src/lnInclude/convexPolyhedral.H:57, from ./../../../../../src/lnInclude/relaxationScheme.H:63, from ./../../../../../src/lnInclude/relaxationZone.H:44, from waveDyMFoam.C:56: ./../../../../../src/lnInclude/localCellNeg.H:45: error: ‘namespace’ definition is not allowed here In file included from ./../../../../../src/lnInclude/relaxationScheme.H:63, from ./../../../../../src/lnInclude/relaxationZone.H:44, from waveDyMFoam.C:56: ./../../../../../src/lnInclude/convexPolyhedral.H:59: error: ‘namespace’ definition is not allowed here In file included from ./../../../../../src/lnInclude/relaxationScheme.H:64, from ./../../../../../src/lnInclude/relaxationZone.H:44, from waveDyMFoam.C:56: ./../../../../../src/lnInclude/relaxationShape.H:68: error: ‘namespace’ definition is not allowed here In file included from ./../../../../../src/lnInclude/relaxationWeight.H:63, from ./../../../../../src/lnInclude/relaxationScheme.H:65, from ./../../../../../src/lnInclude/relaxationZone.H:44, from waveDyMFoam.C:56: ./../../../../../src/lnInclude/relaxationWeightCourantCorrection.H:55: error: ‘namespace’ definition is not allowed here In file included from ./../../../../../src/lnInclude/relaxationScheme.H:65, from ./../../../../../src/lnInclude/relaxationZone.H:44, from waveDyMFoam.C:56: ./../../../../../src/lnInclude/relaxationWeight.H:67: error: ‘namespace’ definition is not allowed here In file included from ./../../../../../src/lnInclude/relaxationScheme.H:66, from ./../../../../../src/lnInclude/relaxationZone.H:44, from waveDyMFoam.C:56: ./../../../../../src/lnInclude/numericalBeach.H:54: error: ‘namespace’ definition is not allowed here In file included from ./../../../../../src/lnInclude/relaxationScheme.H:67, from ./../../../../../src/lnInclude/relaxationZone.H:44, from waveDyMFoam.C:56: ./../../../../../src/lnInclude/waveTheory.H:67: error: ‘namespace’ definition is not allowed here In file included from ./../../../../../src/lnInclude/relaxationZone.H:44, from waveDyMFoam.C:56: ./../../../../../src/lnInclude/relaxationScheme.H:72: error: ‘namespace’ definition is not allowed here In file included from waveDyMFoam.C:56: ./../../../../../src/lnInclude/relaxationZone.H:49: error: ‘namespace’ definition is not allowed here waveDyMFoam.C:122: error: ‘relaxing’ was not declared in this scope /opt/openfoam210/src/finiteVolume/lnInclude/readTimeControls.H:38: warning: unused variable ‘maxDeltaT’ make: *** [Make/linuxGccDPOpt/waveDyMFoam.o] Error 1 Could you please tell me what's my problem. My OF version is 2.1.0. The option file is also here: Code:
EXE_INC = \ -I.. \ -I$(LIB_SRC)/transportModels \ -I$(LIB_SRC)/transportModels/incompressible/lnInclude \ -I$(LIB_SRC)/transportModels/interfaceProperties/lnInclude \ -I$(LIB_SRC)/turbulenceModels/incompressible/turbulenceModel \ -I$(LIB_SRC)/finiteVolume/lnInclude \ -I$(LIB_SRC)/dynamicMesh/lnInclude \ -I$(LIB_SRC)/meshTools/lnInclude \ -I$(LIB_SRC)/dynamicFvMesh/lnInclude \ -I./../../../../../src/lnInclude EXE_LIBS = \ -ltwoPhaseInterfaceProperties \ -lincompressibleTransportModels \ -lincompressibleTurbulenceModel \ -lincompressibleRASModels \ -lincompressibleLESModels \ -lfiniteVolume \ -ldynamicMesh \ -lmeshTools \ -ldynamicFvMesh \ -ltopoChangerFvMesh \ -L$(FOAM_USER_LIBBIN) \ -lwaves2Foam Thanks for your the time and effort you put here. Best regards |
|
November 17, 2013, 14:06 |
|
#582 |
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37 |
You must have updated the svn. Approximately 5 month ago, I changed the file structure of waves2Foam. The errors you experience are related to this update.
Consider the Make/options-file in waveFoam, and you should be able to reproduce it for waveDyMFoam. 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. |
|
November 17, 2013, 14:14 |
|
#583 |
Member
maryam morta
Join Date: Sep 2013
Posts: 54
Rep Power: 13 |
Thanks Niel
Sorry but I didn't underestand you. Am I using the wrong version of wave2Foam? What should I do now? Regards |
|
November 17, 2013, 15:30 |
|
#584 |
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37 |
The recent compilation errors are because you have updated your waves2Foam. As of revision 1996 from the 7th of June 2013 (see the Wiki), the compilation system and the file structure was changed. This change do cause the errors you experience.
You can look into the way the Make/options file is for waveFoam compared to the one you have for waveDyMFoam and adjust the latter accordingly. I will generally recommend to stay as up to date as possible with the source code, so the more recent, the better. 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. |
|
November 17, 2013, 16:03 |
|
#585 |
Member
maryam morta
Join Date: Sep 2013
Posts: 54
Rep Power: 13 |
Hmm thanks
Somehow I'm getting now. How can I delete the compiled files and install the toolbox from the source on wiki again? |
|
November 17, 2013, 16:34 |
|
#586 |
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37 |
Hi Maryam,
Performing the following two steps should suffice: Code:
svn update ./Allwmake If you want to make sure that you have a fresh start, then the library is placed here: Code:
cd $FOAM_USER_LIBBIN Code:
cd $FOAM_USER_APPBIN Niels
__________________
Please note that I do not use the Friend-feature, so do not be offended, if I do not accept a request. |
|
November 18, 2013, 02:50 |
|
#587 |
Member
Arthur Loginow
Join Date: Aug 2012
Posts: 99
Rep Power: 14 |
Hello, I am working trough the validation of the secondStokes, so far I am getting good results, but I believe that the mesh needs to be improved, right now I am working with a 0.005 element size for both, x and y, with a tank size of 20m and a relaxation zone of 5m for both the inlet and the outlet, so here is my question: Does someone made an analysis about the recommended length for both the inlet and outlet relaxation zone? I am asking this because at my references they recommend to have an inlet relaxation zone equals to 1L (wave length) and an outlet relaxation zone equal to 3L, I am working with rectangular shapes, I would like to see some opinions, if no one knows I will run several testes by my own (thing that I do not want to do because each simulation is taking around 4-6 hours)
Here is an image of the results that I am getting for a 0.01 cell size in x and y direction, looks pretty good but still you can see that there is a small difference at the amplitude, the blue one is the theoretical wave the orange one is the results that I got from the simulation Last edited by Maralady; November 18, 2013 at 14:23. |
|
November 18, 2013, 02:52 |
|
#588 |
Member
Arthur Loginow
Join Date: Aug 2012
Posts: 99
Rep Power: 14 |
I forgot to say that my references did not work with waveFoam and that is why I am asking
|
|
November 18, 2013, 03:05 |
|
#589 |
Member
maryam morta
Join Date: Sep 2013
Posts: 54
Rep Power: 13 |
Hi Niel,
Yes my wave2Foam is from the time that svn was down. After running this waveFoam, I got a file from my friend that was from the updated file in wiki. I might ./Allwmake this file again after mine! Maybe this had made some problems, but waveFoam was running correctly. As you told me at first I tried to modify the option file like the one in waveFoam, but again with no progress. Not successful to build waveDyMFoam.o Then I tried to svn update in the wave2Foam folder but it said .skipped After that I removed the libraries and binary files as you mentioned in the directory. I got the source from wiki and finally this the last version of my errors after ./Allwmake :| Code:
===================================== ENVIRONMENTAL VARIABLES ===================================== WAVES_XVERSION=0 WM_PROJECT_VERSION_NUMBER=210 WAVES_SOL=/home/maryam/OpenFOAM/maryam-2.1.0/applications/utilities/waves2Foam/applications/solvers/solvers210 WAVES_POST=/home/maryam/OpenFOAM/maryam-2.1.0/applications/utilities/waves2Foam/applications/utilities/postProcessing WAVES_UTIL=/home/maryam/OpenFOAM/maryam-2.1.0/applications/utilities/waves2Foam/applications/utilities EXTBRANCH=0 WAVES_APPBIN=/home/maryam/OpenFOAM/maryam-2.1.0/platforms/linuxGccDPOpt/bin WAVES_TUT=/home/maryam/OpenFOAM/maryam-2.1.0/applications/utilities/waves2Foam/tutorials WAVES_GSL_INCLUDE=/usr/include WAVES_GSL_LIB=/usr/lib64 WAVES_PRE=/home/maryam/OpenFOAM/maryam-2.1.0/applications/utilities/waves2Foam/applications/utilities/preProcessing WAVES_SRC=/home/maryam/OpenFOAM/maryam-2.1.0/applications/utilities/waves2Foam/src WAVES_DIR=/home/maryam/OpenFOAM/maryam-2.1.0/applications/utilities/waves2Foam WAVES_LIBBIN=/home/maryam/OpenFOAM/maryam-2.1.0/platforms/linuxGccDPOpt/lib FATAL ERROR. The directory path /home/maryam/OpenFOAM/maryam-2.1.0/applications/utilities/waves2Foam does not exist. Correct the path in bin/bashrc Please note that once bin/bashrc is created, bin/bashrc.org is only an inactive file. The latter is also the only of the two files, which is updated through the SVN-repository. EXITING I'm amazed every little thing I do in OpenFoam I face with multiple errors! Sorry for the whole incontinence I've made. Thanks in advanced. Best Regards |
|
November 18, 2013, 04:09 |
|
#590 |
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37 |
Good morning Maryam,
Your latest issue has been addressed multiple of times in this thread already. 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. |
|
November 18, 2013, 12:22 |
|
#591 |
New Member
Lukas
Join Date: Oct 2013
Location: Germany
Posts: 7
Rep Power: 13 |
Hi Niels,
I am trying to calculate wave loads on offshore structures (at first a simple cylinder). Unfortunately, I currently have problems with the validation of the parameters. The maximum and minimum values for the velocity Ux that occur on the surface of the waves are too high. This results in incorrect values for the forces. However the velocities below the water surface are realistic (if the top of the Monopile is below the water surface, the forces are realistic too). Is it possible that an interaction between the air and water is taking place? Or is simply the mesh not fine enough? I am using OF 2.2.1 and work with Stokes 5th. Regards - Lukas |
|
November 19, 2013, 04:29 |
|
#592 |
Member
Arthur Loginow
Join Date: Aug 2012
Posts: 99
Rep Power: 14 |
Dear Neils,
I think I found a mistake at the math of the stokesSecond, not quite sure 3am here and I am pretty tired, anyway please check this (or anyone else) when you have time: H_/2.0*Foam::cos(arg) // First order contribution. // Second order contribution. + (1.0/16.0)*K_*sqr(H_) *( 3.0/Foam:ow(Foam::tanh(K_*h_),3.0) - 1.0/Foam::tanh(K_*h_) ) *Foam::cos(2.0*arg) )*factor(time) // Hot-starting. + seaLevel_; // Adding sea level. I think that the minus sign should be a plus sign, anyway maybe I am missing something but my math seems correct, it would be nice if someone can check this to corroborate. Thanks UPDATED Seems to be no difference at all with the sign Last edited by Maralady; November 19, 2013 at 06:50. |
|
November 19, 2013, 11:51 |
|
#593 |
New Member
|
Hi,
I'm a new user of OpenFOAM. I started to be familiar with OF following the user-guide and tutorials of OpenFoam. Now I want to use waves2Foam but i can not run any of its tutorials. I don't know if the problem comes from installation or ... ? (I am using Linux mint 14 and OF211 in my own computer and ubuntu 10.10 and OF171 in my work place) can anyone help me please? thanks in advance. Behrang Last edited by Behrang; November 20, 2013 at 08:07. |
|
November 24, 2013, 09:22 |
|
#594 |
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37 |
@Lukas:
A quick look at your test case shows that you are using way too few computational cells. 1920 cells for a three dimensional case will never be enough. The number of cells should probably be a couple of orders larger. Secondly, you are using linear theory for your parameters even though you apply Stokes fifth order theory. @Behrang: To except any help please conform to the suggestions in this thread: http://www.cfd-online.com/Forums/ope...-get-help.html 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. |
|
November 24, 2013, 13:41 |
|
#595 |
New Member
|
Hi Niels,
Thanks for your suggestion, actually I red all the posts in this forum and also the wiki page but I cannot run any of tutorials! as I mentioned I checked the suggestion to other new users of OF and waves2Foam but they did not work for me. if possible please guide me to check what is the problem? as I told in previous post I dont know if the installation is correct or not?! Thank you! Behrang |
|
November 24, 2013, 17:33 |
|
#596 |
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37 |
Hi Behrang,
Since you have read through this thread, and considering the range of issue discussed and solved in the above post, your problem(s) must be quite special, why you not nearly have presented us with enough information to come up with a solution. Output from the command line and confirmation that waves2Foam is correctly compiled are typically a good starting point. 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. |
|
November 25, 2013, 06:53 |
|
#597 | |
New Member
Lukas
Join Date: Oct 2013
Location: Germany
Posts: 7
Rep Power: 13 |
Hi Niels,
thank you for your effort but what do you mean with Quote:
In addition, I work with ~2kk Cells (after refinement) in this case. My minimum mesh size varies between 0.2 m 0.5m in each direction. Is this still not fine enough? Thanks in advance Lukas |
||
November 25, 2013, 08:35 |
|
#598 |
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37 |
Hi Lukas,
I am sorry with respect to Stokes Fifth, I am just used to work in shallow waters, where the two theories deviate, but your water depth is 30 m. With respect to the number of cells, then 2.000.000 seems like a more reasonable number, i.e. a lot more than the mesh you uploaded. I have not really worked with impact on cylinders myself, and since my points above are void, I hope that some one else can help you? 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. |
|
November 25, 2013, 09:02 |
|
#599 |
New Member
|
Hi Niels,
I am using OF211 in Linux mint14. I follow the instruction of wiki to install waves2Foam ( sudo apt-get install libgsl0-dev svn co http://svn.code.sf.net/p/openfoam-ex...her/waves2Foam ) now I have waves2Foam in home/behrang , then i execute allwmake with (./Allwmake) and I have same error as maryam has: ( behrang@linuxmint ~/waves2Foam $ ./Allwmake ===================================== ENVIRONMENTAL VARIABLES ===================================== WAVES_XVERSION=0 WM_PROJECT_VERSION_NUMBER=211 WAVES_SOL=/home/behrang/OpenFOAM/behrang-2.1.1/applications/utilities/waves2Foam/applications/solvers/solvers211 WAVES_POST=/home/behrang/OpenFOAM/behrang-2.1.1/applications/utilities/waves2Foam/applications/utilities/postProcessing WAVES_UTIL=/home/behrang/OpenFOAM/behrang-2.1.1/applications/utilities/waves2Foam/applications/utilities EXTBRANCH=0 WAVES_APPBIN=/home/behrang/OpenFOAM/behrang-2.1.1/platforms/linuxGccDPOpt/bin WAVES_TUT=/home/behrang/OpenFOAM/behrang-2.1.1/applications/utilities/waves2Foam/tutorials WAVES_GSL_INCLUDE=/usr/include WAVES_GSL_LIB=/usr/lib64 WAVES_PRE=/home/behrang/OpenFOAM/behrang-2.1.1/applications/utilities/waves2Foam/applications/utilities/preProcessing WAVES_SRC=/home/behrang/OpenFOAM/behrang-2.1.1/applications/utilities/waves2Foam/src WAVES_DIR=/home/behrang/OpenFOAM/behrang-2.1.1/applications/utilities/waves2Foam WAVES_LIBBIN=/home/behrang/OpenFOAM/behrang-2.1.1/platforms/linuxGccDPOpt/lib FATAL ERROR. The directory path /home/behrang/OpenFOAM/behrang-2.1.1/applications/utilities/waves2Foam does not exist. Correct the path in bin/bashrc Please note that once bin/bashrc is created, bin/bashrc.org is only an inactive file. The latter is also the only of the two files, which is updated through the SVN-repository. EXITING ) but I don't have a folder called application in behrang-2.1.1!!!!!!!!!!!!!!!!!!!!!!!!! I have application in opt/openfoam211 and inside that I have utilities (but no folder called waves2Foam) sorry if I am causing any inconvenience. Behrang |
|
November 25, 2013, 14:22 |
|
#600 |
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37 |
__________________
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; December 28, 2013 at 09:12. Reason: upda |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Map of the OpenFOAM Forum - Understanding where to post your questions! | wyldckat | OpenFOAM | 10 | September 2, 2021 06:29 |
Re-Project topics | protocol | STAR-CCM+ | 0 | March 22, 2016 06:25 |
Waves2Foam Related Topics | seoseonguk | OpenFOAM Running, Solving & CFD | 0 | March 1, 2016 23:18 |
Waves2Foam Related Topics | seoseonguk | OpenFOAM Running, Solving & CFD | 0 | March 1, 2016 23:14 |
Error: "Cannot find file points" related to changing parallelized code to serial? | Suyf | OpenFOAM Running, Solving & CFD | 0 | February 12, 2015 05:31 |