API Reference

This section documents the public Python API of GenSec. The documentation is generated automatically from docstrings using sphinx.ext.autodoc.

The package is organized into four subpackages and two top-level modules:

Subpackage / Module

Responsibility

gensec.materials

Constitutive laws: abstract base, concrete, steel, tabulated, EC2/EN 10025 property tables, bridge factories.

gensec.geometry

Section definition: point fibers, parametric primitives, generic polygon meshing, backward-compatible rectangular wrapper.

gensec.solver

Fiber integration, Newton–Raphson equilibrium solver, N-M / N-Mx-My diagram generation, demand verification.

gensec.output

Plotting, CSV/JSON export, terminal reporting.

gensec.io_yaml

YAML input loader.

gensec.cli

Command-line interface entry point.