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
//! 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.
//!
//! **Status:** small strain behaviours only, 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;