|
[Sponsors] |
September 24, 2018, 07:19 |
Learning cfd with python
|
#1 |
New Member
Balaji
Join Date: Sep 2018
Posts: 2
Rep Power: 0 |
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. |
|
September 24, 2018, 11:06 |
|
#2 |
Member
Refik
Join Date: Dec 2014
Location: Turkey
Posts: 58
Rep Power: 12 |
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. |
|
September 24, 2018, 11:16 |
|
#3 |
Senior Member
Joern Beilke
Join Date: Mar 2009
Location: Dresden
Posts: 539
Rep Power: 20 |
||
September 25, 2018, 02:47 |
|
#4 |
Senior Member
Join Date: Mar 2009
Posts: 157
Rep Power: 17 |
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 |
|
October 21, 2018, 03:31 |
|
#5 |
Senior Member
|
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). |
|
Tags |
matlab, openfoam, python |
|
|
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 |