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

Ramp-up time for Stokes 2 wave propagation using interFoam in OpenFOAM-6

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 26, 2019, 05:39
Default Ramp-up time for Stokes 2 wave propagation using interFoam in OpenFOAM-6
  #1
piR
New Member
 
Pierre Erdeven
Join Date: Apr 2019
Location: France
Posts: 1
Rep Power: 0
piR is on a distinguished road
Hi all,

I am quite new in the OpenFOAM world. I am trying to compute a Stokes 2 wave, which propagates along x<0 in a 3D domain. I use the interFoam solver of OpenFOAM-6.

I already got some results without damping zone at outlet and by initializing the wave in the whole domain. Of course this leads to a lot of reflections from this boundary. Before tackling the problem of body forces I want first to add a ramp-up time to the wave propagation, in order to see it moving from inlet to outlet.

I tried to use the following inlet boundary condition in U.orig:
Code:
    inlet
    {
        // https://cpp.openfoam.org/v6/waveVelocityFvPatchVectorField_8H_source.html
        type            waveVelocity;
        origin          (18.0145 7.50604166667 0); // origin of the wave coordinate system
        direction       (1 0 0); // direction of the mean flow
        speed           2.6034; // speed of the mean flow
        waves
        (
            Stokes2
            {
                length      5.147;
                amplitude   0.081;
                phase       0;
                angle       3.141593; // 180 deg = 3.141593 rad
            }
        );
        // ramp
        // {
        //     type        linearRamp;
        //     start       0;
        //     duration    1.977;
        // }
        scale       table ((-18.0145 0) (18.0145 0)); // From outlet to inlet set: 0
        crossScale  constant 1;
    }
I noticed that if the speed is 0, the solution crashes giving an invalid pointer issue. If I understood well, it is a kind of division by 0, however we should have the possibility to set no mean flow, i.e. no current.
I also noticed that using the scale function totally flattens the waves.

So, my questions are:
  1. Is a ramp-up time possible in OpenFOAM-6 to control the propagation of the wave?
  2. Is the use of the scale function correct for this purpose? If not, how can I reach such a result?
  3. Why does setting 0 speed lead to an invalid pointer issue?


Do not hesitate to ask me if you need more information.
Thanks in advance for any ideas!

Pierre

Last edited by piR; April 26, 2019 at 09:25.
piR is offline   Reply With Quote

Old   September 27, 2020, 13:18
Default
  #2
New Member
 
Virag Mishra
Join Date: Mar 2014
Posts: 8
Rep Power: 12
Virag is on a distinguished road
Did you get any clarification on this?
Virag is offline   Reply With Quote

Reply

Tags
hydrodynamic, interfoam, openfoam-6, ramp-up, wave


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
courant number increases to rather large values 6863523 OpenFOAM Running, Solving & CFD 22 July 6, 2023 00:48
Setting up Lid driven Cavity Benchmark with 1M cells for multiple cores puneet336 OpenFOAM Running, Solving & CFD 11 April 7, 2019 01:58
Star cd es-ice solver error ernarasimman STAR-CD 2 September 12, 2014 01:01
Moving mesh Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 07:20
Upgraded from Karmic Koala 9.10 to Lucid Lynx10.04.3 bookie56 OpenFOAM Installation 8 August 13, 2011 05:03


All times are GMT -4. The time now is 16:25.