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

Help~~~~How to read a program as a fresh man?

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

Like Tree2Likes
  • 1 Post By julien.decharentenay
  • 1 Post By andy_

Reply
 
LinkBack Thread Tools Display Modes
Old   July 6, 2011, 09:08
Question Help~~~~How to read a program as a fresh man?
  #1
New Member
 
Chris
Join Date: Jul 2011
Posts: 3
Rep Power: 6
SingleMinded is on a distinguished road
Hi,I'am a fresh man of CFD.Now,I'am reading a program about Euler solver,which employs the usual form like Roe scheme and explict scheme.However,it became a huge problem that the program is TOO LARGE and COMPLEX than I learned before.SO,how to read it in an appropriate method?
Thank you very much.
SingleMinded is offline   Reply With Quote

Old   July 6, 2011, 20:40
Default
  #2
Senior Member
 
Julien de Charentenay
Join Date: Jun 2009
Location: Australia
Posts: 229
Rep Power: 9
julien.decharentenay is on a distinguished road
Send a message via Skype™ to julien.decharentenay
Getting into someone else program is always a bit of a nightmare - specially if the documentation is sparse. Here is what I would try:

1) Try to get an automated tool to create documentation from the file structure (doxygen for example or whatever is appropriate for the programming language used);
2) Try to load the code into a suitable IDE (netbeans for example);
3) Try to get the overall idea of the algorithm (and function) involved by starting from the main subroutine/function;
4) Use your previous experience and hang to thread of codes you recognize.

Keep trying: If you look at it long and hard enough (and keep documenting as you go along), you will get to understand it.

Tip: use function names (that usually relates to what the subroutine does), but beware that sometimes the function names may be misleading (i.e. the developer changed its mind and the algorithm halfway through but did not bother to change the name)

Regards,
Julien
SingleMinded likes this.
__________________
---
Julien de Charentenay
julien.decharentenay is offline   Reply With Quote

Old   July 6, 2011, 22:25
Default
  #3
New Member
 
Chris
Join Date: Jul 2011
Posts: 3
Rep Power: 6
SingleMinded is on a distinguished road
Thank you very much.What you write was very concrete and helpful.
I would try your advice .
Good luck~~
SingleMinded is offline   Reply With Quote

Old   July 7, 2011, 08:10
Default
  #4
Senior Member
 
andy
Join Date: May 2009
Posts: 129
Rep Power: 8
andy_ is on a distinguished road
Quote:
Originally Posted by SingleMinded View Post
However,it became a huge problem that the program is TOO LARGE and COMPLEX than I learned before.SO,how to read it in an appropriate method?
As usual with a large task, and mastering a full CFD code for the first time is a large task, preparation is going to help. The most useful preparation in my experience is to make sure you have all the mathematical methods written down in front of you and that you understand how they work before looking at the code.
SingleMinded likes this.
andy_ is offline   Reply With Quote

Old   July 7, 2011, 08:18
Default
  #5
New Member
 
Chris
Join Date: Jul 2011
Posts: 3
Rep Power: 6
SingleMinded is on a distinguished road
ok,thank you.
SingleMinded 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
[Other] Exporting a mesh to read in MATLAB cih89 ANSYS Meshing & Geometry 5 July 18, 2013 20:47
Update boundary conditions calculated by an external program CedricVH OpenFOAM 2 January 15, 2010 12:55
Phase locked average in run time panara OpenFOAM 2 February 20, 2008 15:37


All times are GMT -4. The time now is 13:44.