pycba.render#

PyCBA - Beam & loading schematic rendering.

Two backends draw the structural model (the beam, its supports and the applied loads) directly from a pycba.beam.Beam:

Both backends share a single inference pass (BeamPlotter) that turns the restraint vector and load matrix into backend-agnostic support and load descriptors, so the structural interpretation is written once.

The support symbols follow the usual drafting convention: the first vertical-restraining support is drawn as a pin and the remainder as rollers (PyCBA’s 2-DOF-per-node model does not distinguish them mechanically, and pycba.utils.parse_beam_string() deliberately discards the P/R distinction); a fully-restrained node is an encastre wall; a positive (spring) stiffness is a spring.

Classes

BeamPlotter

Render a pycba.beam.Beam as a structural schematic.

DistLoad

A (possibly trapezoidal / partial) distributed load in global coords.

Hinge

An internal moment release at a node, in global coordinates.

MomentLoad

A concentrated moment (+ is counter-clockwise) in global coords.

PointLoad

A concentrated transverse load (+ is downward) in global coords.

Support

A support inferred from the restraint vector, in global coordinates.