|
[Sponsors] |
February 10, 2012, 16:35 |
c++ and cfd
|
#1 |
New Member
crane
Join Date: Jul 2011
Posts: 7
Rep Power: 14 |
Dear all;
I am a super beginner in programming but i am super enthusiastic to know how to write codes.I know fundamental concepts of CFD.I wonder if any one knows of some books or sites which includes writing codes with c++ using CFD concepts.The only experience I had was writing code for lid driven cavity and it hasn't converged yet.It is like a dream for me to write codes for different problems!!!!!!!!!I am ready to do whatever it costs! your answers are immensely appreciated in advance best, Doorna Last edited by doorna; February 11, 2012 at 03:55. |
|
February 10, 2012, 21:46 |
|
#2 |
Senior Member
Arjun
Join Date: Mar 2009
Location: Nurenberg, Germany
Posts: 1,272
Rep Power: 34 |
Read Prof. Peric's book, it contain ALL the information that you would need to write a working navier stokes code for incompressible flow.
|
|
February 11, 2012, 03:50 |
|
#3 |
New Member
crane
Join Date: Jul 2011
Posts: 7
Rep Power: 14 |
||
February 12, 2012, 13:46 |
|
#4 |
Member
Mohammad Reza Hadian
Join Date: Mar 2009
Location: Yazd, Iran
Posts: 52
Rep Power: 17 |
Computational Methods for Fluid Dynamics by: Joel H. Ferziger and Milovan Peric, . link to amazon: http://www.amazon.com/Computational-.../dp/3540594345 |
|
February 12, 2012, 23:29 |
|
#5 | |
Senior Member
Arjun
Join Date: Mar 2009
Location: Nurenberg, Germany
Posts: 1,272
Rep Power: 34 |
thank you for putting the link. I sent him a pm I guess it would be better to post here.
Thanks Quote:
|
||
February 13, 2012, 05:05 |
UDF solver_par
|
#6 |
New Member
Join Date: Feb 2012
Posts: 1
Rep Power: 0 |
Hi everyone,
I'm modifying a UDF for my final career project and I'm having trouble with some stuff, I hope you guys can help me!! In the DPM_HEAT_MASS udf I'm having trouble understanding the definition of the bulk concentration and its units and I don't quite get the meaning of one of its terms... Please help!! real cvap_bulk = c->pressure / UNIVERSAL_GAS_CONSTANT / c->temp * c->yi[gas_index] / molwt_bulk / solver_par.molWeight[gas_index]; It seems this definition comes from the ideal gas law, but if you look carefully it looks as if the definition becomes: cvap_bulk = P·T·Yi·M/R·Mbulk As for the solver_par.molWeight[gas_index] I don't quite understand its meaning.. Thanks in advance!! Rob. |
|
August 9, 2017, 13:42 |
|
#7 |
New Member
Martin
Join Date: Apr 2017
Location: Germany
Posts: 26
Rep Power: 9 |
--- deleted by author himself ---
Last edited by 2phase; August 9, 2017 at 13:45. Reason: not related to inital question... sorry |
|
August 26, 2017, 07:50 |
|
#8 | |
Senior Member
|
Quote:
Solving PDEs in C++ Numerical Methods in a Unified Object-Oriented Approach Yair Shapira TechnionIsrael Institute of Technology Haifa, Israel |
||
August 29, 2017, 03:09 |
|
#9 | |
Senior Member
Join Date: May 2012
Posts: 546
Rep Power: 15 |
Quote:
If we ignore the C++ requirement then: I think the book by John. D. Andersson may be better for a beginner (although mostly FDM rather than FVM). The book by Versteeg and Malalasekhera is also somewhat better for a beginner (with worked examples, which Peric's book lacks). If you wish to delve into Lattice Boltzmann Methods then the book by Sukop and Thorne has explained code snippets based on C/C++ (also a working code online) Just my oppinion of course. |
||
August 29, 2017, 03:12 |
|
#10 | |
Senior Member
Arjun
Join Date: Mar 2009
Location: Nurenberg, Germany
Posts: 1,272
Rep Power: 34 |
Quote:
These books teach you how to write code in C++?? |
||
August 29, 2017, 08:35 |
|
#11 |
Senior Member
Join Date: May 2012
Posts: 546
Rep Power: 15 |
||
August 29, 2017, 08:39 |
|
#12 | |
Senior Member
Arjun
Join Date: Mar 2009
Location: Nurenberg, Germany
Posts: 1,272
Rep Power: 34 |
Quote:
Yes, as far as I know there is no CFD book who teaches how to program in C++ along with CFD. The peric's book has all the ingredients that are needed to write fully working unstructured grid navier stokes solver. Other books are good too but I do not believe that they tackle the issue of unstructured grid in so much of detail as Mr. Peric's book. |
||
August 29, 2017, 09:06 |
|
#13 | |
Senior Member
Join Date: May 2012
Posts: 546
Rep Power: 15 |
Quote:
I don't disagree that the book by Peric is a good one. However, my personal experience is that it is usually better for the more advanced student. That is, you will have more benefit of the material if you have already written some solvers. |
||
April 17, 2018, 06:59 |
|
#14 |
New Member
Nishikant
Join Date: Sep 2017
Posts: 1
Rep Power: 0 |
Prof Daoqi Yang's book also seems to be good, which has coding using C++, as well as object oriented programming .
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
STAR-Works : Mainstream CAD with CFD | CD adapco Group Marketing | Siemens | 0 | February 13, 2002 12:23 |
Where do we go from here? CFD in 2001 | John C. Chien | Main CFD Forum | 36 | January 24, 2001 21:10 |
ASME CFD Symposium, Atlanta, July 2001 | Chris R. Kleijn | Main CFD Forum | 0 | August 21, 2000 04:49 |
Which is better to develop in-house CFD code or to buy a available CFD package. | Tareq Al-shaalan | Main CFD Forum | 10 | June 12, 1999 23:27 |
public CFD Code development | Heinz Wilkening | Main CFD Forum | 38 | March 5, 1999 11:44 |