MATLAB to Python Mapping#
This note maps the original MATLAB FemLab toolbox under FemLab_matlab/M_Files/ to the current femlabpy package layout.
Core Utilities#
MATLAB |
Python |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Material Helpers#
MATLAB |
Python |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
Element Kernels#
MATLAB |
Python |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Plotting and Mesh I/O#
MATLAB |
Python |
|---|---|
|
|
|
|
|
|
|
|
|
|
The Gmsh loaders now expose both the normalized Python mesh fields (positions,
triangles, element_infos, …) and the legacy MATLAB aliases (POS,
TRIANGLES, ELE_INFOS, nbTriangles, MIN, MAX, …).
Original Example Coverage#
MATLAB example |
Python entry point |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
The nonlinear and plastic drivers now live in femlabpy.solvers, and the example inputs needed for installed-package parity are packaged under femlabpy.data.cases.
MATLAB Compatibility Aliases#
The package also exposes the original classroom script names as documented Python wrappers with explicit arguments:
MATLAB name |
Python compatibility wrapper |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
These wrappers are designed for help() / docstring discovery and for users coming directly from the original MATLAB notes. Internally they call the vectorized femlabpy kernels and solvers.