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

Learning cfd with python

Register Blogs Community New Posts Updated Threads Search

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 24, 2018, 07: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, 11:06
Default
  #2
Member
 
Refik
Join Date: Dec 2014
Location: Turkey
Posts: 58
Rep Power: 12
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.
ViniSpark likes this.
rewol is offline   Reply With Quote

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

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



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

Old   October 21, 2018, 03:31
Default
  #5
Senior Member
 
Elvis
Join Date: Mar 2009
Location: Sindelfingen, Germany
Posts: 620
Blog Entries: 6
Rep Power: 24
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


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 01:15
CFD distance learning courses? Percy Main CFD Forum 1 July 26, 2009 02:11
Where do we go from here? CFD in 2001 John C. Chien Main CFD Forum 36 January 24, 2001 22:10
CFD for fans & blower housings David Carroll Main CFD Forum 8 August 24, 2000 18: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 13, 1999 00:27


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