-
Notifications
You must be signed in to change notification settings - Fork 186
Open
Description
This is to address #1766, for the application of fancy BCs like ramps and oscillations in time.
def _build_rhs(self):
def ode_func(t, y):
# TODO: add a cache mechanism
self[self.settings["quantity"]] = y
# TransientReactiveTransport._update_A_and_b(self)
self.apply_callbacks()
A = self.A.tocsc()
b = self.b
V = self.network[self.settings["pore_volume"]]
return (-A.dot(y) + b) / V # much faster than A*y
return ode_funcAnd this will require a set_callback function somewhere: like rxn.set_callback(<???>)
Reactions are currently unavailable