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

Programming C, Basic

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 27, 2006, 07: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, 09: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, 22: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, 23: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


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


All times are GMT -4. The time now is 22:01.