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

A book for a beginner wanting to learn programming

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 12, 2005, 20:46
Default A book for a beginner wanting to learn programming
  #1
frank
Guest
 
Posts: n/a
Hello I am a mechanical engineer. Unfortunately in my university there are no many programming courses for the mechanical area. However with the years I had to learn the use of FEA packages, in the linear and non-linear fields (ansys). Since last year I have been involved in a company, and I had to learn some CFD codes (CFX primarly). Today I really know that the programming is the key to achieve good models and have a little of control of the model. I have suffered the limitations of be a non-programmer and only be a "user" of a package. On the other hand I want to apply for a postgraduate the next year and I want to know how to program for that date. I think that Fortran is one of the most important languages for scientific and engineering programming, but I want to hear your advise about other language. I am writing to this excellent forum to get a suggestions about a book for "learn by myself" in Fortran 95. Does anybody know about a book for a beginner? I think I will buy by amazon.com. Thank you in advance frank fjtl@yahoo.com

  Reply With Quote

Old   September 12, 2005, 21:30
Default Re: A book for a beginner wanting to learn program
  #2
Ahmed
Guest
 
Posts: n/a
C++ and C are the languages used in all cfd programes
  Reply With Quote

Old   September 12, 2005, 21:49
Default Re: A book for a beginner wanting to learn program
  #3
Renato N. Elias
Guest
 
Posts: n/a
Hi Frank,

I think Fortran is the easiest programming language to write scientific applications quickly, thus it's a good choice for learners. I know that Fortran is not so powerful than C++, but by choosing an easy programing language you'll avoid to get unmotivated.

cheers

Renato N. Elias

p.s.: I'm seding a Fortran 90's ebook to your email.
  Reply With Quote

Old   September 13, 2005, 04:55
Default Re: A book for a beginner wanting to learn program
  #4
andy
Guest
 
Posts: n/a
The best place to get recommendations for learning Fortran is probably the usenet group comp.lang.fortran.

Learning to use a programming language effectively requires only a modest amount of bookwork but a significant amount of practice guided by good programming examples. A typical programming course for a modest sized programming language would perhaps have 10 hours lectures, 30-50 hours tutorials and 30-50 hours homework. When working on your own it can be hard to sort out much of the practical side or even realize you are doing things in an awkward and clumsy manner.

The best choice of language/s is not clear cut. Engineers who do not get involved in the nitty-gritty of implementing CFD solvers but are principally users of various packages and wish to manipulate their data are usually more effective using scripting languages such as python, ruby, matlab, etc... Such languages can be a good place to start learning. A 30 minute browse of the getting started documents on www.python.org may be useful.

Python + Fortran 77 is a fairly effective combination.

  Reply With Quote

Old   September 13, 2005, 06:17
Default Re: A book for a beginner wanting to learn program
  #5
zxaar
Guest
 
Posts: n/a
Frank, in my opinion the most important thing is the way you think of a problem. Or how do you approach its solution. Once you know this, using a computer language is mere a formality. I did just a basic pascal course and i do not remeber when i learnt C or C++ or Java. Its just that i am equaly at ease with all of them. because more or less all the lanugage in their background work the same. I would suggest you to look into algorithmic aspect more than just trying to learn some language. The best way to learn is to keep your self a fairly complecated task and try to accomplish that. The task shall not be too small also, it shall give you some amount of headache or shall make your grey cells work.
  Reply With Quote

Old   September 13, 2005, 09:37
Default Re: A book for a beginner wanting to learn program
  #6
Jim_Park
Guest
 
Posts: n/a
Introduction to Fortran 90 for Engineers and Scientists, by Larry R. Nyhoff and Sanford C. Leestma, paperback by Prentice Hall has exercises. Good beginning.

Fortran 90/95 for Scientists and Engineers, by Stephen J. Chapman, paperback by McGraw-Hill. A more complete reference.

Slightly difference approach in each. Both are really useful (for me).

Good luck!
  Reply With Quote

Old   September 13, 2005, 17:23
Default Re: A book for a beginner wanting to learn program
  #7
frank
Guest
 
Posts: n/a
Thank you to everyone for your responses. and thank you Renato for the ebook, I have receive it. regards, frank
  Reply With Quote

Old   September 23, 2005, 17:57
Default Re: A book for a beginner wanting to learn program
  #8
Vinod Dhiman
Guest
 
Posts: n/a
Hi Frank

Its very true that you should be knowing how to write an algorithm, and not a program. Program is just an implimentation of an algorithm. It really doesn't matter which language do you use, whether FORTRAN or C(++), what matter is how well organized your algorithm. However, FORTRAN 200x is much much better than any other language. But right now not freely available, will be shortly. And for most of CFD Engineers FORTRAN is best.

There is one thing. Sometimes you need to write UDFs in packages as they are self-contained. So, you should be knowing somewhat C(++), too.

If you need I can send you an electronic manual of IBM XL FORTRAN. Its a manual and not for beginners, however, to reach to this level you don't need more than two days. If you need do send me your mail ID at dhimanvinod@gmail.com

With Best Wishes Vinod Dhiman
  Reply With Quote

Old   April 30, 2014, 07:16
Default
  #9
New Member
 
amin
Join Date: Apr 2014
Posts: 1
Rep Power: 0
amin d is on a distinguished road
hi
could u please send this books to me. I'm beginner in fortran programing
thx
amin d is offline   Reply With Quote

Old   May 13, 2014, 00:15
Default
  #10
New Member
 
Dustin Carroll
Join Date: May 2014
Posts: 3
Rep Power: 12
Dcarroll is on a distinguished road
"A Book on C" is the classic C textbook. I love it.

Dustin
Dcarroll is offline   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
Best book for programming with Fluent ? Theofanis FLUENT 5 March 24, 2012 14:33
any useful recommended guide book for beginner? wlt_1985 FLUENT 4 November 3, 2009 23:16
How to learn programming a cfd code? Peter Specht Main CFD Forum 6 April 27, 2004 18:12
Is any book recommended for free surface beginner? mspilot Main CFD Forum 2 August 6, 2003 13:24


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