Skip to content

hertzforge.still

still

A still picture of a geometry with DOFs marked as arrows (hertzforge still).

The picture is drawn by the app's own 3-D view, as the recorder draws a video's frames (record): the geometry's surface and mesh lines as the app shows it, in the light or dark theme, with a solid arrow at each DOF the named objects measure, in its axis's color. A force or a drive voltage points in and ends on its node; every other DOF points out from it. Each object's arrows that point in, and those that point out, are sized to their own spacing, and a few arrows have their DOFs written at their free ends. Free nodes, those no element is drawn through, are left off: on a finite element model they are masses and spider centers that read as specks. Drawn see-through, the surface keeps its element colors.

A test's DOFs name the nodes of the test geometry they were measured on, which are other nodes of a finite element mesh, so the DOFs are placed by position when they are drawn on a geometry other than their own (drawing.viz.geometry.dof_arrows_on): each at the nearest node of the geometry drawn, as DOF Mapping matches a test to a model. A DOF with no node near enough is refused by name, never guessed.

Classes:

Name Description
StillError

A picture that cannot be made, in words for the person making it.

Still

What a still picture is made of, and how it is drawn.

Functions:

Name Description
measured_on

The geometry linked with name in its object group, or None. The active geometry is not

marked_dofs

The DOFs obj measures and whether each points in (a force or a drive voltage): a data

still_view

The shape3d view the picture is drawn from: the app's view of the geometry alone, its

still_page

The report viewer's page with the picture's view on it, ready for a browser to draw.

write_still

The picture drawn in headless Chrome and written to output, a PNG; its path.

Classes

StillError

Bases: RecordError

A picture that cannot be made, in words for the person making it.

Still dataclass

Still(geometry: str, dofs: Sequence[str] = tuple(), on: str | None = None, distance: float | None = None, width: int = 1920, height: int = 1080, opacity: float = 1.0, view: str = 'iso', eye: Sequence[float] | None = None, up: Sequence[float] | None = None, frame: Sequence[str] | None = None, theme: str = 'dark', labels: bool | None = None)

What a still picture is made of, and how it is drawn.

geometry is drawn, with an arrow at every DOF each object in dofs measures: every record's DOF of a data object (a frequency response's references as well as its responses), or every channel's of a channel table. on names the geometry their node ids belong to; when it is None each object's is the geometry linked with it, and an object linked with none is refused, since its ids then name no place. On a geometry other than geometry the DOFs are placed by position, no further than distance from a node of geometry (meters when the units are defined; the match distance DOF Mapping opens on when None). opacity, view, eye, up, frame and theme are the recorder's (record.Recording): how solid the surface is, the camera, the element groups it is framed on, and the light or dark look. labels writes each arrow's DOF at its free end; when None they are written for at most LABEL_LIMIT arrows.

Functions:

measured_on

measured_on(project: Any, name: str) -> str | None

The geometry linked with name in its object group, or None. The active geometry is not a fallback here: a data object no geometry is linked with may name any nodes.

marked_dofs

marked_dofs(obj: Any, name: str) -> tuple[list[str], list[bool]]

The DOFs obj measures and whether each points in (a force or a drive voltage): a data object's at every quantity it measures (core.report.series_quantity_dofs), a channel table's at every channel with a node and a direction.

still_view

still_view(project: Any, still: Still) -> dict[str, Any]

The shape3d view the picture is drawn from: the app's view of the geometry alone, its free nodes left off, with the DOF arrows, opening at the still's opacity and camera and framed on its element groups; StillError saying why it cannot be drawn.

still_page

still_page(project: Any, still: Still) -> str

The report viewer's page with the picture's view on it, ready for a browser to draw.

write_still

write_still(project: Any, still: Still, output: str | PathLike) -> Path

The picture drawn in headless Chrome and written to output, a PNG; its path.