fem.Discretization

fem.Discretization()

A discretized scene: what studies, the optimiser, the viewer and selections need.

Structural, like :class:~cadjoint.studies.selection.BoundaryMesh which it extends: a family implements these on its own class.

Attributes

Name Description
family "hex", "tet" or "cut" — for reports, never for branching.

Methods

Name Description
face_patch (nodes, faces) an area-integrated condition applies to; raises if it spans no face.
moved The placement of this topology under field (possibly traced): see the module note.
node_patch Node indices a node-valued condition applies to.
quality Per-element metrics, {} where there are no elements to grade.
traction_work ∫ t · u over the faces a traction selection spans, at positions.
unresolvable The first condition that resolves to nothing here, described; None if all resolve.

face_patch

fem.Discretization.face_patch(selection)

(nodes, faces) an area-integrated condition applies to; raises if it spans no face.

moved

fem.Discretization.moved(field, *, smooth_passes=0, design=None)

The placement of this topology under field (possibly traced): see the module note.

node_patch

fem.Discretization.node_patch(selection)

Node indices a node-valued condition applies to.

quality

fem.Discretization.quality()

Per-element metrics, {} where there are no elements to grade.

traction_work

fem.Discretization.traction_work(positions, displacement, selection, vector)

∫ t · u over the faces a traction selection spans, at positions.

unresolvable

fem.Discretization.unresolvable(bcs)

The first condition that resolves to nothing here, described; None if all resolve.