1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
//! Themed operators — functions that take containers in and return
//! containers (or derived data) out.
//!
//! The directory is the home for everything that does not naturally
//! belong to a single container's inherent methods. The split is by
//! theme rather than by container, so a `gradient(mesh, field)` lives
//! next to `interp_to_gauss`, not in `mesh.rs` *or* `node_field.rs`.
//!
//! Themes:
//! - [`build`]: construct containers (fills, refinements, transforms).
//! - [`geom`]: geometric measures (bbox, centroid, area, jacobian
//! helpers, normals).
//! - [`field`]: field-on-mesh operations (gradient, divergence,
//! interpolation, projection, restriction).
//! - [`assemble`]: build a [`crate::containers::matrix::Matrix`] /
//! [`crate::containers::node_field::SubNodeField`] from a `Model` —
//! stiffness, mass, flux RHS, and the internal nodal forces
//! [`assemble::internal_forces`](fn@assemble::internal_forces) (Cast3m
//! `BSIG`, `∫ Bᵀ σ`). The
//! per-physics integrands live under [`crate::models`]; this layer
//! wires them together.
//! - [`behavior`]: integrate the constitutive law of a `Model` (Cast3m
//! `COMP`) — the exact, possibly non-linear counterpart of the
//! `assemble::stiffness` linearization.
//! - [`solver`]: solve `A · x = b` (currently a single dense LU
//! back-end in [`solver::lu`]; sparse direct and iterative
//! back-ends will live alongside it).
//! - [`export`]: write meshes and fields to external formats (legacy
//! VTK for ParaView) — the side-effecting counterpart of the readers.
//!
//! Each sub-module starts empty — new operators should land here from
//! day one; legacy code migrates opportunistically.