|
[Sponsors] |
FloEFD API from Python script. Set2DTableData problem. |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 6, 2018, 08:00 |
FloEFD API from Python script. Set2DTableData problem.
|
#1 |
New Member
Dmitry Grigoryev
Join Date: Feb 2018
Posts: 2
Rep Power: 0 |
Hello,
A try to set up boundary conditions in FloEFD project from python script and I have a problem with setting up the data for Table dependency parameter. I call the FloEFD API function like this(for example, arrays of length 1): Code:
error = param.Set2DTableData([0.015], [2.0]) Code:
_, valueX, valueF = param.Get2DTableData() Code:
valueX = (2.5e-323,) valueF = (2.5e-323,) |
|
March 28, 2018, 08:51 |
|
#2 |
Disabled
Join Date: Jul 2009
Posts: 616
Rep Power: 24 |
Hi Dmitry,
The API is meant for VBA, VB, and VC++. I cannot tell if there is any compatibility with Python and wouldn't trust it delivering correct values. Have you tried it in the supported languages in a simple example to see what the feedback there is? Regards, Boris |
|
May 4, 2018, 09:41 |
|
#3 | |
New Member
Dmitry Grigoryev
Join Date: Feb 2018
Posts: 2
Rep Power: 0 |
Quote:
Python example: Code:
win32com.client.VARIANT(pythoncom.VT_ARRAY | pythoncom.VT_R8, value) Boris, thanks for your advice, it was really helpful for me. |
||
Tags |
api, floefd, floefd api, python |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Slicing extracted part of a volume in Python script | wilmbas | OpenFOAM Post-Processing | 4 | April 28, 2016 18:14 |
[ICEM] Automatic mesh generation script surface intersection problem | stuart23 | ANSYS Meshing & Geometry | 0 | May 13, 2011 02:10 |
FloEFD API - SolidWorks Modeling | j.gerber | FloEFD, FloWorks & FloTHERM | 10 | December 7, 2010 22:14 |
[ICEM] Problem in geometry creation by script | lavoz | ANSYS Meshing & Geometry | 4 | March 12, 2010 11:56 |
ICEM script problem | Zbynek | CFX | 0 | October 12, 2004 08:05 |