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

[waves2Foam] Waves2Foam Related Topics

Register Blogs Community New Posts Updated Threads Search

Like Tree162Likes

Closed Thread
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 7, 2013, 20:58
Default floatingObject with waves
  #461
New Member
 
chris goody
Join Date: Jan 2013
Location: Kaaawa, Hawaii
Posts: 6
Rep Power: 0
goodster is on a distinguished road
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 View Post
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
ngj likes this.
goodster is offline  

Old   July 9, 2013, 03:15
Default
  #462
New Member
 
Masoud Hayatdavoodi
Join Date: Sep 2012
Location: University of Hawaii
Posts: 4
Rep Power: 14
Rotto is on a distinguished road
Hi Niels, your solution worked well. Thank you very much for your quick response.

Masoud
Rotto is offline  

Old   July 9, 2013, 03:32
Default
  #463
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
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
ngj is offline  

Old   July 11, 2013, 05:53
Post Waves2foam installation error
  #464
New Member
 
srirao
Join Date: May 2009
Posts: 6
Rep Power: 17
sri_fmlab is on a distinguished road
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=<absolute path to waves2Foam directory>

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
sri_fmlab is offline  

Old   July 12, 2013, 18:40
Default
  #465
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 Sri,

In your specific case it should read

Code:
export WAVES_DIR=$HOME/Desktop/waves2Foam
Kind regards

Niels
sri_fmlab likes this.
ngj is offline  

Old   July 12, 2013, 19:11
Default
  #466
Senior Member
 
kilroy's Avatar
 
Join Date: Mar 2013
Location: USA
Posts: 120
Rep Power: 13
kilroy is on a distinguished road
Quote:
Originally Posted by goodster View Post
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
kilroy is offline  

Old   July 13, 2013, 07:14
Default
  #467
New Member
 
srirao
Join Date: May 2009
Posts: 6
Rep Power: 17
sri_fmlab is on a distinguished road
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
sri_fmlab is offline  

Old   July 13, 2013, 09:08
Default
  #468
New Member
 
srirao
Join Date: May 2009
Posts: 6
Rep Power: 17
sri_fmlab is on a distinguished road
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
sri_fmlab is offline  

Old   July 13, 2013, 14:23
Default
  #469
New Member
 
chris goody
Join Date: Jan 2013
Location: Kaaawa, Hawaii
Posts: 6
Rep Power: 0
goodster is on a distinguished road
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 View Post
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
goodster is offline  

Old   July 13, 2013, 15:25
Default
  #470
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 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.<something>.

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.
ngj is offline  

Old   July 16, 2013, 03:20
Default
  #471
New Member
 
srirao
Join Date: May 2009
Posts: 6
Rep Power: 17
sri_fmlab is on a distinguished road
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
sri_fmlab is offline  

Old   July 16, 2013, 13:15
Default
  #472
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
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.
ngj is offline  

Old   July 19, 2013, 23:16
Default
  #473
Senior Member
 
kumar
Join Date: Mar 2009
Posts: 112
Rep Power: 17
kumar2 is on a distinguished road
Quote:
Originally Posted by ngj View Post
@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
kumar2 is offline  

Old   July 21, 2013, 05:50
Default OpenFOAM 221 and latest Waves2Foam
  #474
New Member
 
nikita tryaskin
Join Date: Oct 2009
Location: Helsinki/St. Petersburg
Posts: 27
Rep Power: 17
eternityboy is on a distinguished road
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..
eternityboy is offline  

Old   July 21, 2013, 08:37
Default
  #475
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,

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.
ngj is offline  

Old   July 22, 2013, 03:52
Default
  #476
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 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.
ngj is offline  

Old   July 22, 2013, 18:48
Default
  #477
Senior Member
 
kumar
Join Date: Mar 2009
Posts: 112
Rep Power: 17
kumar2 is on a distinguished road
Quote:
Originally Posted by ngj View Post
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
File Type: jpg figH_rev1.jpg (27.9 KB, 36 views)
kumar2 is offline  

Old   July 24, 2013, 03:28
Default
  #478
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
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.
ngj is offline  

Old   July 25, 2013, 20:40
Default
  #479
Senior Member
 
kumar
Join Date: Mar 2009
Posts: 112
Rep Power: 17
kumar2 is on a distinguished road
Hi Niels,

Thank you very much for your reply. Let me review my negative nut results.

Best regards

Kumar
kumar2 is offline  

Old   July 26, 2013, 05:18
Default
  #480
Member
 
vincent
Join Date: Apr 2011
Posts: 45
Rep Power: 15
vince_44 is on a distinguished road
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<Type>::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
vince_44 is offline  

Closed Thread


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
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


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