Command line

getfem_lab COMMAND ... (the command installed by pip install -e lab), or python -m getfem_lab COMMAND ... from the lab directory. Without a command (no argument, or a model file and the options of gui), the graphical interface opens.

new

Create a starting model.

getfem_lab new [-h] model

Argument

Meaning

model

the model file

validate

Check a model, including its gwfl expressions.

getfem_lab validate [-h] [--python PYTHON] model

Argument

Meaning

model

the model file

--python

Python interpreter that provides GetFEM

mesh

Build the meshes (cached).

getfem_lab mesh [-h] [-m MESH] [--force] [-w WORKDIR] [--python PYTHON]
                       model

Argument

Meaning

model

the model file

-m, --mesh

mesh name (repeatable)

--force

ignore the cache

-w, --workdir

working directory (default: <model>_run/)

--python

Python interpreter that provides GetFEM

generate

Write the getfem solve script.

getfem_lab generate [-h] [-o OUTPUT] [-w WORKDIR] [--python PYTHON]
                           model

Argument

Meaning

model

the model file

-o, --output

output file (default: standard output)

-w, --workdir

working directory (default: <model>_run/)

--python

Python interpreter that provides GetFEM

run

Mesh then solve.

getfem_lab run [-h] [-w WORKDIR] [--python PYTHON] model

Argument

Meaning

model

the model file

-w, --workdir

working directory (default: <model>_run/)

--python

Python interpreter that provides GetFEM

export

Write a standalone python script (meshing and solving).

getfem_lab export [-h] [-o OUTPUT] model

Argument

Meaning

model

the model file

-o, --output

output file (default: standard output)

export-geometry

Write a geometry as svg, dxf (2d), stl, obj, ply, vtp (3d), step, iges, brep.

getfem_lab export-geometry [-h] [-w WORKDIR] [--python PYTHON]
                                  model geometry output

Argument

Meaning

model

the model file

geometry

geometry name

output

output file; its suffix gives the format

-w, --workdir

working directory (default: <model>_run/)

--python

Python interpreter that provides GetFEM

export-mesh

Write a mesh as getfem (.mesh), vtk (.vtu, .vtk), gmsh (.msh), abaqus (.inp).

getfem_lab export-mesh [-h] [-w WORKDIR] [--python PYTHON]
                              model mesh output

Argument

Meaning

model

the model file

mesh

mesh name

output

output file; its suffix gives the format

-w, --workdir

working directory (default: <model>_run/)

--python

Python interpreter that provides GetFEM

gui

Open the graphical interface (requires pyside6).

getfem_lab gui [-h] [--python PYTHON] [--no-splash] [model]

Argument

Meaning

model

the model file

--python

Python interpreter that provides GetFEM

--no-splash

no start-up window (also: environment variable GETFEM_LAB_NO_SPLASH)

install-desktop

Linux: install the desktop file and the icon of the interface (~/.local/share), which opens it as now (interpreter, pythonpath).

getfem_lab install-desktop [-h] [--python PYTHON] [--uninstall]

Argument

Meaning

--python

Python interpreter that provides GetFEM (given to the interface)

--uninstall

remove them