CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Community Contributions (https://www.cfd-online.com/Forums/openfoam-community-contributions/)
-   -   [waves2Foam] how to build a time-dependent wave input under wave2Foam (https://www.cfd-online.com/Forums/openfoam-community-contributions/208053-how-build-time-dependent-wave-input-under-wave2foam.html)

tfuwa September 29, 2014 22:41

how to build a time-dependent wave input under wave2Foam
 
1 Attachment(s)
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).

ngj September 30, 2014 02:48

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

tfuwa September 30, 2014 05:46

Quote:

Originally Posted by ngj (Post 512402)
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.


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