CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Announcements from Other Sources

Release of a Wave Generation and Absorption Toolbox for OF

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

Like Tree16Likes

Reply
 
LinkBack Thread Tools Display Modes
Old   April 14, 2015, 15:34
Default
  #41
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Deltares, Delft, The Netherlands
Posts: 1,609
Rep Power: 25
ngj will become famous soon enoughngj will become famous soon enough
Dear all,

I have now streamlined the code in setWaveProperties related to irregular waves (as of revision 2066). This means that I have removed code duplication, but also that the interface for irregular waves is slightly changed.

Instead of the old interface, it is now necessary to add the following subDict to the waveProperties dictionary, e.g. immediately prior to the definition of the relaxation zone:

Code:
    frequencyAxis
    {
        writeSpectrum true; // false = default value

        discretisation cosineStretchedFrequencyAxis; // equidistantFrequencyAxis;

        //lowerFrequencyCutoff 0.1;
        //upperFrequencyCutoff 2;
    }
There is no functional change in the execution of the program, i.e. the frequency discretisation is unchanged and the default values of the lower and upper bounds are still 0.3fp and 3.0fp, where fp is the peak frequency.

The flag

Code:
discretisation equidistantFrequencyAxis;
is identical to

Code:
equidistantFrequencyAxis on;
and the flag

Code:
discretisation cosineStretchedFrequencyAxis;
is identical to

Code:
equidistantFrequencyAxis off;
I am sorry for the inconvenience, but these changes will eventually become clear.

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   July 12, 2015, 07:54
Default
  #42
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Deltares, Delft, The Netherlands
Posts: 1,609
Rep Power: 25
ngj will become famous soon enoughngj will become famous soon enough
Good afternoon,

With a few modifications the source of waves2Foam now compiles under OF2.4.0 and the solver waveFoam is also created. The solver porousWaveFoam is to be added at a later stage.

Disclaimer: I have only tested the waveFlume tutorial and it executes. I have not validated the correctness of the wave propagation in OF2.4.0.

The commit is svn-revision 2072.

Furthermore, the OF-versions OF-1.6-ext, OF-1.7, OF-1.7.1 and OF-2.0 is no longer being tested, when modifications are made to waves2Foam. This does not explicitly mean that the code will not compile. See the following section on the wiki: http://openfoamwiki.net/index.php/Co...Versions_of_OF

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

Reply
Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
energy absorption instead generation bohis FLUENT 1 August 29, 2009 14:11


All times are GMT -4. The time now is 11:29.