skultrafast.kinetic_model¶
This module helps to build a transfer matrix and applying it to an DAS.
Classes¶
Represents a transtion between comparments. |
|
Helper class to make a model |
Functions¶
|
Getting a list of transtions, return the compartments |
|
Return the used symbols |
Module Contents¶
- class skultrafast.kinetic_model.Transition(from_comp, to_comp, rate=None, qy=None)[source]¶
Bases:
objectRepresents a transtion between comparments.
- class skultrafast.kinetic_model.Model[source]¶
Bases:
objectHelper class to make a model
- transitions: List[Transition] = [][source]¶
- add_transition(from_comp, to_comp, rate=None, qy=None)[source]¶
Adds an transition to the model.
- Parameters:
from_comp (str) – Start of the transition
to_comp (str) – Target of the transition
rate (str, optional) – Name of the associated rate, by default None, which generates a default name.
qy (str of float, optional) – The yield of the transition, by default 1
- build_matrix()[source]¶
Builds the n x n k-matrix as a symbolic representation (list of lists of tuples). Each entry contains a list of (coefficient, rate_name, yield_value) tuples.
- build_mat_func()[source]¶
Creates a function that builds the K matrix from parameter values. Uses fully vectorized numpy operations for maximum speed.