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:
BeamPlotter.render_mpl()- a native matplotlib schematic drawn on labelled axes (distance along the beam), using structural symbols for the supports and arrows for the loads.BeamPlotter.render_tikz()- a TikZ/stanli.texdocument for publication-quality output, optionally compiled to PDF withpdflatexviaBeamPlotter.save_tikz().
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
Render a |
|
A (possibly trapezoidal / partial) distributed load in global coords. |
|
An internal moment release at a node, in global coordinates. |
|
A concentrated moment ( |
|
A concentrated transverse load ( |
|
A support inferred from the restraint vector, in global coordinates. |