Skip to content

hertzforge.service.group_cells

group_cells

An element group's properties as cells of the Element Groups table.

The properties a finite element model needs (fem.GroupProperties), one column each: a material, picked from the library or typed number by number; a thickness for plates; a section and an orientation for beams, by a shape and its dimensions or by its four numbers; a mass for points; a stiffness for points and lines, which makes them springs; the directions held for points, which makes them ground. Values are stored and typed in SI. A geometry whose units are not declared holds its own numbers, and the headings say so.

Functions:

Name Description
titles

The columns' headings, naming SI, or saying the numbers are the

choices

What the Material and Shape cells offer. The materials are a

family

'face', 'volume', 'line' or 'point': what an element group's

cell

The text of one property cell; blank until it is set.

cells

One group's property cells, in COLUMNS order.

set_cell

One property cell typed; a ValueError says why it was refused. A mass,

Functions:

titles

titles(geometry: Any) -> list[str]

The columns' headings, naming SI, or saying the numbers are the file's own while the geometry's units are not declared.

choices

choices() -> dict[str, list[str]]

What the Material and Shape cells offer. The materials are a shortlist: any other name is a name, its numbers typed beside it.

family

family(geometry: Any, group: int) -> str

'face', 'volume', 'line' or 'point': what an element group's elements are; 'mixed' when they differ, '' when it has none.

cell

cell(geometry: Any, group: int, key: str) -> str

The text of one property cell; blank until it is set.

cells

cells(geometry: Any, group: int) -> list[str]

One group's property cells, in COLUMNS order.

set_cell

set_cell(geometry: Any, group: int, key: str, text: str) -> None

One property cell typed; a ValueError says why it was refused. A mass, a stiffness or a ground replaces whatever the group was, since each is the one thing such a group has, and clearing it clears the group.