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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
//! Evaluate [MFront] material behaviours (constitutive laws) at a material
//! point, from Rust.
//!
//! MFront compiles material behaviours (elasticity, plasticity, creep, …) into
//! shared libraries. For behaviours generated with MFront's `generic`
//! interface (`mfront --obuild --interface=generic Norton.mfront`), this crate
//! loads the library, reads the description the behaviour exports (gradients,
//! material properties, internal state variables, …) and integrates it at one
//! material point. It talks to the library directly, in pure Rust: no [MGIS],
//! no C or C++ build dependency.
//!
//! The data of an integration follow MGIS's layout, that of the function
//! MFront generates: a [`BehaviourData`], as MGIS's `BehaviourDataView`, holds
//! the time step, the tangent operator and the two states, [`InitialState`]
//! and [`FinalState`], and [`Behaviour::integrate`] computes what the
//! [`IntegrationOptions`] ask. The arrays of a material point are
//! **borrowed** from the caller, who can keep the values of all its points in
//! contiguous storage. Symmetric tensors are stored in
//! TFEL's convention: `xx`, `yy`, `zz`, `√2·xy`, `√2·xz`, `√2·yz`; the
//! [`voigt`] module converts them, and the tangent operator, to and from the
//! standard Voigt notation.
//!
//! Only loading is `unsafe`, because opening a library runs its code: once
//! [`Behaviour::load`] has checked what the library declares, integrating is
//! safe. Loading is also when the parameters and the out of bounds policy,
//! static variables of the library, are set: see [`Settings`].
//!
//! Point-wise models (`@DSL DefaultModel`, …) are loaded and integrated like
//! behaviours, as [`Behaviour`]: they have no gradient, their outputs are
//! internal state variables and their inputs external state variables. The
//! material properties (`@DSL MaterialLaw`) are evaluated by
//! [`MaterialProperty`].
//!
//! Finite strain behaviours (`@DSL DefaultFiniteStrain`, or a strain measure
//! such as `@StrainMeasure Hencky`) take the deformation gradient, an
//! unsymmetric tensor, and compute the stress measure and the tangent operator
//! [`Settings`] chooses: [`StressMeasure`], [`FiniteStrainTangentOperator`].
//!
//! An orthotropic behaviour integrates in its material frame: its gradients
//! are rotated to it, its thermodynamic forces and tangent operator back to
//! the global frame, by [`Behaviour::rotate`], with a [`Rotation`].
//!
//! A cohesive zone model takes the opening displacement and computes the
//! cohesive force, two vectors whose first component is normal to the
//! interface. [`Description::behaviour_type`] tells the kinds apart.
//!
//! **Status:** small strain, finite strain and general behaviours, cohesive
//! zone models, isotropic or orthotropic, point-wise models and material
//! properties, generated by TFEL 5.1.0 or later.
//!
//! [MFront]: https://thelfer.github.io/tfel/web/index.html
//! [MGIS]: https://github.com/thelfer/MFrontGenericInterfaceSupport
pub use ;
pub use Error;
pub use Hypothesis;
pub use ;
pub use ;