CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

C++ topics

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 8, 2015, 03:43
Default C++ topics
  #1
New Member
 
Shovan
Join Date: Jul 2015
Posts: 11
Rep Power: 10
shovan is on a distinguished road
Hi everybody

I know basic C++. I want to know what are the topics in C++ i have to go through so that i can understand Openfoam.
shovan is offline   Reply With Quote

Old   August 8, 2015, 21:41
Default
  #2
Member
 
Lisandro Maders
Join Date: Feb 2013
Posts: 98
Rep Power: 13
Lisandro Maders is on a distinguished road
Hi Shovan,

I am in a very similar situation as you are. I will try to implement some simple models in OpenFOAM and in order to do that I am going a bit into the OpenFOAM source code.

I knew basic C++, but all I knew was regarded to procedural programming. OpenFOAM makes large use of object oriented programming, which is not trivial to understand. I would suggest you to start reading some book and follow the class chapter (be sure you understand well about pointers in C++). Try to understand the concepts of class, constructors, friend functions and friend classes, inheritance, templates and a lot of things more about classes. I think this will be your first and most difficult test. Once you have done this, I believe you will be able to start looking at the code and understand the things day after day.

If you want some suggestion of very clear and objective book, try the Daoqi Yang C++ book. I found it very good.


Best of luck,

Lisandro
Lisandro Maders is offline   Reply With Quote

Old   August 9, 2015, 00:14
Default
  #3
New Member
 
Shovan
Join Date: Jul 2015
Posts: 11
Rep Power: 10
shovan is on a distinguished road
Thank you very much
shovan 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
Hot topics in CFD research? aroma Main CFD Forum 7 May 6, 2015 15:58
Other Topics at OpenFOAM Workshop Milan 2008 hjasak OpenFOAM 2 October 26, 2013 04:33
Sections / Topics in CFD Wiki Roberthealy1 CFD-Wiki 6 August 23, 2007 17:58
project topics vivekanand CFX 0 October 27, 2004 05:17
Advanced Topics in Aerodynamics Antonio Filippone Main CFD Forum 0 August 28, 1999 12:16


All times are GMT -4. The time now is 05:07.