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

[waves2Foam] is there a way to force the outlet relaxation zone theoretical?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 11, 2022, 06:22
Default is there a way to force the outlet relaxation zone theoretical?
  #1
New Member
 
eunchong
Join Date: Feb 2022
Posts: 8
Rep Power: 4
dmschd153246 is on a distinguished road
Hello All,
I'm beginner in waves2foam and trying to create a 2D stokes 5th wave.

As far as I know, the relaxation at the outlet forced to kill the waves like sponge layer.(where the velocity vector is set of 0 and based on the position of the still water level.)



but what I'm trying to do is force the outlet to follow the theoretical formula as inlet relaxation zone.



If anyone knows this problem, I'd really appreciate it if you could let me know.
thank you.



Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  1.5                                   |
|   \\  /    A nd           | Web:      http://www.OpenFOAM.org               |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    object      environmentalProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

seaLevel    0.00;

// A list of the relaxation zones in the simulation. The parameters are given
// in <name>Coeffs below.
relaxationNames (inlet outlet);

initializationName outlet;

inletCoeffs
{
    waveType    stokesFifth;  
    Tsoft       2;
    period      2;
    depth       3.5;
    direction   (1.0 0 0);
    phi         0.000000;
    height      0.0623;
    stokesDrift 0.0; 
  
    
    // Specifications on the relaxation zone shape and relaxation scheme
    relaxationZone
    {
        relaxationScheme Spatial;
        relaxationShape  Rectangular;
        beachType        Empty;
    
        relaxType   INLET;
        startX      (0 -1 0);
        endX        (6.5 1 0);
        orientation      (1.0 0.0 0.0);
    }
};

outletCoeffs
{
    waveType    potentialCurrent;
    U           (0 0 0);
    Tsoft       2;
    relaxationZone
    {
        relaxationScheme Spatial;
        relaxationShape  Rectangular;
        beachType        Empty;
    
        relaxType   OUTLET;
        startX      (33.5 -1 0);
        endX        (40 1 0);
        orientation      (1.0 0.0 0.0);
    }
};
dmschd153246 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


Similar Threads
Thread Thread Starter Forum Replies Last Post
PIMPLE Stability CallumG OpenFOAM Running, Solving & CFD 3 July 16, 2022 04:17
outlet pressure Boundary settings -velocity streamline under ambient temp.conditions Vishnu_bharathi CFX 12 November 21, 2017 06:56
[Other] How to create an MRF zone ? aminem OpenFOAM Meshing & Mesh Conversion 2 December 8, 2014 10:45
[Commercial meshers] fluentMeshToFoam multidomain mesh conversion problem Attesz OpenFOAM Meshing & Mesh Conversion 12 May 2, 2013 10:52
what the result is negatif pressure at inlet chong chee nan FLUENT 0 December 29, 2001 05:13


All times are GMT -4. The time now is 18:51.