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

Programming C, Basic

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

Reply
 
LinkBack Thread Tools Display Modes
Old   August 27, 2006, 06:50
Default Programming C, Basic
  #1
george
Guest
 
Posts: n/a
1)How can someone achieve dynamic memory allocation in Basic? 2)How can someone pass as arguments multidimensional arrays in subroutines in Basic and C?
  Reply With Quote

Old   August 28, 2006, 08:01
Default Re: Programming C, Basic
  #2
Mani
Guest
 
Posts: n/a
I don't remember much about Basic. I am actually surprised it's still in use.

As for C: Pointers are preferable to the (bracket) arrays. In that way, an array is defined by the pointer to its first element and its size. Those can be passed to functions (subroutines). Check out "The C programming language" by the C creators Kernighan and Ritchie.

(and also consider posting questions like this on a programming forum)
  Reply With Quote

Old   September 3, 2006, 21:08
Default Re: Programming C, Basic
  #3
Amol Korde
Guest
 
Posts: n/a
Dear sir,

I am writing program in C for one dimensional unsteady comoressible flow. I am writing it with the help of Patankar's book on Numerical heat transfer & fluid flow. I need guidance for obtaining convergence & providing boundary conditions. Can you provide me the similar type of a program from which I can obtain some guidance? Can you recommend me some book regarding the same, that is available free online, so that I can download it?

Waiting for your reply.

Best Regards Amol Korde
  Reply With Quote

Old   September 12, 2006, 22:42
Default Re: Programming C, Basic
  #4
Amol Korde
Guest
 
Posts: n/a
Dear sir,

I am facing difficulties in applying the boundary conditions while writing C program on one dimensional unsteady compressible flow.Please guide me about the same. Is there a similar program available on line so that I can refer it?

Reply soon.

Best Regards Amol Korde
  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
Beginner: How to bridge the gap between basic C++ knowledge to openFOAM programming bigbang OpenFOAM Programming & Development 12 July 9, 2015 12:34
A book for a beginner wanting to learn programming frank Main CFD Forum 9 May 12, 2014 23:15
Basic Blade Design Code apoorv Main CFD Forum 0 April 5, 2010 06:37
OpenFoam programming prapanj OpenFOAM 10 March 18, 2010 08:23
Programming in OpenFOAM vinu OpenFOAM 2 July 11, 2009 10:16


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