Expand description
FEMM models as first-class callable runtime functions.
The kernel defines the Value/Expr/Shape/codec protocol contracts and
sim-numbers supplies the number domains, tensors, and linear algebra; this
crate supplies the FEM behavior: it wraps a model as a callable that maps
parameters to quantities, fields, or solutions, and registers those
callables and the model value with the runtime.
The quality surface returns a quantity value together with the
sim_lib_femm_solve::SolveCertificate that proves solve fidelity. Passing
Some(params) for wrt adds a total gradient and annotates the returned
certificate with the corresponding GradientTrust; passing None returns
the value and certificate without gradient work.
Structs§
- Femm
Call - One evaluation request against a model: which parameters, output, and limits.
- Femm
Eval - The result of evaluating a model: the output value plus optional gradient.
- Femm
Func Payload - The opaque payload carried by a model-derived runtime function.
- Femm
Function Lib - The runtime library that installs the FEMM function exports.
- Model
Callable - A
FemmCallablethat solves a concrete model on each evaluation. - Model
Value - A FEMM model held as a first-class runtime object.
- Quality
Answer - Quantity value, certificate, and optional total gradient for a completed solve.
Enums§
- Output
Query - The kind of output an evaluation produces from a solved model.
Traits§
- Femm
Callable - Something that can be evaluated as a FEMM function of its parameters.
Functions§
- femm_
as_ func - Wraps a model as a sim-numbers
Funcof the named variables. - femm_
field_ func - Wraps a model’s potential field as a sim-numbers
Funcover position. - model_
value - Wraps a model as a
ModelValueruntime object. - quality
- Returns the requested quantity and the certificate for a completed solve.