|
[Sponsors] |
September 6, 2012, 07:38 |
BC for pressure driven compressor cascade
|
#1 |
New Member
Matthew Wright
Join Date: Sep 2012
Posts: 1
Rep Power: 0 |
Hi. I am currently doing a thesis where I am running a simulation on a cascade of compressor blades in OpenFOAM. The simulation is 2D and consists of 1 blade with cyclic boundaries on the top and bottom of the domain for the cascade effect. I am running a compressible, laminar case. I ran rhoSimplecFoam and adapted my case from the tutorial, and this runs fine with the BCs the same as the tutorial. However, when I try my own BCs it crashes. I want total pressure specified at the inlet and static pressure at the outlet. The velocity is driven by the pressure at and angle of 55deg at the inlet. Total temperature is also specified at the inlet. Here are my p, U and T files. Can someone tell me what I am doing wrong. Thanks.
FoamFile { version 2.0; format ascii; class volScalarField; object p; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dimensions [1 -1 -2 0 0 0 0]; internalField uniform 101300; boundaryField { BC1_on_INLET { type totalPressure; p0 uniform 101300; value uniform 101300; gamma 1.4; } BC1_on_LOWER_PERIODIC { type cyclic; } BC1_on_OUTLET { type fixedValue; value uniform 88131; } BC1_on_PROFILE { type zeroGradient; } BC1_on_SYM1 { type empty; } BC1_on_SYM2 { type empty; } BC1_on_UPPER_PERIODIC { type cyclic; } } // ************************************************** *********************** // FoamFile { version 2.0; format ascii; class volVectorField; object U; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dimensions [0 1 -1 0 0 0 0]; internalField uniform (0 0 0); boundaryField { BC1_on_INLET { type pressureDirectedInletVelocity; inletDirection uniform (1.428 1 0); value uniform (0 0 0); } BC1_on_LOWER_PERIODIC { type cyclic; } BC1_on_OUTLET { type zeroGradient; } BC1_on_PROFILE { type slip; } BC1_on_SYM1 { type empty; } BC1_on_SYM2 { type empty; } BC1_on_UPPER_PERIODIC { type cyclic; } } // ************************************************** *********************** // FoamFile { version 2.0; format ascii; class volScalarField; object T; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dimensions [0 0 0 1 0 0 0]; internalField uniform 300; boundaryField { BC1_on_INLET { type totalTemperature; T0 uniform 300; value uniform 300; gamma 1.4; } BC1_on_LOWER_PERIODIC { type cyclic; } BC1_on_OUTLET { type zeroGradient; } BC1_on_PROFILE { type zeroGradient; } BC1_on_SYM1 { type empty; } BC1_on_SYM2 { type empty; } BC1_on_UPPER_PERIODIC { type cyclic; } } // ************************************************** *********************** // |
|
April 26, 2013, 22:18 |
|
#2 |
Member
sqing
Join Date: Sep 2012
Location: Dalian
Posts: 77
Rep Power: 14 |
Hi Matthew,
I also want to simulate a cascade with same inlet and outlet BC as your. Do you have solved this problem? Please let me know any progress that you have made. http://www.cfd-online.com/Forums/ope...-pressure.html Regards Sunxing |
|
August 27, 2013, 04:02 |
floating point exception
|
#3 |
New Member
Akash Sharma
Join Date: May 2013
Location: Paris
Posts: 15
Rep Power: 13 |
Hey, I am also doing the same case. I have the same boundary condition.
After some iteration there is an error coming floating point exception. Does anyone has solved this kind of error Thanks !! |
|
August 29, 2013, 05:16 |
|
#4 | |
New Member
Phillip
Join Date: Mar 2012
Location: Germany
Posts: 27
Rep Power: 14 |
Quote:
by a pressure driven flow simulated with rhoSimpleFoam:
For your next post/problem, please, just characterize your case: solver, discretization schemes, turbulence model, mesh (y+values), fluid properties, physical properties (Mach-range) etc. |
||
August 29, 2013, 16:13 |
|
#5 |
New Member
Akash Sharma
Join Date: May 2013
Location: Paris
Posts: 15
Rep Power: 13 |
I changes the initial condition for velocity but still same error is coming. I have attached my case here.
Thanks!! |
|
August 31, 2013, 19:32 |
|
#6 | |
New Member
Phillip
Join Date: Mar 2012
Location: Germany
Posts: 27
Rep Power: 14 |
Quote:
For your next try change your relaxation factors to: Code:
relaxationFactors { fields { p 0.3; rho 0.05; } equations { U 0.7; k 0.7; epsilon 0.7; h 0.5; } } Code:
transonic false; Good luck |
||
September 8, 2013, 19:01 |
Difference in results
|
#7 |
New Member
Akash Sharma
Join Date: May 2013
Location: Paris
Posts: 15
Rep Power: 13 |
Hello bscphil
My simulation results are coming good now, but there is still one problem. I have the results in fluent for same case(which are correct), but the openfoam results differ by a lot. I have attached 2 screen-shot of Mach contour at 50 % span length for fluent and openfoam. I have the same BC, but the velocity is coming much much higher in openfoam Any suggestions for this ? Thanks |
|
September 13, 2013, 11:55 |
Temperature Problem
|
#8 |
New Member
Akash Sharma
Join Date: May 2013
Location: Paris
Posts: 15
Rep Power: 13 |
Hello,
I gave total temp boundary condition at my inlet outlet { type totalTemperature; T0 uniform 517.5; ( 517.5 is the total temperature) value uniform 517.5; gamma 1.4; } But in the result my static temp is going as high as 580 k. Why is the happening ? plz help me with this .. Thanks |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
internal flow BCs: pressure driven versus velocity driven | mihaipruna | OpenFOAM Running, Solving & CFD | 22 | March 6, 2014 11:06 |
Lid Driven Cavity using Ghost Cell Method and in C++ | illuminati5288 | Main CFD Forum | 0 | August 12, 2011 23:05 |
is there any parallel code for the famous Lid Driven Cavity flow? | gholamghar | Main CFD Forum | 0 | August 1, 2010 02:55 |
How to simulate the fan driven by the airflow? | Jason | FLUENT | 2 | April 17, 2008 16:56 |
Practical/Industrial Appications of the Lid Driven | GD | Main CFD Forum | 1 | December 19, 2007 07:30 |