File: README.txt

package info (click to toggle)
gmsh 4.13.1%2Bds1-6
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 96,160 kB
  • sloc: cpp: 434,242; ansic: 114,885; f90: 15,323; python: 13,442; yacc: 7,299; java: 3,491; lisp: 3,191; lex: 630; perl: 571; makefile: 497; sh: 439; xml: 414; javascript: 113; pascal: 35; modula3: 32
file content (33 lines) | stat: -rw-r--r-- 1,120 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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) and install the necessary files automatically.

- by manually 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 `examples/api' directory.