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

fixedValue velocity-inlet in compressible flow

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 29, 2017, 05:34
Default fixedValue velocity-inlet in compressible flow
  #1
Senior Member
 
Alex
Join Date: Jan 2014
Posts: 126
Rep Power: 12
Kina is on a distinguished road
Hey guys,
I have a problem that is rather about physical understanding as I don't know which BCs to set. I am trying to implement a velocity-inlet in a compressible case ran with rhoPimpleFoam. I need this v-inlet because I want to create velocity defects for wake induced transition research on compressible flow. However, I struggle to determine the right BCs for that case.

I am operating at Ma = 0.65 and Re = 150,000 or at least I am trying to.
First thing for the v-Inlet was v = Ma * a with a = 331m/s which gives me the inlet velocity.

My BCs look like this:

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

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

internalField   uniform $U_internal;

boundaryField
{
    inlet
    {
          type    fixedValue;
          value uniform (216 0 0);
    }
    
    outlet
    {
        type            zeroGradient;
    }
    periodic-stator-top
    {
        type            cyclicAMI;
    }
    periodic-stator-bot
    {
        type            cyclicAMI;
    }
    wall-stator
    {
        type            fixedValue;
        value            uniform (0 0 0);
    }
    empty-stator
    {
        type            empty;
    }
}


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

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

internalField   uniform $p_outlet;

boundaryField
{
    inlet
    {
        type            zeroGradient;
    }
    outlet
    {
        type            fixedValue;
        value            $internalField;
    }
    periodic-stator-top
    {
        type            cyclicAMI;
    }
    periodic-stator-bot
    {
        type            cyclicAMI;
    }
    wall-stator
    {
        type            fixedFluxPressure;
        value           uniform 0;
    }
    empty-stator
    {
        type            empty;
    }
}

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

dimensions      [0 0 0 1 0 0 0];

internalField   uniform $T_outlet;

boundaryField
{
    inlet
    {
        type            totalTemperature;
        gamma            1.4;
        T0                $T_inlet;
        U               U;
        phi             phi;
        psi             thermo:psi;
    }
    outlet
    {
        type            inletOutlet;
        value           uniform $T_outlet;
        inletValue      uniform $T_outlet; //static outlet temp
    }
    periodic-stator-top
    {
        type            cyclicAMI;
    }
    periodic-stator-bot
    {
        type            cyclicAMI;
    }
    wall-stator
    {
        type            zeroGradient;
    }
    empty-stator
    {
        type            empty;
    }
}

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

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

internalField   uniform 0;

boundaryField
{
    inlet
    {
        type            calculated;
        value           $internalField;
    }
    outlet
    {
        type            calculated;
        value           $internalField;
    }
    periodic-stator-top
    {
        type            cyclicAMI;
    }
    periodic-stator-bot
    {
        type            cyclicAMI;
    }
    wall-stator
    {
        type            fixedValue;
        value           uniform 0;
    }
    empty-stator
    {
        type            empty;
    }
}


// ************************************************************************* //
It'd be awesome if anyone could shed a bit of light on this. Didn't find any way to implement a velocity inlet into compressible flow. Also: How do I adjust the Reynolds Number? In compressible flow, it is affected by the rho but I don't know how I can pass the rho to the BCs initially.

Thanks and best
Alex

Last edited by Kina; October 4, 2017 at 06:11.
Kina is offline   Reply With Quote

Old   October 4, 2017, 04:42
Default
  #2
Senior Member
 
Alex
Join Date: Jan 2014
Posts: 126
Rep Power: 12
Kina is on a distinguished road
Did anyone experience such a problem so far? would be very helpful!
Kina is offline   Reply With Quote

Old   February 25, 2019, 02:50
Default
  #3
Senior Member
 
Lukas Fischer
Join Date: May 2018
Location: Germany, Munich
Posts: 117
Rep Power: 7
lukasf is on a distinguished road
Hi Kina,

what have you done so far? Were you able to solve your problem? What are your error messages?

I also want to use rhoPimpleFoam with a combination of the waveTransmissive and pressureInletOutletVelocity boundary conditions.

Lukas
lukasf 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
Total pressure and mass flow boundary condition at inlet bscphil OpenFOAM Pre-Processing 3 July 9, 2017 14:39
Steady pipe flow mean velocity higher than inlet velocity anita OpenFOAM Running, Solving & CFD 7 September 25, 2012 05:35
Velocity Inlet BC -- Flow Reversal salihovic FLUENT 0 May 8, 2011 05:45
Compressible flow with inlet velocity Ma%23601 klaus OpenFOAM Running, Solving & CFD 2 July 3, 2005 15:43
fluid flow fundas ram Main CFD Forum 5 June 17, 2000 21:31


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