API & GUI

Start GMSH GUI from Python

(probably best before gmsh.finalize())

gmsh.fltk.run()

Onelab server: interactive GUI

You saw previously how to make a parameter mutable through the GUI. For example, a parameter

R = DefineNumber[1, Min 0.1, Max 10, Step 0.1, Name "Geometry/Radius"];

Using the Python API, this commands becomes

# Parameters
# set a single parameter
gmsh.onelab.set("""
{ "type":"number", "name":"Geometry/Radius", "values":[1], "step":0.1, "min":0.1, "max":10  }
""")

This variable can be then access through… [to be continued, sorry!]

Previous
Next