Using CALFEM for Python¶
For the main introduction to CALFEM, the finite element workflow, and the standard function groups, see the CALFEM manual. This page only summarizes the Python package layout and points to the local Python-specific documentation.
What is CALFEM for Python?¶
- Subset of CALFEM routines implemented in Python
- Using NumPy for matrices
- Additional mesh generation routines supporting Triangle and GMSH
- Plotting with Matplotlib and visvis
CALFEM Python modules¶
- calfem.core
- Element routines
- System routines
- calfem.utils
- I/O routines
- Misc. routines
- calfem.geometry
- Routines for defining problem geometry used for input in mesh generation
- calfem.mesh
- Mesh generation routines
- calfem.vis/calfem.vis_mpl
- Routines for visualising geometry, meshes and results.
Examples¶
The CALFEM manual contains the canonical worked examples. This documentation keeps only the Python-specific mesh examples locally.
For background on the standard element, system, graphics, utility, and matrix functions, use the manual together with the local function reference.