CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Main CFD Forum (https://www.cfd-online.com/Forums/main/)
-   -   Simple algorithm for incompresible flow (https://www.cfd-online.com/Forums/main/15112-simple-algorithm-incompresible-flow.html)

 Marek Dominiak April 23, 2008 18:50

Simple algorithm for incompresible flow

Hello!

I have to implement Navier-Stokes equations in simple case - I mean it can be incompresible flow. I have to implement this in C using ADI method - I think that this is no so trivial task as I've thinking. I found some information about N-S equations but it's not so simple for me - I don't know which variables in these equations are very important and which I can avoid:

- can I avoid density ? (only velocity field is important for me in this case) - can I set viscosity to be constant ?

and so on ... I have many questions about this an after one week fights against this problem and searching in the internet informations can help me I'm only confused ...

Maybe someone have tutorial where this problem is solved ?

Maybe someone could share his/her code where N-S equations in simple case is solved (source can be in C, C++, JAVA (or other high-level programming language)) ?

For any reply thank you very much.

Best Regards Marek Dominiak

 N Kim April 23, 2008 22:49

Re: Simple algorithm for incompresible flow

OpenFOAM for little complicated. A decent one that I am basing my research is iNavier. There are more.

 ztdep April 25, 2008 10:28

Re: Simple algorithm for incompresible flow

I sugest you to download our teaching program about the simple algorith, i think it is very suitable for you. nht.xjtu.edu.cn

 Marek Dominiak April 25, 2008 11:03

Re: Simple algorithm for incompresible flow

Could you put here direct link for this program? I couldn't open this site: nht.xjtu.edu.cn, even if I could open this site I think that I may problems with finding this program - I don't know Chinese language. Thank you for response. Best Regards Marek Dominiak

 Marek Dominiak April 25, 2008 11:06

Re: Simple algorithm for incompresible flow

Thanks for this information - I will look at this program (and sources). Thank for reponse Best Regards Marek Dominiak

 andy2O April 25, 2008 14:02

Re: Simple algorithm for incompresible flow

"I found some information about N-S equations but it's not so simple for me - I don't know which variables in these equations are very important and which I can avoid"

What is your goal? A university assignment, or something else?

I think your task will be *much* *much* easier if you become more familiar with the theory and numerics of flow equations before you start programming (or even reading other peoples code)! You will find a clear explanation of the algorithms you need to implement in the book:

S.V. Patanker, Numerical Heat Transfer and Fluid Flow (Series in Computational Methods in Mechanics and Thermal Sciences), Taylor & Francis, London, 1980.

Regards, andy

 ztdep April 26, 2008 03:43

Re: Simple algorithm for incompresible flow

Dear friends: send a e mail to me, i will send the code back to you. ztdep@yahoo.com.cn regards

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