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

coding solver with C++/python

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 1, 2018, 05:12
Question coding solver with C++/python
  #1
Senior Member
 
Join Date: Oct 2017
Location: United States
Posts: 233
Blog Entries: 1
Rep Power: 10
TurbJet is on a distinguished road
Greetings,

A general question here.

Sometimes I see some people saying that they are using both C++ and python for their own solver. I can totally see C++ as their main coding language considering it's efficiency and all. However I don't see why they mix python into it. What makes python useful in this business? And what for?

Thx !
TurbJet is offline   Reply With Quote

Old   August 1, 2018, 05:38
Default
  #2
Senior Member
 
sbaffini's Avatar
 
Paolo Lampitella
Join Date: Mar 2009
Location: Italy
Posts: 2,192
Blog Entries: 29
Rep Power: 39
sbaffini will become famous soon enoughsbaffini will become famous soon enough
Send a message via Skype™ to sbaffini
Without further details one can only guess it is either used for the GUI or general solver management via scripting
sbaffini is offline   Reply With Quote

Old   August 1, 2018, 16:31
Default
  #3
Senior Member
 
Join Date: Oct 2017
Location: United States
Posts: 233
Blog Entries: 1
Rep Power: 10
TurbJet is on a distinguished road
Quote:
Originally Posted by sbaffini View Post
Without further details one can only guess it is either used for the GUI or general solver management via scripting
Could you give some further details about the second point you raised? I mean the scripting thing
TurbJet is offline   Reply With Quote

Old   August 1, 2018, 16:37
Default
  #4
Senior Member
 
sbaffini's Avatar
 
Paolo Lampitella
Join Date: Mar 2009
Location: Italy
Posts: 2,192
Blog Entries: 29
Rep Power: 39
sbaffini will become famous soon enoughsbaffini will become famous soon enough
Send a message via Skype™ to sbaffini
Consider this example:

https://openfoamwiki.net/index.php/Contrib/PyFoam

However, I'm just guessing here, you should ask to whom said that
sbaffini is offline   Reply With Quote

Old   August 1, 2018, 16:43
Default
  #5
Senior Member
 
Join Date: Oct 2017
Location: United States
Posts: 233
Blog Entries: 1
Rep Power: 10
TurbJet is on a distinguished road
Quote:
Originally Posted by sbaffini View Post
I just skimmed through this webpage. What I get is Python is mainly used for data manipulation and some other stuff. So is it safe to say python is good for being an "interface"? If so, what makes python good at this?
TurbJet is offline   Reply With Quote

Old   August 2, 2018, 06:22
Default
  #6
Senior Member
 
sbaffini's Avatar
 
Paolo Lampitella
Join Date: Mar 2009
Location: Italy
Posts: 2,192
Blog Entries: 29
Rep Power: 39
sbaffini will become famous soon enoughsbaffini will become famous soon enough
Send a message via Skype™ to sbaffini
Still "personal opinion" territory, but I guess it is because it is an open source, scripted language with a lot of useful open source libraries.
sbaffini is offline   Reply With Quote

Reply

Tags
coding skills.., computer language, solver


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
fluent divergence for no reason sufjanst FLUENT 2 March 23, 2016 17:08
thobois class engineTopoChangerMesh error Peter_600 OpenFOAM 4 August 2, 2014 10:52
3d vof Smaras FLUENT 2 February 19, 2013 07:58
Working directory via command line Luiz CFX 4 March 6, 2011 21:02
why the solver reject it? Anyone with experience? bearcat CFX 6 April 28, 2008 15:08


All times are GMT -4. The time now is 07:52.