CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Lund Recycled Method for LES (flat plate)

Register Blogs Community New Posts Updated Threads Search

Like Tree36Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 23, 2016, 01:39
Default
  #61
New Member
 
Tsuyoshi Koyama
Join Date: Oct 2012
Posts: 6
Rep Power: 13
t.koyama is on a distinguished road
Dear all,

Does anyone know what the boundary conditions for velocity(U) and pressure(p) used in Joachims example ( Lund Recycled Method for LES (flat plate)) are?
t.koyama is offline   Reply With Quote

Old   August 23, 2016, 03:00
Default
  #62
New Member
 
Christoph Wenzel
Join Date: May 2014
Location: Germany
Posts: 21
Rep Power: 11
ChrisWe is on a distinguished road
Yes, the boundary condition for the velocity is:
Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  2.2.0                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       volVectorField;
    object      U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

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

internalField   uniform (1 0 0);

boundaryField
{
    inlet
    {
        type            scaledMappedVelocity;
        deltaInlet      0.243;
        thetaInlet      0.028;
        Ue              1;
        nu              2e-5;
        t               2e-2;
        UMeanSpanTime   uniform (0 0 0);
        value           uniform (1 0 0);
    }
    outlet
    {
        type            advective;
    }
    plate0
    {
        type            fixedValue;
        value           uniform (0 0 0);
    }
    plate1
    {
        type            fixedValue;
        value           uniform (0 0 0);
    }
    top0
    {
        type            zeroGradient;
    }
    top1
    {
        type            zeroGradient;
    }
    front0
    {
        type            cyclic;
    }
    front1
    {
        type            cyclic;
    }
    back0
    {
        type            cyclic;
    }
    back1
    {
        type            cyclic;
    }
    interface0
    {
        type            cyclic;
    }
    interface1
    {
        type            cyclic;
    }
}
// ************************************************************************* //
and the boundary condition for the pressure is:

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

dimensions      [0 2 -2 0 0 0 0];

internalField   uniform 0;

boundaryField
{
    inlet
    {
        type            zeroGradient;
    }
    outlet
    {
        type            fixedValue;
        value           uniform 0;
    }
    plate0
    {
        type            zeroGradient;
    }
    plate1
    {
        type            zeroGradient;
    }
    top0
    {
        type            fixedValue;
    value        uniform 0;
    }
    top1
    {
        type            fixedValue;
    value        uniform 0;
    }
    front0
    {
        type            cyclic;
    }
    front1
    {
        type            cyclic;
    }
    back0
    {
        type            cyclic;
    }
    back1
    {
        type            cyclic;
    }
    interface0
    {
        type            cyclic;
    }
    interface1
    {
        type            cyclic;
    }
}

// ************************************************************************* //
All the best,
Christoph
ChrisWe is offline   Reply With Quote

Old   August 23, 2016, 03:04
Default
  #63
New Member
 
Tsuyoshi Koyama
Join Date: Oct 2012
Posts: 6
Rep Power: 13
t.koyama is on a distinguished road
Dear Christoph,

Thank you so much for your quick reply!!!
I have really been struggling to get the boundary conditions right for
this problem. I will try them right away!
t.koyama is offline   Reply With Quote

Old   August 24, 2016, 22:15
Default
  #64
New Member
 
Tsuyoshi Koyama
Join Date: Oct 2012
Posts: 6
Rep Power: 13
t.koyama is on a distinguished road
Dear Christoph,

Thank you for uploading the BC files. I tried them with my case and was able to get the problem working after some modifications.
The major problem other than the BC's was the accuracy in my solves at each time step. The lack of accuracy was creating
artificial turbulence and corrupting my solution.

Sincerely,
-Tsuyoshi Koyama

Last edited by t.koyama; August 26, 2016 at 04:28.
t.koyama is offline   Reply With Quote

Old   October 19, 2016, 00:22
Default
  #65
New Member
 
James Zh
Join Date: Mar 2016
Posts: 3
Rep Power: 10
mcshidada is on a distinguished road
Hi Foamers,

I'm really curious about this method, but unfortunately there is nothing in the dropbox link...Can anyone send me a copy of the test case to the address zfr2078@gmail.com ? Thanks in advance!!

Regards
J Zhang
mcshidada is offline   Reply With Quote

Old   October 19, 2016, 06:53
Default
  #66
Senior Member
 
Timofey Mukha
Join Date: Mar 2012
Location: Stockholm, Sweden
Posts: 118
Rep Power: 14
tiam is on a distinguished road
Dear all,

You might be interested in looking at a python package I have written, it allows to rescale sampled velocity fields using the Lund's rescaling procedure and save them in a format readable by OpenFOAM.

There is a User guide available here:
http://eddylicious.readthedocs.io/
And the code is here
https://github.com/timofeymukha/eddylicious
cedric_duprat and huangfei like this.
tiam is offline   Reply With Quote

Old   November 7, 2016, 22:10
Default
  #67
New Member
 
Wenkun Zhao
Join Date: Mar 2015
Location: Nanjing, China
Posts: 14
Rep Power: 11
Eric Brant is on a distinguished road
Hi Joachim,

I am very interested in Lund's recycling methods but unfortunately it is used for incompressible flows. So I studied recaling-recycling method and extend it for compressible flows just by adding Van Driest velocity to scaledMappedVelocity and creating scaledMappedTemperature. But I have encountered a problem: I run these boundary conditions well using single processor but failed in parallel calculating. By the way, have you ever calculated in parallel using your code? I just modified your code by adding some extra codes and I think it doesn't affect parallel process. Here's my attached codes for compressible flows.

P.S. my OpenFOAM version is 2.4.0
Attached Files
File Type: gz scaledMappedVelocity.tar.gz (9.6 KB, 43 views)
File Type: gz scaledMappedTemperature.tar.gz (9.1 KB, 24 views)
Eric Brant is offline   Reply With Quote

Old   November 8, 2016, 09:38
Default
  #68
New Member
 
Wenkun Zhao
Join Date: Mar 2015
Location: Nanjing, China
Posts: 14
Rep Power: 11
Eric Brant is on a distinguished road
Quote:
Originally Posted by cfd.with.openfoam View Post
In this rescaling technique it seems that I would still need a mean profile for different variables at the inlet of my domain. After that I would need to perturb the domain e.g using the perturbU utility. After following these steps I should expect a self sustaining turbulent BL. Is that correct?
Hi All,

I wonder where perturbU utility is, there's no such utility in offical version of OpenFOAM, and I don't know how to calculate the initial field for following LES calculation. Any suggestions?

Best,
Eric
Eric Brant is offline   Reply With Quote

Old   November 9, 2016, 13:23
Default
  #69
Senior Member
 
Mahdi Hosseinali
Join Date: Apr 2009
Location: NB, Canada
Posts: 273
Rep Power: 18
anishtain4 is on a distinguished road
That utility has been taken out of the standard version (not sure why?) but there's a link in the wiki explaining how to add it back:
https://openfoamwiki.net/index.php/Contrib/perturbU
it's very simple and straightforward.
anishtain4 is offline   Reply With Quote

Old   November 10, 2016, 02:34
Default
  #70
New Member
 
Wenkun Zhao
Join Date: Mar 2015
Location: Nanjing, China
Posts: 14
Rep Power: 11
Eric Brant is on a distinguished road
Hi Mahdi,

Thanks for your quick response, I have download perturbU and successfully compiled it on OpenFOAM-2.4.0. I opened the perturbU.C and after scanning the code I know that
Code:
if (setBulk)
{}
is to set the mean velocity profile and
Code:
if (perturb)
{}
is to set perturbation. To see how the perturbation is generated. I found it in the following codes:

Code:
 if (perturb)
        {
            // streak streamwise velocity
            U[celli][streamDir] +=
                (utau * duplus/2.0) * (yplus/40.0)
                * Foam::exp(-sigma * Foam::sqr(yplus) + 0.5)
                * Foam::cos(betaPlus*zplus)*deviation;

            // streak spanwise perturbation
            U[celli][spanDir] =
                epsilon
              * Foam::sin(alphaPlus*xplus)
              * yplus
              * Foam::exp(-sigma*Foam::sqr(yplus))
              * deviation;
        }
I don't know why use these formula to set perturbation.
Is there any perturbation theory or related references?

Best
Eric Brant is offline   Reply With Quote

Old   November 14, 2016, 13:24
Default
  #71
Senior Member
 
Mahdi Hosseinali
Join Date: Apr 2009
Location: NB, Canada
Posts: 273
Rep Power: 18
anishtain4 is on a distinguished road
Random perturbations will be easily damped out if they lack a spatial correlation. Also to initialize don't use turbulent profile, use laminar.
Those streaks are based on a paper by Schoppa and Hussain:
https://www.researchgate.net/publica...all_turbulence
They are the best way to excite the near wall fluctuations and transient into turbulent.
anishtain4 is offline   Reply With Quote

Old   April 13, 2018, 02:54
Default
  #72
New Member
 
Wang Yifan
Join Date: Jan 2018
Posts: 4
Rep Power: 8
YI Fan is on a distinguished road
Quote:
Originally Posted by Eric Brant View Post
Hi Joachim,

I am very interested in Lund's recycling methods but unfortunately it is used for incompressible flows. So I studied recaling-recycling method and extend it for compressible flows just by adding Van Driest velocity to scaledMappedVelocity and creating scaledMappedTemperature. But I have encountered a problem: I run these boundary conditions well using single processor but failed in parallel calculating. By the way, have you ever calculated in parallel using your code? I just modified your code by adding some extra codes and I think it doesn't affect parallel process. Here's my attached codes for compressible flows.

P.S. my OpenFOAM version is 2.4.0
Hi Eric,
I tried your BCs. Add "mpp.distribute(URecycled);" in scaledMappedTemperatureFixedValueFvPatchField.C, and it will work fine in parallel calculating.
Of course, you may have already solved this problem.
By the way, which paper are your BCs based on?And how do you set your boundary condition for field p?
Best
Yifan
YI Fan is offline   Reply With Quote

Old   December 3, 2018, 04:52
Default
  #73
Senior Member
 
Jianrui Zeng
Join Date: May 2018
Location: China
Posts: 157
Rep Power: 7
calf.Z is on a distinguished road
Hi,

I need this BC for my DNS simulation, can anyone share the code and additional files to me? My email is 32420171152101@stu.xmu.edu.cn

Thank you very much.
calf.Z is offline   Reply With Quote

Old   January 14, 2019, 15:17
Default
  #74
New Member
 
Yong Wang
Join Date: Dec 2014
Posts: 3
Rep Power: 11
windstriver is on a distinguished road
Could you send me a copy of your case files? It would be great help to setup a base case for comparison of synthetic inflow generation method. My email is y.wang@ttu.edu. Thanks a lot.
windstriver is offline   Reply With Quote

Old   August 19, 2019, 06:05
Arrow Joachim's Code
  #75
Member
 
Oguzhan
Join Date: Aug 2017
Posts: 38
Rep Power: 8
heisenmech is on a distinguished road
Hi all,

Can anyone please send me the Joachim's code? I did bit of search but couldn't find it anywhere online. Email: oguzhanmurat06@gmail.com

Thanks.
heisenmech is offline   Reply With Quote

Old   December 16, 2019, 09:49
Default
  #76
New Member
 
Shawn
Join Date: Dec 2019
Posts: 5
Rep Power: 6
kennymhx is on a distinguished road
Dear all

I'm really curious about this method, but unfortunately there is nothing in the dropbox link...Can anyone send me a copy of the test case to the address shawnhu94@gmail.com ? Thanks in advance!
kennymhx is offline   Reply With Quote

Old   December 16, 2019, 09:58
Default
  #77
New Member
 
Shawn
Join Date: Dec 2019
Posts: 5
Rep Power: 6
kennymhx is on a distinguished road
Quote:
Originally Posted by Loey View Post
Hi, Vishwakarma
Thank you for your kindness. I have got a copy, but I have a question to ask: How is the initial internalField generated?
Loey
Dear Loey

I'm really curious about this method, but unfortunately there is nothing in the dropbox link...Can anyone send me a copy of the test case to the address shawnhu94@gmail.com ? Thanks in advance!
kennymhx is offline   Reply With Quote

Old   January 27, 2022, 10:31
Default Run runLundRescaling --config=rescalingConfigBot
  #78
New Member
 
Join Date: Sep 2021
Posts: 6
Rep Power: 4
Naira is on a distinguished road
Hi Foamers


Can somebody please tell me how to proceed with this runLundRescaling --config=rescalingConfigBot

as mentioned in https://github.com/timofeymukha/eddy..._lund.rst#id15
I am unable to run this command.
Naira is offline   Reply With Quote

Old   January 27, 2022, 11:15
Default
  #79
Senior Member
 
Timofey Mukha
Join Date: Mar 2012
Location: Stockholm, Sweden
Posts: 118
Rep Power: 14
tiam is on a distinguished road
Hi. So, did you install eddylicious? The command is part of the package.
tiam is offline   Reply With Quote

Old   June 15, 2022, 03:11
Default
  #80
New Member
 
Tingkai Dai
Join Date: Jan 2022
Posts: 1
Rep Power: 0
jayddkt is on a distinguished road
Hi,

I'm really interested in the Lund's method,but the test case in the dropbox doesn't exist. Can anyone share the files to me? My email is jayddkt@sjtu.edu.cn

Thanks a lot.
jayddkt is offline   Reply With Quote

Reply

Tags
les lund recycled method


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
heat transfer with RANS wall function, over a flat plate (validation with fluent) bruce OpenFOAM Running, Solving & CFD 6 January 20, 2017 06:22
Low Reynolds Number Flow over a Flat Plate Go FLUENT 4 August 28, 2013 05:19
different boundary conditions for flat plate easyRider Main CFD Forum 0 March 20, 2012 08:40
Conjugate heat transfer for film-cooled flat plate Michele FLUENT 0 July 3, 2006 08:42
flat plate boundary layer data Ekachai Juntasaro Main CFD Forum 3 March 13, 2001 23:18


All times are GMT -4. The time now is 22:45.