This directory contains the Gmsh Python tutorials, written using the Gmsh Python API. To run the Python tutorials, you need the Gmsh dynamic library and the Python module (`gmsh.py'). These can be either obtained - using `pip install --upgrade gmsh', which will download the binary Software Development Kit (SDK) from the Gmsh website and install the necessary files automatically. - by downloading the SDK for your operating system from the Gmsh website, uncompressing the gmsh*-sdk.* archive and adding the "lib" directory to PYTHONPATH. For example, if you are currently in the root directory of the uncompressed SDK: export PYTHONPATH=${PYTHONPATH}:${PWD}/lib - by compiling the Gmsh source code. Follow these steps in the top-level directory of the Gmsh source code: mkdir build cd build cmake -DENABLE_BUILD_DYNAMIC=1 .. make make install cd .. Add the installation directory (by default /usr/local/lib) to PYTHONPATH, e.g. export PYTHONPATH=${PYTHONPATH}:/usr/local/lib You can then run e.g. "python t1.py" For other Python API examples, see the `demos/api' directory.
Generated by dwww version 1.15 on Sat May 18 08:44:40 CEST 2024.