CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Main CFD Forum

Boundary Conditions

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   March 27, 2010, 15:08
Smile Boundary Conditions
  #1
New Member
 
Victor Pitt
Join Date: Mar 2010
Posts: 3
Rep Power: 7
Victor10 is on a distinguished road
Hello ,
I am writing a Finite Volume method code for isentropic flow through a converging diverging nozzle . I am modelling half of the nozzle due to symmetry about the center line .I am not sure how to apply the Symmetry Boundary Condition .Here is the code I have written for the Symmetry Boundary Condition and the Wall Boundary Condition . Can someone please tell me if it is correct ?

u represents the horizontal velocity through the nozzle ;v the vertical component of velocity ;a is the speed of sound ;d -density ; e- internal energy .

the profile of the nozzle is taken as y=0.5 +1.1(x-1.5)^2 ;

for(i=1;i<=210;i++)
{
k=120;
p[i][k+1]=p[i][k];
theta = atan(2.2*(x[i][k]-1.5));
//The above line calculates the tangential direction along the upper wall of nozzle//
if(theta>=0){
u[i][k+1]=u[i][k]*cos(2.0*theta) + v[i][k]*sin(2.0*theta) ;
v[i][k+1]=u[i][k]*sin(2.0*theta) - v[i][k]*cos(2.0*theta);
}
else {
v[i][k+1] =-(u[i][k]*sin(-2.0*theta) + v[i][k]*cos(-2.0*theta));
u[i][k+1] = u[i][k]*cos(-2.0*theta)- v[i][k]*sin(-2.0*theta);
}
a[i][k+1]=a[i][k];
d[i][k+1]=d[i][k];
e[i][k+1]=e[i][k];
}



Symmetry Boundary Condition ;


for(i=1;i<=nx;i++)
{
pb[i]=p[i][1];
ub[i]=u[i][1];
vb[i]=0.0;
ab[i]=a[i][1];
db[i]=d[i][1];
eb[i]=e[i][1];
}




Waiting eagerly for some help.

Regards .

Victor .
Victor10 is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
symmetry boundary conditions in cfx lost.identity CFX 41 May 22, 2013 07:21
Impinging Jet Boundary Conditions Anindya Main CFD Forum 24 January 11, 2012 14:40
Problems with boundary conditions for a lowRekOmegaSST turbulence model cfdmarkus OpenFOAM Running, Solving & CFD 16 November 14, 2011 05:44
Pressure boundary conditions Lionel S. Main CFD Forum 1 August 24, 2007 18:03
Trimmed cell and embedded refinement mesh conversion issues michele OpenFOAM Other Meshers: ICEM, Star, Ansys, Pointwise, GridPro, Ansa, ... 2 July 15, 2005 04:15


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