# Waves2Foam Related Topics

 Register Blogs Members List Search Today's Posts Mark Forums Read

July 7, 2013, 19:58
floatingObject with waves
#481
New Member

chris goody
Join Date: Jan 2013
Location: Kaaawa, Hawaii
Posts: 6
Rep Power: 5
Kilroy, in case you were not able to get the floatingObject with waves simulation to complete yet; I had it going successfully for the full 15 seconds a while back, so I've added a link to the compressed foam files. You can download them and compare with what you're using.
Right off the bat, i noticed that your dynamicMeshDict is different by one line -- i don't have the line included in your file.
Hope this helps...
mahalo,
chris

https://www.dropbox.com/s/c9u7w57rs2...tWaves.org.zip

Quote:
 Originally Posted by kilroy I think I pin-point the problem. It is not because of the waves, it is because of the moving mesh. My original "dynamicMeshDict" file looks like below: Do you think playing with the value of "dynamicFvMesh" will work? Can you please give me some suggestions? Thank you very much for your help and time. Kilroy

 July 9, 2013, 02:15 #482 New Member   Masoud Hayatdavoodi Join Date: Sep 2012 Location: University of Hawaii Posts: 4 Rep Power: 5 Hi Niels, your solution worked well. Thank you very much for your quick response. Masoud

 July 9, 2013, 02:32 #483 Senior Member   Niels Gjoel Jacobsen Join Date: Mar 2009 Location: Deltares, Delft, The Netherlands Posts: 1,660 Rep Power: 25 Good morning Rotto (and others), Please be aware that I updated the svn substantially this weekend, so you might want to do an update of your files. Kind regards Niels

 July 11, 2013, 04:53 Waves2foam installation error #484 New Member   srirao Join Date: May 2009 Posts: 6 Rep Power: 8 Hi Neils, I tried to install waves2Foam in my CAElinux 2011 syatem and I recived the ebelow error after I run the ./Allwmake in waves2Foam folder :~$source /opt/.bashrc-OpenFOAM m:~$ cd Desktop/waves2Foam/ m:~/Desktop/waves2Foam$./Allwmake ===================================== ENVIRONMENTAL VARIABLES ===================================== WAVES_XVERSION=0 WM_PROJECT_VERSION_NUMBER=201 WAVES_SOL=/home/mvr/OpenFOAM/mvr-2.0.1/applications/utilities/waves2Foam/applications/solvers/solvers201 WAVES_POST=/home/mvr/OpenFOAM/mvr-2.0.1/applications/utilities/waves2Foam/applications/utilities/postProcessing WAVES_UTIL=/home/mvr/OpenFOAM/mvr-2.0.1/applications/utilities/waves2Foam/applications/utilities EXTBRANCH=0 WAVES_APPBIN=/home/mvr/OpenFOAM/mvr-2.0.1/platforms/linux64GccDPOpt/bin WAVES_TUT=/home/mvr/OpenFOAM/mvr-2.0.1/applications/utilities/waves2Foam/tutorials WAVES_GSL_INCLUDE=/usr/include WAVES_GSL_LIB=/usr/lib64 WAVES_PRE=/home/mvr/OpenFOAM/mvr-2.0.1/applications/utilities/waves2Foam/applications/utilities/preProcessing WAVES_SRC=/home/mvr/OpenFOAM/mvr-2.0.1/applications/utilities/waves2Foam/src WAVES_DIR=/home/mvr/OpenFOAM/mvr-2.0.1/applications/utilities/waves2Foam WAVES_LIBBIN=/home/mvr/OpenFOAM/mvr-2.0.1/platforms/linux64GccDPOpt/lib FATAL ERROR. The directory path /home/mvr/OpenFOAM/mvr-2.0.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 In your earlier replies (reply to Masoud), you have suggested the below command export WAVES_DIR= Since I am new to linux and openFoam, please help me to solve this problem and guide me for proper installation. Thankyou very much. regards Sri  July 12, 2013, 17:40 #485 Senior Member Niels Gjoel Jacobsen Join Date: Mar 2009 Location: Deltares, Delft, The Netherlands Posts: 1,660 Rep Power: 25 Hi Sri, In your specific case it should read Code: export WAVES_DIR=$HOME/Desktop/waves2Foam Kind regards Niels sri_fmlab likes this.

July 12, 2013, 18:11
#486
Senior Member

Join Date: Mar 2013
Location: USA
Posts: 120
Rep Power: 4
Quote:
 Originally Posted by goodster Kilroy, in case you were not able to get the floatingObject with waves simulation to complete yet; I had it going successfully for the full 15 seconds a while back, so I've added a link to the compressed foam files. You can download them and compare with what you're using. Right off the bat, i noticed that your dynamicMeshDict is different by one line -- i don't have the line included in your file. Hope this helps... mahalo, chris https://www.dropbox.com/s/c9u7w57rs2...tWaves.org.zip
Thanks Chris,

I got my floating object fully working. I am using a completely different solver though.

Kilroy

 July 13, 2013, 06:14 #487 New Member   srirao Join Date: May 2009 Posts: 6 Rep Power: 8 Hi Neils, Thank You very much. I successfully compiled the ./Allwmake. but under COMPILE SOLVERS it has shown the below message ========================== COMPILE SOLVERS ========================== ls: cannot access /...../solver201/*: No such file or directory Now, as you explained in wiki I am going to prepare application waveFoam from interFoam. Here, my doubt is where should I create waveFoam folder? because openfoam201 source folder is situated in /opt folder in CAELinux2011 and interFoam folder is situated like here given below \opt\openfoam201\applications\solver\multiphase\in twerFoam Kindly help me in this issue. Thank you. regards Sri

 July 13, 2013, 08:08 #488 New Member   srirao Join Date: May 2009 Posts: 6 Rep Power: 8 Hi Neils, Now I successfully compiled the waves2Foam toolbox. I also tried to couple waves2Foam with dynamic mesh. I followed the wiki tutorial carefully. Now I received the following error. mvr@mvr-laptop:~/waves2Foam/applications/solvers/solvers201/wavesFoam/waveDyMFoam$wmake SOURCE=waveDyMFoam.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I.. -I/opt/openfoam201/src/transportModels -I/opt/openfoam201/src/transportModels/incompressible/lnInclude -I/opt/openfoam201/src/transportModels/interfaceProperties/lnInclude -I/opt/openfoam201/src/turbulenceModels/incompressible/turbulenceModel -I/opt/openfoam201/src/finiteVolume/lnInclude -I/opt/openfoam201/src/dynamicMesh/lnInclude -I/opt/openfoam201/src/meshTools/lnInclude \ -I/opt/openfoam201/src/dynamicFvMesh/lnInclude -I./../../../../../src/lnInclude -IlnInclude -I. -I/opt/openfoam201/src/OpenFOAM/lnInclude -I/opt/openfoam201/src/OSspecific/POSIX/lnInclude -fPIC -c$SOURCE -o Make/linux64GccDPOpt/waveDyMFoam.o g++: -I/opt/openfoam201/src/dynamicFvMesh/lnInclude: No such file or directory waveDyMFoam.C:36:27: error: dynamicFvMesh.H: No such file or directory waveDyMFoam.C:51:37: error: createDynamicFvMesh.H: No such file or directory waveDyMFoam.C:107:39: error: meshCourantNo.H: No such file or directory In file included from waveDyMFoam.C:53: /opt/openfoam201/src/finiteVolume/lnInclude/readGravitationalAcceleration.H: In function ‘int main(int, char**)’: /opt/openfoam201/src/finiteVolume/lnInclude/readGravitationalAcceleration.H:8: error: ‘mesh’ was not declared in this scope /opt/openfoam201/src/finiteVolume/lnInclude/readTimeControls.H:38: warning: unused variable ‘maxDeltaT’ make: *** [Make/linux64GccDPOpt/waveDyMFoam.o] Error 1 mvr@mvr-laptop:~/waves2Foam/applications/solvers/solvers201/wavesFoam/waveDyMFoam\$ Please help me. Kind regards Sri

July 13, 2013, 13:23
#489
New Member

chris goody
Join Date: Jan 2013
Location: Kaaawa, Hawaii
Posts: 6
Rep Power: 5
aloha Niels-
during the process of updating waves2Foam, i noticed in the updated svn that the solvers go from "solvers170" to "solvers210" -- are any of these compatible with OF 2.0.x?
mahalo,
chris

Quote:
 Originally Posted by ngj Good morning Rotto (and others), Please be aware that I updated the svn substantially this weekend, so you might want to do an update of your files. Kind regards Niels

 July 13, 2013, 14:25 #490 Senior Member   Niels Gjoel Jacobsen Join Date: Mar 2009 Location: Deltares, Delft, The Netherlands Posts: 1,660 Rep Power: 25 Hi Chris, I have never had a version 2.0, so I cannot answer that question. But. The libraries and file location seem to change between every version update, which means that the options-file changes every time. This makes it unlikely that the solvers can compile on 2.0.. The only advice I can give is to follow the (slightly outdated) guide on the wiki on how to modify interFoam into waveFoam. 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.

 July 16, 2013, 02:20 #491 New Member   srirao Join Date: May 2009 Posts: 6 Rep Power: 8 Hi Niels, I am requesting your kind help. I am using CAELinux 2011 and my openFoam is situated in /opt/openfoam201. I have successfully compiled the Waves2Foam tool box and tried the tutorial waveFlume. Unfortunately I received the following error: Create mesh for time = 0 --> FOAM FATAL IO ERROR: cannot open file file: /home/mvr/waves2Foam/tutorials/waveFoam/3Dwaves/system/fvSchemes at line 0. From function regIOobject::readStream() in file db/regIOobject/regIOobjectRead.C at line 87. FOAM exiting I also checked the Allrun file in waveFlume folder (as you suggested in earlier replies) but still I am receiving the same error. Please help me in resolving the error. Thank you Sri

 July 16, 2013, 12:15 #492 Senior Member   Niels Gjoel Jacobsen Join Date: Mar 2009 Location: Deltares, Delft, The Netherlands Posts: 1,660 Rep Power: 25 Hello, I have tried executing the Allrun script in the case 3Dwaves, and it runs smoothly. Do you execute the Allrun-script or do you simply type "blockMesh; waveFoam" in the command line? The latter procedure will generate the error you see. 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.

July 19, 2013, 22:16
#493
Senior Member

kumar
Join Date: Mar 2009
Posts: 112
Rep Power: 8
Quote:
 Originally Posted by ngj @Kumar: Sorry for the long wait, though I have not been able to see your movies until know (lack of internet). The only thing I can assume is that you are using a turbulence model without the density terms included. This leads to excessive diffusion of turbulence across the interface. Furthermore, as you know from my article, I get poor results for the wave breaking, when I am using an aspect ratio of anything but 1. Good luck Niels
Hi Niels,

I have to thank you for all the important pointers that you have given me. I was finally able to 'bring' the density term into the k omega model and it really improved the results. Please check out this video{http://youtu.be/l6pIlYbp9OY }.

I have a question about Equation 14. Let us say the near wall Unw is about 0.1 m/s (see for instance, Figure 11, H, AR=2), and the delY in this region are about 0.0002m. Then we can get nut negative (and very small), and this seems to be happening in my case. Did you have similar results? And I wonder if the negative value led you to call the eddy viscosity "artificial".

Best regards

Kumar

 July 21, 2013, 04:50 OpenFOAM 221 and latest Waves2Foam #494 New Member   nikita tryaskin Join Date: Oct 2009 Location: Helsinki/St. Petersburg Posts: 22 Rep Power: 8 I have a problem now with subj chain. when i start surfaceElevation - the utility calculates some values of the timeSteps and after several deltaT it stops.. the processors are fully loaded but the values does not produce any results anymore. before 221 i had no problems with it.. i tried sample utility with lines and it works well, maybe different interpolation.. i had Cell in samples and CellPointFace... but i dont' know what's wrong now..

 July 21, 2013, 07:37 #495 Senior Member   Niels Gjoel Jacobsen Join Date: Mar 2009 Location: Deltares, Delft, The Netherlands Posts: 1,660 Rep Power: 25 Hi, I am sorry, but I cannot help you, as I am not using 2.2.1. myself. If you find a solution, I am happy to incorporate it into the sample utility. 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.

 July 22, 2013, 02:52 #496 Senior Member   Niels Gjoel Jacobsen Join Date: Mar 2009 Location: Deltares, Delft, The Netherlands Posts: 1,660 Rep Power: 25 Hi Kumar, Yes, it really does look a lot better. I have tried understanding your question about the negative nut, however, I do not seem to follow exactly. Could you please elaborate on the problem and on how the numbers you give yield a negative value? 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.

July 22, 2013, 17:48
#497
Senior Member

kumar
Join Date: Mar 2009
Posts: 112
Rep Power: 8
Quote:
 Originally Posted by ngj Hi Kumar, Yes, it really does look a lot better. I have tried understanding your question about the negative nut, however, I do not seem to follow exactly. Could you please elaborate on the problem and on how the numbers you give yield a negative value? Kind regards Niels
Hi Niels,

Thanks a lot for checking out the Video. Let me briefly explain how I think we could get -ve values for nut, first with Fig 11(H) and then my data.

Let us say the near wall delY is about 0.0002 ( of the order of roughness height; this is the delY in my case), then the right hand side of equation 13 is =(1/kappa)*ln(30*0.0002/0.0001) which is about 10. Now if we know the near wall velocity, Unw, uf will be about a 10th (of Unw). In figure 11(H) the near wall velocity will be smaller than about 0.1 m/s , for AR =2. This gives a uf of 0.01 ( or less). Let us now divide Equation 14 by density, then
uf^2=(nu+nut)*del(Unw)/(delY). and nut=uf^2/{del(Unw)/delY}-nu . This gives us 0.01^2/(0.1/0.0002)-1e-6, which is about -8e-07. The attached figure shows the u velocity from my data at x=9.725 m. And the Unw at the first cell is 0.05 m/s (much smaller than the article , perhaps because I have not run the model for long) and the nut that I get is all negative.

I hope my answer make sense. Please take a look and let me know what you think and if there are mistakes in my approach. And thanks again for being so helpful with your replies.

Best regards

Kumar
Attached Images
 figH_rev1.jpg (27.9 KB, 27 views)

 July 24, 2013, 02:28 #498 Senior Member   Niels Gjoel Jacobsen Join Date: Mar 2009 Location: Deltares, Delft, The Netherlands Posts: 1,660 Rep Power: 25 Good morning Kumar, I see what you are doing, but I went into my code, and I do not seem to do anything special about nut, also, I do not remember that negative nut have been a concern/issue. Sorry for not being able to help. 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.

 July 25, 2013, 19:40 #499 Senior Member   kumar Join Date: Mar 2009 Posts: 112 Rep Power: 8 Hi Niels, Thank you very much for your reply. Let me review my negative nut results. Best regards Kumar

 July 26, 2013, 04:18 #500 Member   vincent Join Date: Apr 2011 Posts: 41 Rep Power: 6 Hi Niels and all I just begin to test waveFoam and the tutorial 3Dwave. It's ok but when I change the mesh et I run setWaveFields befor run the calculation, I have the following error message: Reading waveProperties Reading g Reading field alpha Reading field U Reading field p --> FOAM FATAL IO ERROR: size 235200 is not equal to the given value of 1000000 file: /home/fluxiz/OpenFOAM/fluxiz-2.1.1/run/tutorials/multiphase/waveFoam/Mk2/0/p_rgh from line 18 to line 235261. From function Field::Field(const word& keyword, const dictionary&, const label) in file /opt/openfoam211/src/OpenFOAM/lnInclude/Field.C at line 236. FOAM exiting Where is the problem? Kind regards Vince

 Thread Tools Display Modes Linear Mode

 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 OffTrackbacks are On Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post hjasak OpenFOAM 2 October 26, 2013 04:33 Roberthealy1 CFD-Wiki 6 August 23, 2007 17:58 Jonas Larsson Main CFD Forum 3 February 9, 2007 11:11 vivekanand CFX 0 October 27, 2004 05:17 Antonio Filippone Main CFD Forum 0 August 28, 1999 12:16

All times are GMT -4. The time now is 02:38.