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

[waves2Foam] impose a specific time series of surface elevation to the inlet

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 29, 2016, 05:10
Default impose a specific time series of surface elevation to the inlet
  #1
New Member
 
Maxim Van Zonhoven
Join Date: Nov 2015
Posts: 4
Rep Power: 11
MaximVZ is on a distinguished road
Hi Niels,

We would like to impose a specific time series of surface elevation to the inlet of a numerical wave tank in waves2foam.

Is there an elegant way to insert a specific amplitude and phase spectrum in the irregular wave theory to built the desired signal out of linear components?
i.e. insert an array of amplitudes and phases corresponding to a number of discrete frequencies.
Maybe we could add these arrays in the source code instead of using the options available by default (JONSWAP, random phase, focus point,...)? Or load the arrays out of a text file in some way.

Also we are made aware of an option called externalWave or external wave forcing.
However, we are not able to find documentation on this topic.
Should we consult the source code to learn more about this?

Thanks in advance,

Maxim
MaximVZ is offline   Reply With Quote

Old   February 29, 2016, 11:42
Default
  #2
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 38
ngj will become famous soon enoughngj will become famous soon enough
Hallo Maxim,

There is currently no way of doing it with the implementation in waves2Foam, but it should be fairly straightforward for you to make the implementation yourself.

The external solver OceanWave3D does have a functionality along the lines of what you want to achieve. The use of this code, however, is only given through examples provided with the OceanWave3D code. The coupling with waves2Foam is described in the doc-folder in waves2Foam.

Please note that we provide background on the coupling, OceanWave3D and waves2Foam in our yearly course by Deltares. The next is likely to take place in October.

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   Reply With Quote

Old   April 16, 2025, 02:23
Question Writing custom waveProperties
  #3
New Member
 
Elie Ronge
Join Date: Jan 2025
Posts: 1
Rep Power: 0
elieronge is on a distinguished road
Hi Niels,


I am new to wave2Foam and asking myself the same question on custom time series.


What if we bypass setWaveParameters and write the waveProperties file ourselves using the components of a FFT ? Would there be something wrong with that method ?



Kind regards,


Elie
elieronge is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Inconsistencies in reading .dat file during run time in new injection model Scram_1 OpenFOAM 0 March 23, 2018 22:29
[waves2Foam] free surface elevation seems to decrease as the distance from the inlet gautami OpenFOAM Community Contributions 8 October 7, 2016 13:25
How to write k and epsilon before the abnormal end xiuying OpenFOAM Running, Solving & CFD 8 August 27, 2013 15:33
Upgraded from Karmic Koala 9.10 to Lucid Lynx10.04.3 bookie56 OpenFOAM Installation 8 August 13, 2011 04:03
IcoFoam parallel woes msrinath80 OpenFOAM Running, Solving & CFD 9 July 22, 2007 02:58


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