GiD 16.1.2d developer will include includes a Tcl package called tohil
that provides ways to exchange data and execute code between the Python and Tcl interpreters. (Tohil is included since GiD 16.1.2d developer)
The documentation of tohil
is at https://flightaware.github.io/tohil-docs/
A python interpreter (initial version is included with Tohil inside GiD (GiD 17.0 has Python 3.12.3, previous developer versions had Python 3.10.5 ) will be included inside this package and some common modules
...
or 3.10.8)
This is a list of some common Python modules, required by GiD Tcl plugins invoking Python (like meshio, pybaqus, meshfix):
numpy : efficient use of arrays
matplotlib 3.6.1 : to plot graphs
meshio 5.4.3 : to convert : conversion between several mesh formats
h5py 3.7.0 : to read/write HDF5 scientific data format
netCDF4 1.6.1 : to read/write netCDF4 scientific data format
debugpy 1.6.3 : to allow debug of : debugging Python from VSCode editor in case of embedded Python interpreter
Note: It is possible to install more Pyhton modules using the pip standard way of python (pip install <module>)
<GiD>\scripts\tohil\python\scripts\pip.exe
modules will be located at
<GiD>\scripts\tohil\python\lib\site-packages
Note: probably must run pip in a console opened in Windows ‘as administrator’ (otherwise Windows doesn’t allow to copy the files if GiD is installed in ‘Program files’ as usual). In Linux do it as ‘sudo’In preliminary versions these modules were included in the GiD installer, but since GiD 16.1.4d, they will installed on demand by the functions of GiD plugins that require them, and off course could be easily installed manually from the GiD Tcl command line with a command like this:
-np- GiD_Python_PipInstall {matplotlib}