Model
Dynamical models.
- class immunowave.model.Model[source]
-
Abstract base class for dynamical models. Subclass this to implement your model.
- immunowave.model.solve(model, state, t0, t1, dt0=None, rtol=1e-08, atol=1e-08, **kwargs)[source]
Solve the dynamical system.
- Parameters:
model (Model) – Immune respone model.
state (State) – Initial condition, as
equinox.Module
ofimmunowave.spatial.ScalarField
fields.t0 (float) – The start of the region of integration.
t1 (float) – The end of the region of integration.
dt0 (float | None) – Initial step size. If
None
, the step size is chosen automatically.rtol (float) – Relative tolerance.
atol (float) – Absolute tolerance.
**kwargs (Any) – Additional keyword arguments to pass to
diffrax.diffeqsolve
.
- Returns:
Solution.
- Return type: