rustfront 0.0.1

Evaluate MFront material behaviours (constitutive laws) at a material point, in pure Rust, without MGIS or any C++ build dependency
Documentation

rustfront

Evaluate MFront material behaviours (constitutive laws) at a material point, in pure Rust.

MFront compiles material behaviours (elasticity, plasticity, creep, …) into shared libraries. rustfront loads the libraries generated with MFront's generic interface and integrates a behaviour at one material point, from Rust code such as the pyrucast finite-element library.

It talks to the generated library directly: no MGIS, no C or C++ build dependency, nothing to compile but Rust.

Status: early development, nothing usable yet.

Requirements

  • Behaviours compiled by MFront with the generic interface: mfront --obuild --interface=generic Norton.mfront.
  • Rust 1.85 or later.

Relation to MGIS

MGIS is the official library for calling MFront behaviours from a solver, with C, Fortran, Python and Julia bindings; Rust bindings are on its roadmap (thelfer/MFrontGenericInterfaceSupport#376). rustfront takes another route: it reads the description each behaviour exports and calls the behaviour itself, without going through MGIS.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.