GPL-3.0 · TypeScript
@edubeam/plot
Vue components that draw plane structures and their results, in the figures’ own style.
By Jan Voříšek
Try it
A frame solved by @edubeam/fem on this page. Change what is drawn; the code follows.
<StructurePlot
:solver="solver"
:layers="[
'members', 'supports', 'loads', 'reactions', 'M',
]"
/>Made for teaching material
A model in code is a figure that can't go out of date: change a number and the drawing, the reactions and the diagrams follow. A seed picks a new exercise; the same seed always gives the same one. This site's practice problems and exam builder are made this way.
Three-hinged frame
H4820A frame 6 m wide and 4 m high, on pins at A and E, with a hinge at the crown C. The beam carries q = 12 kN/m over its left half, and F = 5 kN pushes B to the right. Find the support reactions and the largest bending moment.
Answer key
- Exercises and tests One exercise per student from a seed, with its answer key, printed or as figures for LaTeX and Word.
- Slides and notes Figures that build up click by click in Slidev, Vue or Beamer, solved live.
- In your docs and apps Vite, VitePress or Nuxt, rendered on the server, or from pre-solved JSON.
- Files for print A standalone SVG with plain colours, for Word, LaTeX and Inkscape.
What it does
In the figures’ style
Members, supports, loads, reactions and hatched diagrams as on this site, with chain dimensions and named unknown reactions for exercise sheets.
Readable at any size
Text and lines keep their pixel size; values that would collide are moved or dropped, never clipped.
Exact
Diagrams are the solver’s own polynomials: extremes found exactly, steps at point loads drawn as steps.
Fits a page
Colours from your CSS, light and dark. Renders on the server and never captures scrolling.