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

[waves2Foam] how to build a time-dependent wave input under wave2Foam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 29, 2014, 22:41
Default how to build a time-dependent wave input under wave2Foam
  #1
Member
 
Albert Tong
Join Date: Dec 2010
Location: Perth, WA, Australia
Posts: 76
Blog Entries: 1
Rep Power: 15
tfuwa is on a distinguished road
Dear Niels and everyone,

Could you please comment on how to build a time-dependent wave input under wave2Foam, such as a wave group or wave pocket as shown bellow? Thank you very much (sorry if this has been covered in this thread or anywhere else, and in that case a link would be much appreciated).
Attached Images
File Type: jpg wavePocket.jpg (27.8 KB, 56 views)
__________________
Kind regards,

Albert
tfuwa is offline   Reply With Quote

Old   September 30, 2014, 02:48
Default
  #2
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,900
Rep Power: 37
ngj will become famous soon enoughngj will become famous soon enough
Good morning Albert,

It puzzles me a bit that you consider a wave package more time varying than other waves, but besides that you have two options:

1. Use the focusing functionality for the phases for the generation of irregular waves. (see: waves2Foam/src/waves2Foam/waveTheories/irregular/ and http://openfoamwiki.net/index.php/Co...hasing_Methods).

2. Create a new wave theory that is based on the wanted algebraic formulation. You could e.g. start from the template placed in waves2Foam/doc/templateWaveTheory and use the script as follows:

Code:
./makeNewWaveTheory albertsWave
Here, "albertsWave" will be the future name of the wave theory in e.g. waveProperties.input. Note, that this template does not (currently) create a matching setWaveProperties file, but you might want to pre-compute some variables. The setWaveProperties-classes are located in waves2Foam/src/waves2FoamProcessing/preProcessing/setWaveProperties and follows the same code structure as the wave theories.

Good luck,

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

Old   September 30, 2014, 05:46
Default
  #3
Member
 
Albert Tong
Join Date: Dec 2010
Location: Perth, WA, Australia
Posts: 76
Blog Entries: 1
Rep Power: 15
tfuwa is on a distinguished road
Quote:
Originally Posted by ngj View Post
Good morning Albert,

It puzzles me a bit that you consider a wave package more time varying than other waves, but besides that you have two options:

1. Use the focusing functionality for the phases for the generation of irregular waves. (see: waves2Foam/src/waves2Foam/waveTheories/irregular/ and http://openfoamwiki.net/index.php/Co...hasing_Methods).

2. Create a new wave theory that is based on the wanted algebraic formulation. You could e.g. start from the template placed in waves2Foam/doc/templateWaveTheory and use the script as follows:

Code:
./makeNewWaveTheory albertsWave
Here, "albertsWave" will be the future name of the wave theory in e.g. waveProperties.input. Note, that this template does not (currently) create a matching setWaveProperties file, but you might want to pre-compute some variables. The setWaveProperties-classes are located in waves2Foam/src/waves2FoamProcessing/preProcessing/setWaveProperties and follows the same code structure as the wave theories.

Good luck,

Niels
Hi Niels,

Many thanks for your prompt reply. I am interested in wake pocket as I am planing to simulate extreme waves and in the same time to save computational effort.

I will try to see if I have any luck. Thank you.
__________________
Kind regards,

Albert
tfuwa 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
AMI speed performance danny123 OpenFOAM 21 October 24, 2020 04:13
pressure in incompressible solvers e.g. simpleFoam chrizzl OpenFOAM Running, Solving & CFD 13 March 28, 2017 05:49
Stuck in a Rut- interDyMFoam! xoitx OpenFOAM Running, Solving & CFD 14 March 25, 2016 07:09
simpleFoam error - "Floating point exception" mbcx4jc2 OpenFOAM Running, Solving & CFD 12 August 4, 2015 02:20
plot over time fferroni OpenFOAM Post-Processing 7 June 8, 2012 07:56


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