KineticReaction

KineticReaction()

Abstract base class for kinetic reactions in reactive transport.

This class defines the interface for implementing kinetic reactions that can be coupled with transport equations. Subclasses must implement the rate method and define stoichiometry.

Attributes

Name Type Description
stoichiometry dict or callable Reaction stoichiometry mapping species names to coefficients. Can be a dict for constant stoichiometry or a callable for time/state-dependent stoichiometry.

Notes

Reactions are evaluated using the _eval_dcdt method, which computes the rate of change of species concentrations based on the reaction rate and stoichiometry.

Methods

Name Description
rate Compute the reaction rate.

rate

KineticReaction.rate(time, state, system)

Compute the reaction rate.

Parameters

Name Type Description Default
time jax.Array Current time. required
state AbstractSpecies Current species concentrations. required
system System The transport system. required

Returns

Name Type Description
jax.Array The reaction rate.
Back to top