CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

How to use waveMakerPiston and irregularMultiDirectional in openfoam ?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 16, 2022, 11:21
Default How to use waveMakerPiston and irregularMultiDirectional in openfoam ?
  #1
New Member
 
Join Date: May 2022
Posts: 29
Rep Power: 4
cfd_saad is on a distinguished road
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;
    }
}


// ************************************************************************* //
The conditions in the leftwall, generate only one wave ? How can I generate multiple waves by indicating the speed in x and y of the piston ?

- 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!!
cfd_saad is offline   Reply With Quote

Old   August 18, 2022, 09:53
Default
  #2
New Member
 
Join Date: May 2022
Posts: 29
Rep Power: 4
cfd_saad is on a distinguished road
any ideas ?
cfd_saad is offline   Reply With Quote

Old   August 24, 2022, 05:40
Default
  #3
New Member
 
Join Date: May 2022
Posts: 29
Rep Power: 4
cfd_saad is on a distinguished road
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
cfd_saad 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



All times are GMT -4. The time now is 01:13.