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 |
|---|---|
|
the model file |
validate¶
Check a model, including its gwfl expressions.
getfem_lab validate [-h] [--python PYTHON] model
Argument |
Meaning |
|---|---|
|
the model file |
|
Python interpreter that provides GetFEM |
mesh¶
Build the meshes (cached).
getfem_lab mesh [-h] [-m MESH] [--force] [-w WORKDIR] [--python PYTHON]
model
Argument |
Meaning |
|---|---|
|
the model file |
|
mesh name (repeatable) |
|
ignore the cache |
|
working directory (default: <model>_run/) |
|
Python interpreter that provides GetFEM |
generate¶
Write the getfem solve script.
getfem_lab generate [-h] [-o OUTPUT] [-w WORKDIR] [--python PYTHON]
model
Argument |
Meaning |
|---|---|
|
the model file |
|
output file (default: standard output) |
|
working directory (default: <model>_run/) |
|
Python interpreter that provides GetFEM |
run¶
Mesh then solve.
getfem_lab run [-h] [-w WORKDIR] [--python PYTHON] model
Argument |
Meaning |
|---|---|
|
the model file |
|
working directory (default: <model>_run/) |
|
Python interpreter that provides GetFEM |
export¶
Write a standalone python script (meshing and solving).
getfem_lab export [-h] [-o OUTPUT] model
Argument |
Meaning |
|---|---|
|
the model file |
|
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 |
|---|---|
|
the model file |
|
geometry name |
|
output file; its suffix gives the format |
|
working directory (default: <model>_run/) |
|
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 |
|---|---|
|
the model file |
|
mesh name |
|
output file; its suffix gives the format |
|
working directory (default: <model>_run/) |
|
Python interpreter that provides GetFEM |
gui¶
Open the graphical interface (requires pyside6).
getfem_lab gui [-h] [--python PYTHON] [--no-splash] [model]
Argument |
Meaning |
|---|---|
|
the model file |
|
Python interpreter that provides GetFEM |
|
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 interpreter that provides GetFEM (given to the interface) |
|
remove them |
