|
[Sponsors] |
fixedValue velocity-inlet in compressible flow |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
September 29, 2017, 05:34 |
fixedValue velocity-inlet in compressible flow
|
#1 |
Senior Member
Alex
Join Date: Jan 2014
Posts: 126
Rep Power: 12 |
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; } } // ************************************************************************* // Thanks and best Alex Last edited by Kina; October 4, 2017 at 06:11. |
|
October 4, 2017, 04:42 |
|
#2 |
Senior Member
Alex
Join Date: Jan 2014
Posts: 126
Rep Power: 12 |
Did anyone experience such a problem so far? would be very helpful!
|
|
February 25, 2019, 02:50 |
|
#3 |
Senior Member
Lukas Fischer
Join Date: May 2018
Location: Germany, Munich
Posts: 117
Rep Power: 7 |
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 |
|
|
|
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 |