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

Not achieving to generate wave+current in OpenFOAM ESI

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 5, 2023, 06:30
Default Not achieving to generate wave+current in OpenFOAM ESI
  #1
New Member
 
Hugo
Join Date: Jun 2023
Posts: 4
Rep Power: 2
Volvoreta is on a distinguished road
Hi everyone, I am trying to do ship resistance in waves in OpenFoam2206. However I don't know how to set the current to simulate de vessel velocity. When a put a velocity in waveVelocity a ramp of water is generated and the simulation crashes. The last thing I tried is emulate the waveProperties dict of the OF.org version.
Code:
/*---------------------------------------------------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  v2206                                 |
|   \\  /    A nd           | Website:  www.openfoam.com                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    object      waveProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

inlet
{
    alpha           alpha.water;

    waveModel       cnoidal;

    nPaddle         1;

    waveHeight      0.00;

    waveAngle       0.0;

    rampTime        2.0;

    activeAbsorption yes;

    wavePeriod      1.0;

    // Flow Current Parameters
    flowCurrent
    {
        type           velocity;
        U              (-2.0 0.0 0.0);  // Current velocity components in (x, y, z) directions
    }
}

outlet
{
    alpha           alpha.water;

    waveModel       shallowWaterAbsorption;

    nPaddle         1;
}


// ************************************************************************* //
I add an example error. When I do not add velocity the wave is well generated, as can be seen in "WavesNoSpeed".

I know that with OF.org version can be done, but I trying to do it with an overSet which is not available for the foundation version. If anyone has an idea of how could be solved or where is the error, i would be glad to listen to.

Thanks in advance!
Attached Images
File Type: jpg RWerror.jpg (33.5 KB, 13 views)
File Type: jpg WavesNoSpeed.jpg (48.1 KB, 16 views)
Volvoreta is offline   Reply With Quote

Reply

Tags
current, openfoam esi, wave generation

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Map of the OpenFOAM Forum - Understanding where to post your questions! wyldckat OpenFOAM 10 September 2, 2021 05:29
Generate Focused Wave Freya REEF3D 10 August 18, 2021 04:26
OpenFOAM course for beginners Jibran OpenFOAM Announcements from Other Sources 2 November 4, 2019 08:51
generate linear wave in fluent happyqj FLUENT 1 March 18, 2012 04:25
OpenFOAM Debian packaging current status problems and TODOs oseen OpenFOAM Installation 9 August 26, 2007 13:50


All times are GMT -4. The time now is 23:31.