|
[Sponsors] |
How to use waveMakerPiston and irregularMultiDirectional in openfoam ? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 16, 2022, 11:21 |
How to use waveMakerPiston and irregularMultiDirectional in openfoam ?
|
#1 |
New Member
Join Date: May 2022
Posts: 29
Rep Power: 4 |
Hi Foamers,
I am studying a breakwater and I would like to generate irregular waves (JONSWAP spectra), I found in the tutorials, in the waves folder the following : - waveMakerPiston, uses a dynamic mesh with the following pointDisplacement file in 0.orig : Code:
/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: v2012 | | \\ / A nd | Website: www.openfoam.com | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class pointVectorField; object pointDisplacement; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dimensions [0 1 0 0 0 0 0]; internalField uniform (0 0 0); boundaryField { bottom1 { type zeroGradient; } bottom2 { type fixedValue; value uniform (0 0 0); } leftwall { type waveMaker; value uniform (0 0 0); motionType piston; n (1 0 0); waveHeight 0.06; initialDepth 0.25; wavePeriod 2.0; rampTime 2.0; wavePhase 0; } back { type empty; } front { type empty; } rightwall { type fixedValue; value uniform (0 0 0); } top { type zeroGradient; } } // ************************************************************************* // - irregularMultiDirectional, generates irregular waves in a static mesh, I don't understand how this file works, how can I input a JONSWAP type spectra in this file ? I don't post it here because it is too long (it is here in waveProperties file : https://develop.openfoam.com/Develop...ction/constant ) Thanks!! |
|
August 18, 2022, 09:53 |
|
#2 |
New Member
Join Date: May 2022
Posts: 29
Rep Power: 4 |
any ideas ?
|
|
August 24, 2022, 05:40 |
|
#3 |
New Member
Join Date: May 2022
Posts: 29
Rep Power: 4 |
here you can found information on how to generate irregular waves with a piston and without a piston :
https://knu.readthedocs.io/en/latest...eurPiston.html |
|
|
|