|
[Sponsors] |
[waves2Foam] Modifying waves2Foam to simulate focused waves |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
February 4, 2021, 14:37 |
Modifying waves2Foam to simulate focused waves
|
#1 |
New Member
Mateusz
Join Date: Jan 2020
Posts: 10
Rep Power: 7 |
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 |
|
February 5, 2021, 03:53 |
|
#2 |
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37 |
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. |
|
February 8, 2021, 14:01 |
|
#3 | |
New Member
Arun Kumar
Join Date: Sep 2019
Location: Dundee, Scotland
Posts: 15
Rep Power: 7 |
Quote:
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 Regards, Arun. |
||
May 27, 2024, 10:35 |
|
#4 |
New Member
Join Date: May 2024
Posts: 2
Rep Power: 0 |
Hello, I am also using waves2Foam to simulate focused wave groups. I only found phasefocusing in waveFoamGABC. However, while reading papers, I noticed that waves2Foam can use an iterative method to achieve phase focusing. Is this method available in waves2Foam? Could you share the link to the Chalmers website? Thank you very much!
|
|
May 28, 2024, 13:22 |
|
#5 |
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37 |
Hi,
Please read the waves2Foam manual on ResearchGate and/or the code to waves2Foam. 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. |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
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 14:11 |
WAVES GENERATION IN A PORT OR BRAKE WAVES. important | tecnicaf1 | STAR-CCM+ | 1 | May 27, 2011 08:32 |
CFD Animations of breaking waves | Dommermuth | Main CFD Forum | 0 | June 17, 2009 12:47 |
CFD Animations of waves, ships, and turbulence---- | Douglas Dommermuth | Main CFD Forum | 23 | January 8, 2008 13:41 |
Terrible Mistake In Fluid Dynamics History | Abhi | Main CFD Forum | 12 | July 8, 2002 10:11 |