Skip to content

More memory-efficient temporal interpolation for fluid velocity #58

Description

@mountaindust

While the memory management updates in v0.5.2 helped, the real problem is that spline objects are huge, and creating a spline across all of the temporal fluid velocity data (potentially many time points) is extremely expensive to store. The result is that 3D temporally varying fluid velocities are currently impractical to work with unless the number of time points is small (or the fluid grid is coarse enough).

The most obvious solution is to calculate a spline consisting of only one polynomial - the currently needed one. Since we are using cublic splines, this will be the spline using the two data sets on either side of the current time (four in total). It then gets recalculated every time the calling function advances past a time point with fluid data associated with it.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions