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

[OLAFLOW] The OLAFOAM Thread

Register Blogs Community New Posts Updated Threads Search

Like Tree16Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 5, 2017, 22:13
Default
  #181
Senior Member
 
Pablo Higuera
Join Date: Jan 2011
Location: Auckland
Posts: 627
Rep Power: 19
Phicau is on a distinguished road
Hi Han,

again, porosity does not have anything to do with your problem, it needs to be removed. Then you can modify snappyHexMeshDict to use core.stl or any stl file instead of caisson.stl.

Pablo
Phicau is offline   Reply With Quote

Old   December 7, 2017, 09:27
Default
  #182
New Member
 
Muhammad Hanis
Join Date: Apr 2017
Location: Kuala Lumpur, Malaysia
Posts: 9
Rep Power: 9
mhanis38 is on a distinguished road
Dear Pablo,

After finish running the simulation, I got some weird result on the paraview as figure attached.

Seems it like the water was absorbed and at the same time it generate wave from the vertical wall.

May I know why the result can be like this ?

Thank you.

Kind regards,
Han
Attached Images
File Type: jpg weird.jpg (29.5 KB, 83 views)
File Type: jpg wall.jpg (39.0 KB, 76 views)
mhanis38 is offline   Reply With Quote

Old   December 10, 2017, 21:09
Default
  #183
Senior Member
 
Pablo Higuera
Join Date: Jan 2011
Location: Auckland
Posts: 627
Rep Power: 19
Phicau is on a distinguished road
Hi Han,

you should check carefully your boundary conditions, mesh quality and cell resolution near the wall.

Best,

Pablo
Phicau is offline   Reply With Quote

Old   January 3, 2018, 23:57
Default
  #184
New Member
 
Helen
Join Date: Jan 2018
Posts: 3
Rep Power: 8
helenxing is on a distinguished road
Hi Pablo,

I am new in using OLAFOAM and trying to simulate wave current interactions. I found that the wave length change is captured very well when an opposite current is applied to the waves. But the current effect on wave height is not captured ( under no breaking condition)? If increases the current speed, wave breaking is not captured neither. Any tips?
helenxing is offline   Reply With Quote

Old   January 6, 2018, 04:09
Default
  #185
New Member
 
Ju Hyun Bae
Join Date: Feb 2016
Posts: 5
Rep Power: 10
kenneth0811 is on a distinguished road
Dear helenxing and OLAFOAM user.

I am also a OLAFOAM user and I am studying the interaction wave-current-submerged breakwater. I compared that Umeyama(2011)'s experiment to vertify the validity of the wave-current interaction of OLAFOAM.
I taged two figure that compared with Umeyama(2011)'s experiment.

I do not know if this reply will help you, But I hope you can refer to it.



Umeyama, M. (2011). Coupled PIV and PTV measurements of particle velocities and trajectories for surface waves following a steady current, Journal of Waterway, Port, Coastal, and Ocean Engineering, ASCE, 137(2), 85-94.
Attached Images
File Type: png Umeyama water level.PNG (80.1 KB, 75 views)
File Type: png Umeyama velocity.PNG (111.7 KB, 72 views)
kenneth0811 is offline   Reply With Quote

Old   January 8, 2018, 09:17
Default
  #186
Senior Member
 
Pablo Higuera
Join Date: Jan 2011
Location: Auckland
Posts: 627
Rep Power: 19
Phicau is on a distinguished road
Dear users,

due to naming issues olaFoam is now olaFlow ( Releasing olaFlow ), therefore, I encourage you to use the new version for which I will be releasing new features and enhancements soon. The only change that you will notice when using olaFlow is that the solvers are called olaFlow and olaDyMFlow instead of olaFoam and olaDyMFoam.

Hi Helen,

at this point I am still developing the wave-current interaction part. It is great that you noticed this, I will check on it and will release future updates in the olaFlow project.

That is a remarkable agreement Ju Hyun Bae, thanks for sharing!

Best,

Pablo
Phicau is offline   Reply With Quote

Old   January 16, 2018, 21:37
Default
  #187
New Member
 
Helen
Join Date: Jan 2018
Posts: 3
Rep Power: 8
helenxing is on a distinguished road
Ju Hyun Bae, thank you for your sharing
helenxing is offline   Reply With Quote

Old   January 16, 2018, 21:39
Default
  #188
New Member
 
Helen
Join Date: Jan 2018
Posts: 3
Rep Power: 8
helenxing is on a distinguished road
Hi Pablo,

Thank you for your reply. Looking forward to the updates !
helenxing is offline   Reply With Quote

Old   January 18, 2018, 00:48
Default Multiple inlet set-up in OLAFoam
  #189
Member
 
Lewis
Join Date: Jun 2016
Posts: 34
Rep Power: 9
Lewis Liang is on a distinguished road
Dear Pablo,

I have been learn to use OLAFoam by myself for some time. And I plan to build up a case of 3D wave tank with multiple inlet, like two separate regular wave propagating with angles. To do this, one is need to modify the waveDir as well as the absDir in constant/waveDict. Next, it is need to modify the waveAlpha in 0.org/alpha.water. However, the initial parameter of each inlet is read from the only waveDict file in constant folder. It seems that set-up of multiple inlet here is not working. So, for this situation, how can I fix this problem?

Thanks in advance!

Cheers!

Lewis
Lewis Liang is offline   Reply With Quote

Old   January 18, 2018, 01:29
Default
  #190
Senior Member
 
Pablo Higuera
Join Date: Jan 2011
Location: Auckland
Posts: 627
Rep Power: 19
Phicau is on a distinguished road
Hi Lewis,

thanks for using olaFoam. As you may know, olaFoam is now called olaFlow, so I suggest that you switch to the new version, as all new developments will be released there:

https://github.com/phicau/olaFlow

Regarding your question, olaFlow (and olaFoam before) is ready to handle multiple inlets, just change the name of the dictionary for each one, e.g.:

Code:
inlet1
    {
        type            waveAlpha;
        waveDictName    waveDict1;
        value           uniform 0;
    }
inlet2
    {
        type            waveAlpha;
        waveDictName    waveDict2;
        value           uniform 0;
    }
Let me know if this is not working as intended.

Best,

Pablo
Lewis Liang likes this.
Phicau is offline   Reply With Quote

Old   January 18, 2018, 23:53
Default
  #191
Member
 
Lewis
Join Date: Jun 2016
Posts: 34
Rep Power: 9
Lewis Liang is on a distinguished road
Quote:
Originally Posted by Phicau View Post
Hi Lewis,

thanks for using olaFoam. As you may know, olaFoam is now called olaFlow, so I suggest that you switch to the new version, as all new developments will be released there:

https://github.com/phicau/olaFlow

Regarding your question, olaFlow (and olaFoam before) is ready to handle multiple inlets, just change the name of the dictionary for each one, e.g.:

Code:
inlet1
    {
        type            waveAlpha;
        waveDictName    waveDict1;
        value           uniform 0;
    }
inlet2
    {
        type            waveAlpha;
        waveDictName    waveDict2;
        value           uniform 0;
    }
Let me know if this is not working as intended.

Best,

Pablo
Hi, Pablo!

Thanks for your tips! It is working now.

I will switch to the new solver later on.

Cheers!

Lewis
Lewis Liang is offline   Reply With Quote

Old   January 30, 2018, 03:37
Default Wave height in following or opposing current
  #192
Member
 
Lewis
Join Date: Jun 2016
Posts: 34
Rep Power: 9
Lewis Liang is on a distinguished road
Dear Pablo,

From the book Ocean Engineering Science 2005 (By Bernard Le MéhautéFor), In a plane flow (2D), a following current can reduce wave height and an opposing current tends to enlarge them.

Then I run 3 sets of two dimensional cases to study the effect of different kinds of current. I found my numerical data got a the opposite results compared with the above literature results.

For this question, is it due to some numerical set-up or other specific causes?

Thanks in advance!

Lewis
Attached Images
File Type: png untitled.png (38.5 KB, 52 views)
Lewis Liang is offline   Reply With Quote

Old   January 31, 2018, 00:53
Default
  #193
New Member
 
Bryant
Join Date: Mar 2015
Posts: 7
Rep Power: 11
spf521 is on a distinguished road
Quote:
Originally Posted by ms411 View Post
Dear Pablo,
since a few weeks I am trying to simulate waves on a dike. I need your help. I read a lot of papers for similar cases. I think the boundary conditions are right and the mesh is the problem. I read in the cfd forum, that other people had the same problem, due to the orthogonality of the mesh. This was my first mesh with the following results: Picture 01 02
So I tried to create it with snappyHexMesh.There seems to be a problem with the inlet at first time step. So do you know where my fault could be? Picture 03 04

Do I have to change something in the fvschemes or in the fvsolution? I load the case in a dropbox. Would you be so nice and have a look on it, I really don't know what to do.
https://www.dropbox.com/s/68apuhz3yq..._case.zip?dl=0

Thank you very, very much and best regards.

Martin

Hi Martin,
The link is invalid, would you please add a new link? Because I met a similar problem, I was wondering if I can refer the settings in your case.
Thanks a lot!
spf521 is offline   Reply With Quote

Old   February 1, 2018, 01:19
Default
  #194
Senior Member
 
Pablo Higuera
Join Date: Jan 2011
Location: Auckland
Posts: 627
Rep Power: 19
Phicau is on a distinguished road
Hi Lewis,

I am extremely busy these days, I will take a look at it soon. Can you share your wave conditions?

Best,

Pablo
Phicau is offline   Reply With Quote

Old   February 1, 2018, 08:12
Default
  #195
Member
 
Lewis
Join Date: Jun 2016
Posts: 34
Rep Power: 9
Lewis Liang is on a distinguished road
Quote:
Originally Posted by Phicau View Post
Hi Lewis,

I am extremely busy these days, I will take a look at it soon. Can you share your wave conditions?

Best,

Pablo
Dear Pablo,

I modify the case of currentWaveFlume into a case where there is an opposing current generating from the right (outlet) to the left (inlet), and my set-up is shown below:

(1)0.org/U
Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  1.7.x                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.com                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       volVectorField;
    location    "0";
    object      U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions      [0 1 -1 0 0 0 0];

internalField   uniform (0 0 0);

boundaryField
{
    inlet
    {
        type            waveVelocity;
        waveDictName    waveDict;
        value           uniform (0 0 0);
    }
    outlet
    {
        type            waveAbsorption2DVelocity;
        uCurrent        (-0.75 0. 0.);
        value           uniform (0 0 0);
    }
    bottom
    {
        type            fixedValue;
        value           uniform (0 0 0);
    }
    atmosphere
    {
        type            pressureInletOutletVelocity;
        value           uniform (0 0 0);
    }
    frontAndBack
    {
        type            empty;
    }
}


// ************************************************************************* //
(2)constant/waveDict
Code:
/*---------------------------------------------------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  1.3                                   |
|   \\  /    A nd           | Web:      http://www.openfoam.org               |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    location    "constant";
    object      waveDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

waveType        regular;

waveTheory      StokesV;

genAbs          1;

absDir          0.0;

nPaddles        1;

waveHeight      0.10;

wavePeriod      3;

waveDir         0.0;

wavePhase       4.71238898;

uCurrent        (-0.75 0. 0.);

// ************************************************************************* //
(3)system/setFieldsDict
Code:
/*---------------------------------------------------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  1.3                                   |
|   \\  /    A nd           | Web:      http://www.openfoam.org               |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    location    "system";
    object      setFieldsDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

defaultFieldValues
(
    volScalarFieldValue alpha.water 0
    volVectorFieldValue U           (0. 0. 0.)
);

regions
(
    boxToCell
    {
        box (-10 -1 -1) (30 1 0.4);

        fieldValues
        (
            volScalarFieldValue alpha.water 1
            volVectorFieldValue U           (-0.75 0. 0.)
        );
    }
);
I also upload the numerical results related to the cases involving non-Current, following-Current and opposing-Current in paraview for comparison. Those results seem right but I am not sure why my results of wave height is opposite with regard to conclusion by Bernard Le Méhauté (2005).

Thanks in advance!

Lewis
Attached Images
File Type: jpg comparison.jpg (30.3 KB, 58 views)
Lewis Liang is offline   Reply With Quote

Old   February 4, 2018, 12:48
Default
  #196
New Member
 
hanchen shih
Join Date: Nov 2017
Posts: 2
Rep Power: 0
hankshih is on a distinguished road
Dear Pablo,

I want to simulate 2D 1/35 sloped ,wave condiction H=0.127 h=0.4 T=2,wavetheory stokesV,using k-epsilon model
I have modified the breakwater tutorial,wall boundary condiction used symmetry,other boundary condiction is unchanged.
Do you have some suggest to set maxAlphaco?I have tried to set maxAlphaco=0.3,but breaker data is wrong.
And sloped boundary condiction have some suggested?

Best regards,
hank
hankshih is offline   Reply With Quote

Old   February 5, 2018, 19:54
Default
  #197
Senior Member
 
Pablo Higuera
Join Date: Jan 2011
Location: Auckland
Posts: 627
Rep Power: 19
Phicau is on a distinguished road
Hi Hank,

wave breaking is a challenging process, especially running it in 2D, with air and turbulence modelling.

Without further data from your numerical setup and mesh I can only make wild guesses. Courant = 0.25 shall work, and usually the slope will have no-slip (fixedValue = 0) BC.

Best,

Pablo
__________________
Check out my new project: olaFlow --> The olaFlow Support Thread
Phicau is offline   Reply With Quote

Old   February 21, 2018, 22:35
Default
  #198
New Member
 
hanchen shih
Join Date: Nov 2017
Posts: 2
Rep Power: 0
hankshih is on a distinguished road
Dear Pablo,

I am so pleased for your reply.Thank you.

Numerical domain is 35m Length*0.02m Width*1m Height.
Blockmesh used
blocks
( hex (0 1 5 4 3 2 6 7) (1750 1 240) simpleGrading (1 1 ((0.5 0.5 0.5)(0.5 0.5 2))) )

I tried your tip to set maxAlphaco=0.25,but the slopes free surface elevation also wrong. Breaking point isn't conform Ting Ting and Kirby data(1994 Observation of undertow and turbulence in a laboratory surf zone).
Could you have some suggest to change another parameter? Or some I can try change it?

Slopes boundary condiction in case follow breakwater tutorials caisson BC is ok?

Best regards,
hank
hankshih is offline   Reply With Quote

Old   February 22, 2018, 02:21
Default
  #199
Senior Member
 
Pablo Higuera
Join Date: Jan 2011
Location: Auckland
Posts: 627
Rep Power: 19
Phicau is on a distinguished road
Hi Hank,

that is very little information to understand what is going on, so I cannot offer a best guess than what I mentioned in the previous post. You need to evaluate where is the error and why results are not as expected. For example, are wave conditions the same? Does the mesh shape or cell size affect propagation? How is turbulence affecting the case? CFD is all about going step by step from easy to challenging.

I also suggest that you take a look at this post: How to give enough info to get help and come back after you have pin-pointed the issues.

Best,

Pablo
__________________
Check out my new project: olaFlow --> The olaFlow Support Thread
Phicau is offline   Reply With Quote

Old   March 9, 2018, 23:08
Default
  #200
New Member
 
Lin Cui
Join Date: Oct 2017
Posts: 6
Rep Power: 8
lincui is on a distinguished road
Quote:
Originally Posted by Lewis Liang View Post
Dear Pablo,

From the book Ocean Engineering Science 2005 (By Bernard Le MéhautéFor), In a plane flow (2D), a following current can reduce wave height and an opposing current tends to enlarge them.

Then I run 3 sets of two dimensional cases to study the effect of different kinds of current. I found my numerical data got a the opposite results compared with the above literature results.

For this question, is it due to some numerical set-up or other specific causes?

Thanks in advance!

Lewis

Dear Pablo,
I have the same problem, any suggestion or command? thanks in advance.

Bests,
Lin
lincui is offline   Reply With Quote

Reply

Tags
generation, ihfoam, olafoam, waves


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
Divergence detected in AMG solver: k when udf loaded google9002 Fluent UDF and Scheme Programming 3 November 7, 2019 23:34
udf problem jane Fluent UDF and Scheme Programming 37 February 20, 2018 04:17
UDF velocity profile willroca Fluent UDF and Scheme Programming 2 January 10, 2016 03:13
Error messages atg enGrid 7 August 30, 2013 11:16
Phase locked average in run time panara OpenFOAM 2 February 20, 2008 14:37


All times are GMT -4. The time now is 07:54.