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

BC for pressure driven compressor cascade

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   September 6, 2012, 06:38
Default BC for pressure driven compressor cascade
  #1
New Member
 
Matthew Wright
Join Date: Sep 2012
Posts: 1
Rep Power: 0
MattWright is on a distinguished road
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;
}
}


// ************************************************** *********************** //
MattWright is offline   Reply With Quote

 


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 BCs: pressure driven versus velocity driven mihaipruna OpenFOAM Running, Solving & CFD 22 March 6, 2014 10:06
Lid Driven Cavity using Ghost Cell Method and in C++ illuminati5288 Main CFD Forum 0 August 12, 2011 22:05
is there any parallel code for the famous Lid Driven Cavity flow? gholamghar Main CFD Forum 0 August 1, 2010 01:55
How to simulate the fan driven by the airflow? Jason FLUENT 2 April 17, 2008 15:56
Practical/Industrial Appications of the Lid Driven GD Main CFD Forum 1 December 19, 2007 06:30


All times are GMT -4. The time now is 04:26.