Boundary Conditions

 User Name Remember Me Password
 Register Blogs Members List Search Today's Posts Mark Forums Read

 LinkBack Thread Tools Display Modes
 March 27, 2010, 15:08 Boundary Conditions #1 New Member   Victor Pitt Join Date: Mar 2010 Posts: 3 Rep Power: 8 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 .

 Thread Tools Display Modes Linear Mode

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

 Similar Threads Thread Thread Starter Forum Replies Last Post Anindya Main CFD Forum 25 February 27, 2016 13:58 lost.identity CFX 41 May 22, 2013 07:21 cfdmarkus OpenFOAM Running, Solving & CFD 16 November 14, 2011 05:44 Lionel S. Main CFD Forum 1 August 24, 2007 18:03 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 02:05.

 Contact Us - CFD Online - Top