API reference#

The element classes, their Data and Probe classes, the classes of the co-rotational layer for large rotations, e.g. CorotationalModel, and the constants DOF, INT and DOUBLE are available directly from the pyfe3d namespace, and the solvers from pyfe3d.solver; the finite-rotation utilities of the co-rotational layer, e.g. expso3, are imported from pyfe3d.corotational, as are its classes:

Finite elements for 3D problems in Python/Cython#

The pyfe3d namespace gives the element classes Quad4, Quad4R, Tria3R, Tria3DSG, BeamC, BeamLR, Truss and Spring, each with its Data and Probe classes (e.g. BeamCData and BeamCProbe), the classes of the element-independent co-rotational (EICR) layer for large rotations of pyfe3d.corotational, CorotationalModel, which assembles a model, and the wrappers of one element each, CorotationalShell, CorotationalBeam, CorotationalTruss and CorotationalSpring, and the module pyfe3d.solver. The finite-rotation utilities of the co-rotational layer, e.g. pyfe3d.corotational.expso3(), are imported from pyfe3d.corotational. It also defines:

  • DOF = 6: number of degrees of freedom per node;

  • INT: NumPy integer type of the C long of the platform, np.int64 when a C long has 8 bytes and np.int32 otherwise, matching the long arrays of row and column indices of the update_* methods of the elements;

  • DOUBLE = np.float64: NumPy type of the arrays of values.