CFD Online Logo CFD Online URL
Home > Forums > General Forums > Main CFD Forum

Learning cfd with python

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

Like Tree4Likes
  • 1 Post By rewol
  • 2 Post By JBeilke

LinkBack Thread Tools Search this Thread Display Modes
Old   September 24, 2018, 06:19
Default Learning cfd with python
New Member
Join Date: Sep 2018
Posts: 2
Rep Power: 0 is on a distinguished road

I want to learn to code in python for cfd problems.

Around the internet I find resources for matlab and openfoam.

I specifically need python resources since it is open source ,easy to code .

Kindly help me in referring some free online resources for learning CFD through python.

Thanks in advance for your help,
Have a great time. is offline   Reply With Quote

Old   September 24, 2018, 10:06
Join Date: Dec 2014
Location: Turkey
Posts: 56
Rep Power: 11
rewol is on a distinguished road
I genuinely do not think you should look for references or case studies that include CFD application with python.

What is important is that you study the problem and the appropriate CFD method that can accurately solve the problem. Once determined, coding for the solution can be performed with any computer language that you are comfortable with. The rest is just to learn how the Python's syntax works through simple python books, courses etc.

ViniSpark likes this.
rewol is offline   Reply With Quote

Old   September 24, 2018, 10:16
Senior Member
Joern Beilke
Join Date: Mar 2009
Location: Dresden
Posts: 502
Rep Power: 20
JBeilke is on a distinguished road
elvis and AtoHM like this.
JBeilke is offline   Reply With Quote

Old   September 25, 2018, 01:47
Senior Member
Ford Prefect's Avatar
Join Date: Mar 2009
Posts: 151
Rep Power: 17
Ford Prefect is on a distinguished road
Just a comment regarding other options;

Octave is an opensource version of matlab, so if you have matlab scripts it's just copy-paste.

Julia is a relatively new high performance language with many nice features aimed at solving numerical problems such as CFD.

Some benchmarks with different options:
"Trying is the first step to failure." - Homer Simpson
Ford Prefect is offline   Reply With Quote

Old   October 21, 2018, 02:31
Senior Member
Join Date: Mar 2009
Location: Sindelfingen, Germany
Posts: 620
Blog Entries: 6
Rep Power: 24
elvis will become famous soon enough
Hi, not directly what you looking for as it makes openfoam(c++) useable from python. And it has not been updated since mid 2012. As you can see pythonFlu coding almost coincides with the referenced OpenFOAM one. Some pythonFlu C++ differences (like usage of namespaces, includes and libraries) lead to a better structured and clearer solver code definition. The differences which come from Python, C++ and SWIG wrapping natures are explicitly highlighted by "ext_" prefix.

So, once you are familiar with OpenFOAM it would be nothing for you to start using pythonFlu. To be able to program your own solver in pythonFlu terms you need to know OpenFOAM API (the referenced documentation could be found here).
elvis is offline   Reply With Quote


matlab, openfoam, python

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
FORTRAN learning resources for CFD coding mechie94 CFD Freelancers 1 May 24, 2017 00:15
CFD distance learning courses? Percy Main CFD Forum 1 July 26, 2009 01:11
Where do we go from here? CFD in 2001 John C. Chien Main CFD Forum 36 January 24, 2001 21:10
CFD for fans & blower housings David Carroll Main CFD Forum 8 August 24, 2000 17:25
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

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