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

Calculate k and omega of a freestream flow over VAWT

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 24, 2021, 12:15
Default Calculate k and omega of a freestream flow over VAWT
  #1
New Member
 
mo suepe
Join Date: Jul 2020
Posts: 2
Rep Power: 0
studente is on a distinguished road
Dear Foamers,

I'm new to OpenFoam and still learning. I have a case where freestream flows over a rotating VAWT (vertical axis wind turbine). I'm using k-\omega-SST turbulence model, so I got to find first which initial value of k and \omega in folder 0.

Here below is my calculation and formulas I got from some sources, to calculate k and \omega around airfoil:

U_{inf} = freestream velocity
TSR = Tip-Speed-Ratio
c = chord length
\rho = density of air
\mu = dynamic viscosity

#Calculation of Reynoldsnumber Re
Re = \frac{\rho*V*c}{\mu} = \frac{\rho*TSR*U_{inf}*c}{\mu}

#Calculation of Turbulence intensity I
I = 0.16 * Re^{\frac{-1}{8}}

#Calculation of turbulent length scale l
\frac{l}{c} = Re^{\frac{-1}{5}}

l = Re^{\frac{-1}{5}} * c

#Calculation of turbulent kinetic energy k
k = \frac{3}{2} * (U_{inf} * I)^{2}

#Calculation of specific dissipation rate \omega
\omega = \frac{\sqrt{k}}{l}

but here's the thing, those formulas above apply only for calculation on airfoil. Assuming that our freestream flows through a wind tunnel (a duct). That means, that we can calculate the Reynoldsnumber on inlet with this formula below:

Re = \frac{\rho*U_{inf}*d_{h}}{\mu}

with d_{h} is hydraulic diameter of the windtunnel

After I got the Re, then I can calculate I, then I can calculate l, and end up getting k and \omega. The question is, how to calculate them? We can't use the first formulas above to calculate k and \omega on inlet, InternalField, and topBottom, since it applied only for airfoil. And here actually I'm not really sure, if my approach is correct as well.

Otherwise I put my code for k and \omega below. The initial values that I got there is from the formulas for airfoil, without consideration to calculate k and \omega on inlet, InternalField , and topBottom. I just go through all of them and put the same values as it were on airfoil. I name my airfoils as lowerBlade and upperBlade in my code.

I really appreciate any helps and comments! Thanks!

Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  v2006                                 |
|   \\  /    A nd           | Website:  www.openfoam.com                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       volScalarField;
    location    "0";
    object      k;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

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


internalField   uniform 0.11637565440834571; // k = (3/2) * U_inf^2 * I^2

boundaryField
{
    inlet
    {
        type            fixedValue;
        value           uniform 0.11637565440834571;
    }
    outlet
    {
        type            zeroGradient;
    }
    topBottom
    {
        type            kqRWallFunction;
        value           uniform 0.11637565440834571;
    }
    ami00
    {
        type            cyclicAMI;
        value           uniform 0.11637565440834571;
    }
    ami01
    {
        type            cyclicAMI;
        value           uniform 0.11637565440834571;
    }
    lowerBlade
    {
        type            kqRWallFunction;
        value           $internalField;
    }
    upperBlade
    {
        type            kqRWallFunction;
        value           $internalField;
    }
    frontAndBack
    {
        type            empty;
    }
}


// ************************************************************************* //
Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  v2006                                 |
|   \\  /    A nd           | Website:  www.openfoam.com                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       volScalarField;
    location    "0";
    object      omega;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

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


internalField   uniform 14.770814500415696; // omega = k^(1/2) / l

boundaryField
{
    inlet
    {
        type            fixedValue;
        value           uniform 14.770814500415696;
    }
    outlet
    {
        type            zeroGradient;
    }
    topBottom
    {
        type            omegaWallFunction;
        value           uniform 14.770814500415696;
    }
    ami00
    {
        type            cyclicAMI;
        value           uniform 14.770814500415696;
    }
    ami01
    {
        type            cyclicAMI;
        value           uniform 14.770814500415696;
    }
    lowerBlade
    {
        type            omegaWallFunction;
        value           $internalField;
    }
    upperBlade
    {
        type            omegaWallFunction;
        value           $internalField;
    }
    frontAndBack
    {
        type            empty;
    }
}


// ************************************************************************* //
studente 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
Internal Flow Instability with layers Zephiro88 OpenFOAM Running, Solving & CFD 1 June 20, 2019 05:20
how to calculate the omega at inlet boundary in k omega sst Scabbard OpenFOAM Running, Solving & CFD 2 September 30, 2014 14:06


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