CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

Learning cfd with python

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

Like Tree1Likes
  • 1 Post By JBeilke

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 24, 2018, 06:19
Default Learning cfd with python
  #1
New Member
 
Balaji
Join Date: Sep 2018
Posts: 2
Rep Power: 0
saivignesh786@gmail.com is on a distinguished road
Hai

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.
saivignesh786@gmail.com is offline   Reply With Quote

Old   September 24, 2018, 10:06
Default
  #2
Member
 
Refik
Join Date: Dec 2014
Location: Turkey
Posts: 49
Rep Power: 7
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.

Regards.
rewol is offline   Reply With Quote

Old   September 24, 2018, 10:16
Default
  #3
Senior Member
 
Joern Beilke
Join Date: Mar 2009
Location: Dresden
Posts: 344
Rep Power: 15
JBeilke is on a distinguished road
https://github.com/barbagroup/CFDPython
elvis likes this.
JBeilke is offline   Reply With Quote

Old   September 25, 2018, 01:47
Default
  #4
Senior Member
 
Ford Prefect's Avatar
 
Join Date: Mar 2009
Posts: 114
Rep Power: 13
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:



https://julialang.org/benchmarks/
__________________
"Trying is the first step to failure." - Homer Simpson
Ford Prefect is offline   Reply With Quote

Old   October 21, 2018, 02:31
Default
  #5
Senior Member
 
Elvis
Join Date: Mar 2009
Location: Sindelfingen, Germany
Posts: 611
Blog Entries: 5
Rep Power: 20
elvis will become famous soon enough
Hi,
http://pythonflu.wikidot.com/ not directly what you looking for as it makes openfoam(c++) useable from python. And it has not been updated since mid 2012.

http://pythonflu.wikidot.com/new-crash-course 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

Reply

Tags
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 01:39.