morphogen.laser.figures

Figures of laser-architectured sheets (matplotlib, headless): the hardness map of the parallel part with the tracks, the engineering curves of several designs, the plastic strain on the deformed specimen, the history of an optimization.

morphogen.laser.figures.hardness_figure(maps: dict, path=None, *, title: str = '')[source]

The hardness through the thickness (mean, and the upper and lower layers) of the parallel part, the axes of the tracks drawn over it.

morphogen.laser.figures.curves_figure(designs: dict)[source]

Engineering curves of designs (name -> SheetResult; in tension their maxima marked, in bending the load against the deflection), each direction of a design with several.

morphogen.laser.figures.strain_figure(res, *, magnify: float = 1.0, title: str = '')[source]

The equivalent plastic strain (mean over the Gauss points and layers of each element) on the deformed mesh at the end of the test.

morphogen.laser.figures.history_figure(opt_out)[source]

The objective of each evaluation and the best feasible one so far; with two parameters, the evaluations in their plane, coloured by objective.

morphogen.laser.figures.write_figures(case, designs: dict, opt_out, out: Path, *, resolution: float = 0.05) → list[source]

Write hardness.png (the best design), curves.png, strain.png and, after an optimization, history.png; returns the paths.

morphogen.laser.figures.cells_figure(grid, designs: dict, curves: dict, path=None, *, title: str = '')[source]

Cellular designs ({name: design} on grid, the treated cells dark) above their engineering curves ({name: (strain, stress, failure strain)}, the failure marked).