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

CFD by anderson, chp 10.... supersonic flow over flat plate

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

Like Tree1Likes
  • 1 Post By Bajji

Reply
 
LinkBack Thread Tools Display Modes
Old   March 25, 2010, 07:22
Thumbs down CFD by anderson, chp 10.... supersonic flow over flat plate
  #1
Member
 
varun
Join Date: Apr 2009
Posts: 35
Rep Power: 6
varunjain89 is on a distinguished road
hi all

i'm trying to write C code for supersonic flow over flat plate. i'm reffereing CFD by JD anderson chp 10. i have a few doubts hope u can help.

firstly when i'm calculating vector E at plate surface and vector F at inflow, what should be the values of txy, txx, tyy, qx and qy, should i consider. should i take all of them to be zero...???

and after prdictor step, when calculating txy, then in one of the terms we need to calculate central difference, so our expression is something like....
U(i+1,j)-U(i-1,j) but we dont have values for U(i+1,j) at time step t+dt, right...??? so am i suppose to use the values calculated at previous time step.... coz that is the only way... jz needed to confirm..

thanks once again

varun
varunjain89 is offline   Reply With Quote

Old   December 20, 2011, 04:30
Smile Full code
  #2
New Member
 
Balaji Sankar
Join Date: Nov 2011
Posts: 14
Rep Power: 3
Bajji is on a distinguished road
Hi,

Sorry for the late reply.

I am posting the full code in the attachment, in C. All functions are named as in Anderson. Takes 70 seconds. No input files. All parameters are defined in preprocessor part..

Has been verified using the temperature profile at the trailing edge. Hope this helps.

Enjoy.
Bajji is offline   Reply With Quote

Old   December 20, 2011, 04:33
Default
  #3
New Member
 
Balaji Sankar
Join Date: Nov 2011
Posts: 14
Rep Power: 3
Bajji is on a distinguished road
Ooops. Didn't upload.
Here should be the code.
Attached Files
File Type: c main.c (41.1 KB, 103 views)
Far likes this.
Bajji is offline   Reply With Quote

Old   February 16, 2012, 10:39
Default
  #4
New Member
 
Join Date: Feb 2012
Posts: 11
Rep Power: 3
ivan_CFD is on a distinguished road
Thanks for the code
ivan_CFD is offline   Reply With Quote

Old   March 29, 2013, 08:26
Default
  #5
Member
 
Cean
Join Date: Feb 2010
Posts: 94
Rep Power: 5
shirazbj is on a distinguished road
thanks for c code.
shirazbj is offline   Reply With Quote

Old   April 3, 2013, 08:39
Default
  #6
Member
 
Cean
Join Date: Feb 2010
Posts: 94
Rep Power: 5
shirazbj is on a distinguished road
Quote:
Originally Posted by Bajji View Post
Ooops. Didn't upload.
Here should be the code.
there is one little error in the code, see attached pic.

The second Redx should be Redy.
Attached Images
File Type: png redy.PNG (6.4 KB, 16 views)
shirazbj is offline   Reply With Quote

Old   April 29, 2013, 00:20
Default Thank you
  #7
New Member
 
Balaji Sankar
Join Date: Nov 2011
Posts: 14
Rep Power: 3
Bajji is on a distinguished road
Hi Cean,
Thanks for pointing out the error! I don know how the plots came out fine after the mess up . Thanks again
Bajji is offline   Reply With Quote

Old   May 3, 2013, 03:49
Default
  #8
New Member
 
Thanh
Join Date: May 2013
Posts: 1
Rep Power: 0
tienthanh_bk2901 is on a distinguished road
thank you so much
tienthanh_bk2901 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
Code for the book Nishu Main CFD Forum 11 July 7, 2009 01:51
supersonic flow past flat plate shuo Main CFD Forum 0 July 28, 2007 19:47
Supersonic flow over flat plate Nikhil Main CFD Forum 3 June 22, 2007 08:11
entrance of a flat plate mc Main CFD Forum 0 April 24, 2007 22:38
tricky flat plate laminar flow sarat FLUENT 4 September 9, 2005 18:35


All times are GMT -4. The time now is 09:20.