▼V Reference
52 Find a task or a name
53 Modules to require
54 Scenes and sampling
55 Scene states
56 Animation requests
57 Native model details
58 Visuals
59 Geometry
60 Number Lines and Coordinate Decorations
61 Point Markers, Scatter Plots, and Filled Areas
62 Probability and Statistical Diagrams
63 Calculus lessons
64 Colors
65 Slides
66 Slide command-line tools
67 Source Programs and Authored Timelines
68 Interactive Preview and Inspection
69 Preview controls and diagnostics
70 Projects and Final Rendering
71 Project execution and cache details
72 Pict Renderer Protocol
73 3D reference map
74 3D:   Objects, groups, and paths
75 3D:   Cameras and projection
76 3D:   Views inside a Scene
77 3D:   Animating 3D objects
78 3D:   Animating the 3D camera
79 3D:   Cuts, caps, and section measurements
80 3D:   Supplementary surface, section, and annotation bindings
81 3D:   Cuts, sections, and numerical volume
82 3D:   Vectors
83 3D:   Linear maps and rotations
84 3D:   Affine transforms
85 3D:   Bounds, rays, and planes
86 3D:   Spatial maps and homotopies
87 3D:   Materials and lights
88 3D:   Lighting inspection
89 3D:   Shadow descriptors and stable bounds
90 3D:   Finite-light animation
91 3D:   Software finite-light evaluation
92 3D:   Colour space and final output
93 3D:   Relations and geometric annotations
94 3D:   Projected labels
95 3D:   Textured billboards
96 3D:   Spatial curves and vector diagrams
97 3D:   Spatial anchors and label layout
98 3D:   Anchors and projected labels
99 3D:   Parametric surfaces and calculus
100 3D:   Adaptive, trimmed, and implicit surfaces
101 3D:   Constructive solids
102 3D:   Surface constructors and queries
103 3D:   Meshes
104 3D:   Triangle topology
105 3D:   Polygonal faces
106 3D:   Deterministic convex hulls
107 3D:   Polyhedral duals
108 3D:   Schlegel diagrams and polyhedral nets
109 3D:   Conservative mesh correspondence
110 3D:   Topology-safe mesh matching
111 3D:   Checking and repairing mesh orientation
112 3D:   Clipping, sections, and transparency
113 3D:   Prepared spatial ODE trajectories and vector fields
114 3D:   Seeds and streamline sets
115 3D:   Poincare sections and return maps
116 3D:   Equilibria and local linearization
117 3D:   Flow maps and volume change
118 3D:   Drawing and inspecting trajectories
119 3D:   Reading prepared trajectories
120 3D:   Drawing vector fields and particles
121 3D:   Trajectory display
122 3D:   Spatial inspection and exact picking
123 3D:   Retained renderer backends
124 3D:   Compiled geometry and instances
125 3D:   Frame requests and results
126 3D:   Software rendering and statistics
127 3D:   Optional Racket/  Open  GL backend
128 Experimental Derived Visuals
129 Source Package Hygiene
On this page:
prepare-flow-map3d
prepared-flow-map3d?
flow-map3d-ref
flow-map3d-pairs
flow-map3d-displacement
flow-map-grid3d
flow-volume-cell3d
flow-map3d-local-jacobian
flow-map3d-volume-factor
9.3

117 3D: Flow maps and volume change🔗ℹ

procedure

(prepare-flow-map3d field 
  seeds 
  [#:start-time start-time 
  #:end-time end-time 
  #:solver solver 
  #:termination termination 
  #:on-termination policy 
  #:parallel? parallel? 
  #:cancellation-token cancellation-token]) 
 → prepared-flow-map3d?
  field : any/c
  seeds : seed-set3d?
  start-time : finite-real? = 0
  end-time : finite-real? = 1
  solver : any/c = #f
  termination : any/c = #f
  policy : (or/c 'absent 'use-termination-point) = 'absent
  parallel? : boolean? = #t
  cancellation-token : any/c = #f
Prepares one retained trajectory in every declared seed slot. A normally completed slot has its endpoint; an early-terminated slot is #f by default, or its actual stopping point under 'use-termination-point. Thus source, endpoint, and termination provenance stay aligned in seed order. Its diagnostics contain a versioned preparation identity when field is an ode-field3d with an explicit cache key and every termination event has an explicit cache key. The identity records solver, seed-set, termination, time-parameterization, dense-resampling, and endpoint policy. An opaque field or event is reported as 'memory-only, so it is never mistaken for persistently serializable numerical input. Independent seed slots use bounded worker threads when #:parallel? is true; trajectories, endpoints, diagnostics, and any raised failure retain seed order rather than worker completion order.

procedure

(prepared-flow-map3d? value) → boolean?

  value : any/c
Recognizes an immutable prepared flow map. Its accessors begin with prepared-flow-map3d-.

procedure

(flow-map3d-ref map index) → (or/c false/c vec3?)

  map : prepared-flow-map3d?
  index : exact-nonnegative-integer?
Returns the endpoint in seed order, or #f for an absent endpoint.

procedure

(flow-map3d-pairs map) → vector?

  map : prepared-flow-map3d?
Returns immutable (cons seed endpoint) entries for slots with endpoints.

procedure

(flow-map3d-displacement map index) → (or/c false/c vec3?)

  map : prepared-flow-map3d?
  index : exact-nonnegative-integer?
Returns endpoint minus source for one slot.

procedure

(flow-map-grid3d map    
  [#:id id]    
  #:connectivity connectivity) → group3d?
  map : prepared-flow-map3d?
  id : symbol? = 'flow-map-grid
  connectivity : 'axis-neighbours
Lowers a flow map from an explicit 'grid seed set to retained endpoint edges. An absent endpoint breaks its incident edges. Arbitrary unstructured seed sets are rejected because no neighbourhood relation is implied by their order.

procedure

(flow-volume-cell3d map    
  cell-index    
  [#:id id    
  #:material material]) → mesh3d?
  map : prepared-flow-map3d?
  cell-index : exact-nonnegative-integer?
  id : (or/c false/c symbol?) = #f
  material : material3d? = default-material3d
Lowers one retained hexahedral seed cell to its eight endpoint corners and twelve outward-wound triangular faces. cell-index enumerates lower corners in the source grid’s retained declaration order; it is not a loose seed index. The operation requires an explicit complete grid and eight retained endpoints. It does not interpolate, repair an absent endpoint, or infer volume from an unstructured cloud.

procedure

(flow-map3d-local-jacobian map index) → linear3?

  map : prepared-flow-map3d?
  index : exact-nonnegative-integer?
Estimates the local endpoint derivative from a retained explicit grid neighbourhood. Interior slots use central differences and grid boundaries use a retained one-sided difference. An absent endpoint, incomplete axis neighbourhood, or unstructured seed set is an error rather than a guessed result.

procedure

(flow-map3d-volume-factor map index) → finite-real?

  map : prepared-flow-map3d?
  index : exact-nonnegative-integer?
Returns the determinant of flow-map3d-local-jacobian at one grid slot.