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

[waves2Foam] How to set speed at Inlet in waves2Foam, like we set in interfoam, U dictionary

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

Like Tree1Likes
  • 1 Post By ngj

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 14, 2016, 09:03
Default How to set speed at Inlet in waves2Foam, like we set in interfoam, U dictionary
  #1
New Member
 
Nemo
Join Date: Jul 2016
Posts: 5
Rep Power: 8
Nemo_CFDEngineer is on a distinguished road
Dear Foamers

I want to simulate ship with 3DoF using waveDyMFoam but before that I am testing it on a cube(2x2x2m).

I was able to genrate wave by fixing my cube using waveFoam. Now I want to give speed (to water) like in interFoam but I am unable to do that. I have gone through almost all threads related to waveFoam but no success.

I am also testing waveDyMFoam on cube but a bit confuse about dynamic dict like inner and outer distance, restrain damper coeff

Please, can someone show me some light about this. I will be very thankfull
Nemo_CFDEngineer is offline   Reply With Quote

Old   January 9, 2017, 01:01
Default How to set speed at Inlet in waves2Foam, like we set in interfoam, U dictionary
  #2
New Member
 
Nemo
Join Date: Jul 2016
Posts: 5
Rep Power: 8
Nemo_CFDEngineer is on a distinguished road
Dear Foamer

How to set velocity U in waveDyMFoam like in interDyMFoam. Please guide me for this.

Regards
Nemo
Nemo_CFDEngineer is offline   Reply With Quote

Old   January 13, 2017, 07:02
Default How to set speed at Inlet in waves2Foam, like we set in interfoam, U dictionary
  #3
New Member
 
Nemo
Join Date: Jul 2016
Posts: 5
Rep Power: 8
Nemo_CFDEngineer is on a distinguished road
How to give velocity to water in waves2Foam
Nemo_CFDEngineer is offline   Reply With Quote

Old   January 13, 2017, 08:05
Default
  #4
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,894
Rep Power: 35
ngj will become famous soon enoughngj will become famous soon enough
The question is too ambiguous to be answered. If you expect to be helped, you need to put an effort into the questions you ask.

Kind regards,

Niels
__________________
Please note that I do not use the Friend-feature, so do not be offended, if I do not accept a request.
ngj is offline   Reply With Quote

Old   January 13, 2017, 08:45
Default How to set speed at Inlet in waves2Foam, like we set in interfoam, U dictionary
  #5
New Member
 
Nemo
Join Date: Jul 2016
Posts: 5
Rep Power: 8
Nemo_CFDEngineer is on a distinguished road
Dear Dr. Jacobsen,

Thank you for such a good tool. And I apologize for the incomplete question which I posted earlier. I have successfully simulated my ship using waveDyMFoam using default values. But my project work also require water speed with waves.

Default U dictionary is like this:

Code:
internalField   uniform (0 0 0);

boundaryField
{
    atmosphere
    {
        type            pressureInletOutletVelocity;
        value           uniform (0 0 0);
    }
    outlet
    {
        type            fixedValue;
        value           uniform (0 0 0);
    }
    inlet
    {
        type            waveVelocity;
        refValue        uniform (0 0 0);
        refGradient     uniform (0 0 0);
        valueFraction   uniform 1;
        value           uniform (0 0 0);

    }
    bottom
    {
        type            fixedValue;
        value           uniform (0 0 0);
    }
    left
    {
        type            symmetryPlane;
    }
    right
    {
        type            symmetryPlane;
    }
    hull
    {
        type            movingWallVelocity;
        value           uniform (0 0 0);
    }
}
I have tried to put some value at inlet:

Code:
inlet
    {
       type            waveVelocity;
        refValue        uniform (-0 0 0);
        refGradient     uniform (0 0 0);
        valueFraction   uniform 1;
        value           uniform (3 0 0);
But it only setting value at inlet. Should I need to change BC (waveVelocity).
I need to set water speed in all water domain like we do in InterFoam
Please guide me for this. I will be very thankful
Thank you so much in advance
Mohd Naimuddin
Nemo_CFDEngineer is offline   Reply With Quote

Old   January 15, 2017, 13:58
Default
  #6
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,894
Rep Power: 35
ngj will become famous soon enoughngj will become famous soon enough
Good evening.

@Mohd: The easiest is likely to make your own combination of wave theories and a steady current. I am saying this, because the wave numbers changes due to Doppler effects and this is not included in the wave theories (except for streamFunction).

Kind regards,

Niels
fumiya likes this.
__________________
Please note that I do not use the Friend-feature, so do not be offended, if I do not accept a request.

Last edited by wyldckat; August 25, 2018 at 08:13. Reason: removed answers to other posts that were on the main thread
ngj is offline   Reply With Quote

Reply

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
[mesh manipulation] Add / Remove faces from patch , create new djh2 OpenFOAM Meshing & Mesh Conversion 9 November 8, 2020 17:30
how to set up Hydrostatic pressure distribution in interFoam? wes1204 OpenFOAM Pre-Processing 23 January 31, 2020 16:36
Output file's Inlet Speed differs from my input Blooper SU2 1 July 20, 2014 14:50
2D Low Speed Airfoil Problem when altering Inlet mike wilson CFX 12 August 3, 2010 12:06
Env variable not set gruber2 OpenFOAM Installation 5 December 30, 2005 05:27


All times are GMT -4. The time now is 15:46.