CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   Main CFD Forum (http://www.cfd-online.com/Forums/main/)
-   -   c++ and cfd (http://www.cfd-online.com/Forums/main/97185-c-cfd.html)

doorna February 10, 2012 16:35

c++ and cfd
 
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

arjun February 10, 2012 21:46

Read Prof. Peric's book, it contain ALL the information that you would need to write a working navier stokes code for incompressible flow.

doorna February 11, 2012 03:50

Quote:

Originally Posted by arjun (Post 343882)
Read Prof. Peric's book, it contain ALL the information that you would need to write a working navier stokes code for incompressible flow.

Dear arjun
Thanks a lot for your advice.Can you plz tell me full name of the book you mentioned?

hadian February 12, 2012 13:46



Computational Methods for Fluid Dynamics by: Joel H. Ferziger and Milovan Peric, .

link to amazon: http://www.amazon.com/Computational-.../dp/3540594345

arjun February 12, 2012 23:29

thank you for putting the link. I sent him a pm I guess it would be better to post here.

Thanks

Quote:

Originally Posted by hadian (Post 344031)

Computational Methods for Fluid Dynamics by: Joel H. Ferziger and Milovan Peric, .

link to amazon: http://www.amazon.com/Computational-.../dp/3540594345


rob_85 February 13, 2012 05:05

UDF solver_par
 
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 = PTYiM/RMbulk

As for the solver_par.molWeight[gas_index] I don't quite understand its meaning..

Thanks in advance!!

Rob.


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