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

[waves2Foam] Modifying waves2Foam to simulate focused waves

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By AR91

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 4, 2021, 13:37
Default Modifying waves2Foam to simulate focused waves
  #1
New Member
 
Mateusz
Join Date: Jan 2020
Posts: 10
Rep Power: 6
Metqeu is on a distinguished road
Hello everyone,
I'm trying to simulate focused waves groups in NWTs using this toolbox. I've seen it being used by plenty of researchers who used OF to study these waves. Most of them however did not explain how this library was modified to support modelling of focused waves.
I found a lot of very useful information at the Chalmers website, that allowed me to modify the existing irregular wave class. Now I have a fully working class for generating waves based on New Wave theory, with individual components calculated using first order Stokes theory.
I would love to use second order theory, however the irregular wave class in waves2foam does not support it (I think so at least). I've seen it being used in literature, but no detail was shared with regards to how it was achieved.
Has anyone on this forum dealt with this problem already, or has an idea how to implement it? I would really appreciate any help.
Thanks
Metqeu is offline   Reply With Quote

Old   February 5, 2021, 02:53
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
Hi Mateusz,

It is correct that it is not implemented in waves2Foam, since second-order summation takes a very long time to execute. This does not mean that it is not possible and I recommend that you start with Sharma and Dean (1981) as reference to second-order effects. Note that there is a phase-focused phase class in waves2Foam, however, the wave spectra were extended to account for the NewWave Theory.

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   February 8, 2021, 13:01
Default
  #3
New Member
 
Arun Kumar
Join Date: Sep 2019
Location: Dundee, Scotland
Posts: 15
Rep Power: 6
AR91 is on a distinguished road
Quote:
Originally Posted by ngj View Post
Hi Mateusz,

It is correct that it is not implemented in waves2Foam, since second-order summation takes a very long time to execute. This does not mean that it is not possible and I recommend that you start with Sharma and Dean (1981) as reference to second-order effects. Note that there is a phase-focused phase class in waves2Foam, however, the wave spectra were extended to account for the NewWave Theory.

Kind regards

Niels
Dear Dr. Jacobsen,
Thanks for the amazing waves2Foam tool. I am using OpenFOAM-4.0 along with waves2Foam. I have been trying to incorporate a current into the stokesFirst wave theory. I have made the necessary changes and placed the new .C and .H files in the new folder inside waves2Foam/src/waves2Foam/waveTheories/regular/. Then I modified the Make/files inside waves2Foam/src/waves2Foam to include the new wave theory. I repeated the same steps for the wave properties as well (inside waves2Foam/src/waves2FoamProcessing/preProcessing/setWaveProperties) and modified the corresponding Make/files document too. The compilation runs successfully and I get the object files in the required folders too. However, when I run setWaveParameters, I am met with the following output:
Code:
/*---------------------------------------------------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  4.0                                   |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
Build  : 4.0
Exec   : setWaveParameters
Date   : Feb 08 2021
Time   : 17:25:25
Host   : "Ubuntu"
PID    : 1137
Case   : /home/AR91/OpenFOAM/AR91-4.0/run/applications/utilities/waves2Foam/tutorials/waveFoam/wavewithcurrent
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Allowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time


Reading g

Reading waveProperties



--> FOAM FATAL ERROR: 
Unknown wave property type stokesFirstwCurrentProperties

Valid wave property types are :

16
(
solitaryFirstProperties
stokesSecondProperties
cnoidalFirstProperties
combinedWavesProperties
oceanWave3DProperties
chappelear1962Properties
potentialCurrentProperties
irregularProperties
bichromaticFirstProperties
stokesSecondModulationProperties
streamFunctionProperties
bichromaticSecondProperties
stokesFirstStandingProperties
externalSourceProperties
stokesFirstProperties
stokesFifthProperties
)


    From function setWaveProperties::New(const fvMesh&, const Time&, ...)
    in file preProcessing/setWaveProperties/setWaveProperties.C at line 276.

FOAM exiting
Kindly let me know if you have any advice regarding the mistake I am making. Thank you very much.
Regards,
Arun.
irengclenk likes this.
AR91 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
[waves2Foam] Is it possible to specify as an input to OceanWave3D a focused waves? katakgoreng OpenFOAM Community Contributions 2 December 3, 2015 13:11
WAVES GENERATION IN A PORT OR BRAKE WAVES. important tecnicaf1 STAR-CCM+ 1 May 27, 2011 07:32
CFD Animations of breaking waves Dommermuth Main CFD Forum 0 June 17, 2009 11:47
CFD Animations of waves, ships, and turbulence---- Douglas Dommermuth Main CFD Forum 23 January 8, 2008 12:41
Terrible Mistake In Fluid Dynamics History Abhi Main CFD Forum 12 July 8, 2002 09:11


All times are GMT -4. The time now is 05:08.