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
//! 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 arrays of a material point are **borrowed** from the caller, who can
//! keep the values of all its points in contiguous storage: see
//! [`InitialState`] and [`FinalState`]. 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`].
//!
//! **Status:** small strain and general behaviours, 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 ;