State

Field states.

class immunowave.state.State[source]

Bases: Module, ABC

Field variables. Subclass this to implement your state, adding fields for the different components of the system.

map(fn)[source]

Apply a function to each field.

Parameters:

fn (Any)

Return type:

Self

plot(time_idx=None, axes=None, **kwargs)[source]

Plot the state.

Parameters:
Return type:

ndarray[tuple[Any, …], dtype[Axes]]