uw-comphys / openccm

OpenCCM is a CFD-based compartment modelling software package. It is primarily intended for convection dominated reactive flows which feature a weak or one-way coupling between the reactive species and the carrier fluid, i.e. the reaction does not substantially influence the fluid flow over the course of the simulation.
https://uw-comphys.github.io/openccm/
GNU Lesser General Public License v2.1
0 stars 4 forks source link

Added ability to specify time points at which to sample simulation #27

Closed Alex-Vasile closed 7 months ago

Alex-Vasile commented 7 months ago

Previously every timestep that solve_ivp took was returned in the result. These may not be uniformly sampled, and may be far more than the user wants. That was left as the default behaviour, but additional options were added:

  1. All points.
  2. Linearly spaced points between t_0 and t_final with delta_t spacing inbetween them.
  3. Logarithmic spacing with num_points total sampling points.
  4. Explicitly providing a list of time points, i.e. (t1, t2, ..., tn).