Expand description
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.
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.
Status: small strain, finite strain and general behaviours, point-wise models and material properties, generated by TFEL 5.1.0 or later.
Modules§
- voigt
- Conversions between TFEL’s storage of symmetric tensors and the standard Voigt notation. Nothing here allocates.
Structs§
- Behaviour
- A behaviour loaded from a library generated by MFront with the
genericinterface, for one modelling hypothesis. - Description
- What the behaviour declares about itself, read from the library by
Behaviour::load. - Evaluation
- A value computed by
MaterialProperty::evaluate. - Final
State - The state at the end of the time step, borrowed from the caller: the caller gives the gradients, material properties and external state variables, the behaviour writes the thermodynamic forces and internal state variables.
- Initial
State - The state at the beginning of the time step, borrowed from the caller.
- Integration
- The outcome of a successful integration.
- Material
Property - A material property loaded from a library generated by MFront with the
genericinterface. - Material
Property Description - What a material property declares about itself, read from the library by
MaterialProperty::load. - Parameter
- A parameter of the behaviour: a value fixed in the library, which
Settingscan change at load. - Settings
- What
Behaviour::loadchanges in the library: the values of parameters, and the out of bounds policy; and, for a finite strain behaviour, the stress and the tangent operator to compute. - Time
Step - The time step of an integration.
- Variable
- A variable of the behaviour, and where its components sit in the array that holds it.
- Variables
- The variables stored one after the other in one array (gradients, material properties, internal state variables, …).
Enums§
- Error
- Everything that can go wrong when loading a behaviour, a model or a
material property, and when integrating or evaluating it.
nameis the name of the behaviour, model or material property. - Finite
Strain Tangent Operator - The tangent operator a finite strain behaviour computes.
- Hypothesis
- A modelling hypothesis of MFront.
- OutOf
Bounds Policy - What a behaviour or material property does when a variable leaves the bounds its author gave. Physical bounds are always enforced.
- Parameter
Value - The value of a parameter, of one of the three types MFront supports.
- Stress
Measure - The stress a finite strain behaviour computes, in the thermodynamic forces.
- Symmetry
- The material symmetry of the behaviour.
- Tangent
Operator - The tangent operator the behaviour is asked to compute.
- Variable
Type - The kind of a variable. With the hypothesis, it fixes the number of components of the variable.