Field Line Tracing¶
Curve containers and analysis for field lines and particle trajectories. trace_field_line integrates with fixed-step classical RK4;
trace_field_line_adaptive uses Dormand-Prince 5(4) with error-norm step
control. Both feed the same geometric analysis (curvature, arc length,
mirror points).
traces
¶
Curve containers and analysis for field lines and particle trajectories.
FieldLine
dataclass
¶
Ordered sequence of 3D points tracing a vector field at a fixed time.
A field line is parameterized by arc length, not time. It represents the spatial structure of a vector field (typically \(\mathbf{B}\)) at a single instant.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
points
|
FloatArray
|
Ordered positions along the line, shape |
required |
field_name
|
str
|
Name of the traced vector field (e.g. |
required |
seed_point
|
Vector3
|
Starting point for the trace. |
required |
normalization
|
Normalization
|
Unit conversion for this data. |
required |
time
|
float | None
|
Simulation time at which the field was sampled. |
None
|
step
|
int | None
|
Timestep index. |
None
|
direction
|
str
|
Trace direction: |
'both'
|
scalars
|
dict[str, FloatArray]
|
Named scalar quantities sampled along the line, each shape |
dict()
|
metadata
|
dict[str, Any]
|
Arbitrary metadata (reader info, integration parameters, etc.). |
dict()
|
Examples:
>>> import numpy as np
>>> from pypic.units import Normalization
>>> pts = np.array([[0.0, 0.0, 0.0], [1.0, 0.0, 0.0], [2.0, 0.0, 0.0]])
>>> fl = FieldLine(
... points=pts, field_name="B", seed_point=(0.0, 0.0, 0.0),
... normalization=Normalization.identity(),
... )
>>> fl.n_points
3
>>> fl.start_point
(0.0, 0.0, 0.0)
>>> fl.end_point
(2.0, 0.0, 0.0)
>>> len(fl)
3
Source code in src/pypic/traces/_fieldline.py
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 | |
n_points
property
¶
Number of points along the field line.
start_point
property
¶
First point on the line as a 3-tuple.
end_point
property
¶
Last point on the line as a 3-tuple.
with_scalars(**new_scalars)
¶
Return a new FieldLine with additional or replaced scalars.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
**new_scalars
|
FloatArray
|
Scalar arrays to merge, each shape |
{}
|
Returns:
| Type | Description |
|---|---|
FieldLine
|
|
Source code in src/pypic/traces/_fieldline.py
131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 | |
ParticleTrace
dataclass
¶
Ordered sequence of spacetime points tracing a particle's worldline.
Unlike FieldLine, a particle trace is parameterized by time (monotonic)
and carries velocity at each point. Represents a physical particle's
trajectory through the simulation domain.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
points
|
FloatArray
|
Ordered positions, shape |
required |
time
|
FloatArray
|
Time at each point, shape |
required |
velocity
|
FloatArray
|
Velocity at each point, shape |
required |
species_name
|
str
|
Species name (e.g. |
required |
normalization
|
Normalization
|
Unit conversion for this data. |
required |
species
|
SpeciesInfo | None
|
Species charge/mass info for derived calculations. |
None
|
particle_id
|
int | None
|
Tracking ID, if available. |
None
|
scalars
|
dict[str, FloatArray]
|
Named scalar quantities along the trajectory, each shape |
dict()
|
metadata
|
dict[str, Any]
|
Arbitrary metadata. |
dict()
|
Examples:
>>> import numpy as np
>>> from pypic.units import Normalization
>>> pts = np.array([[0.0, 0.0, 0.0], [1.0, 0.0, 0.0], [2.0, 0.0, 0.0]])
>>> t = np.array([0.0, 0.5, 1.0])
>>> vel = np.array([[2.0, 0.0, 0.0], [2.0, 0.0, 0.0], [2.0, 0.0, 0.0]])
>>> tr = ParticleTrace(
... points=pts, time=t, velocity=vel, species_name="electrons",
... normalization=Normalization.identity(),
... )
>>> tr.n_points
3
>>> tr.duration
1.0
>>> len(tr)
3
Source code in src/pypic/traces/_particletrace.py
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 | |
n_points
property
¶
Number of points along the trajectory.
start_point
property
¶
First position as a 3-tuple.
end_point
property
¶
Last position as a 3-tuple.
start_time
property
¶
Time at first point.
end_time
property
¶
Time at last point.
duration
property
¶
Total elapsed time.
with_scalars(**new_scalars)
¶
Return a new ParticleTrace with additional or replaced scalars.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
**new_scalars
|
FloatArray
|
Scalar arrays to merge, each shape |
{}
|
Returns:
| Type | Description |
|---|---|
ParticleTrace
|
|
Source code in src/pypic/traces/_particletrace.py
148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 | |
PoincareSection
dataclass
¶
Result of poincare_section: per-seed punctures and provenance.
Holds both the 3D crossing positions (for re-projection onto a
different surface) and the projected 2D coordinates (for plotting).
The underlying FieldLine traces are retained so the same
trajectories can be re-punctured against a different surface without
re-integrating.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
surface
|
PoincareSurface
|
The plane the punctures were extracted on. |
required |
seeds
|
FloatArray
|
Original seed positions, shape |
required |
direction
|
str
|
|
required |
punctures_3d
|
tuple[FloatArray, ...]
|
Per-seed crossings in 3D, each shape |
required |
punctures_2d
|
tuple[FloatArray, ...]
|
Per-seed crossings in plane coordinates, each |
required |
field_lines
|
tuple[FieldLine, ...]
|
Underlying trace per seed. |
required |
metadata
|
dict[str, Any]
|
Provenance: |
dict()
|
Examples:
>>> import numpy as np
>>> from pypic.units import Normalization
>>> from pypic.dataset import FieldDataset
>>> from pypic.grid import GridInfo
>>> grid = GridInfo(dimensions=(16, 16, 16), spacing=(0.2, 0.2, 0.2),
... origin=(-1.5, -1.5, -1.5))
>>> x = np.linspace(-1.5, 1.5, 16)
>>> y = np.linspace(-1.5, 1.5, 16)
>>> z = np.linspace(-1.5, 1.5, 16)
>>> X, Y, _ = np.meshgrid(x, y, z, indexing="ij")
>>> data = FieldDataset.from_arrays(
... {"B_1": -Y, "B_2": X, "B_3": 0.1 * np.ones_like(X)},
... grid, Normalization.identity(),
... )
>>> surf = PoincareSurface.from_axis("y", 0.0)
>>> section = poincare_section(
... data, np.array([[0.6, 0.0, 0.0]]), surf, max_steps=2000,
... direction="forward",
... )
>>> bool(section.metadata["n_crossings_per_seed"][0] > 1)
True
Source code in src/pypic/traces/_poincare.py
213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 | |
PoincareSurface
dataclass
¶
Transverse plane \(\Sigma\) for a Poincaré section.
\(\Sigma = \{\mathbf{x} : \hat{\mathbf{n}} \cdot
(\mathbf{x} - \mathbf{p}) = 0\}\), parameterized by an outward
normal \(\mathbf{n}\) and an in-plane reference point \(\mathbf{p}\).
The 2D plane coordinates \((u, v)\) produced by project are
measured relative to \(\mathbf{p}\) in an orthonormal basis
basis_2d spanning \(\Sigma\).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
normal
|
Vector3
|
Plane normal. Normalized internally; need not be unit length. |
required |
point
|
Vector3
|
A point on the plane (origin of the 2D \((u, v)\) frame). |
required |
name
|
str | None
|
Optional label propagated into output metadata and plots. |
None
|
Examples:
>>> surf = PoincareSurface.from_axis("y", 0.0, name="meridional")
>>> surf.offset
0.0
>>> import numpy as np
>>> u, v = surf.basis_2d
>>> float(np.dot(u, v))
0.0
Source code in src/pypic/traces/_poincare.py
58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 | |
offset
cached
property
¶
Signed scalar \(d = \hat{\mathbf{n}} \cdot \mathbf{p}\).
The form consumed by
pypic.traces.plane_crossings.
basis_2d
cached
property
¶
Orthonormal \((\hat{\mathbf{u}}, \hat{\mathbf{v}})\) spanning \(\Sigma\).
Constructed via Gram--Schmidt against the world axis least aligned with \(\hat{\mathbf{n}}\) for numerical stability — the standard oblique-section basis shared by FLARE [@Frerichs2024] and most field-mapping tools.
from_axis(axis, value, *, name=None)
classmethod
¶
Build an axis-aligned surface \(x_i = \text{value}\).
Covers tokamak poloidal sections (from_axis("y", 0.0) for a
\(\phi = 0\) cut, with the toroidal direction along \(\hat y\)) and
the standard magnetotail meridional plane
(from_axis("y", 0.0) in GSM).
Examples:
>>> surf = PoincareSurface.from_axis("z", 1.5)
>>> surf.normal
(0.0, 0.0, 1.0)
>>> surf.point
(0.0, 0.0, 1.5)
Source code in src/pypic/traces/_poincare.py
93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 | |
project(points_3d)
¶
Project 3D points onto plane coordinates \((u, v)\).
For each input point \(\mathbf{x}\): \(u = \hat{\mathbf{u}} \cdot (\mathbf{x} - \mathbf{p})\), \(v = \hat{\mathbf{v}} \cdot (\mathbf{x} - \mathbf{p})\).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
points_3d
|
FloatArray
|
Input points, shape |
required |
Returns:
| Type | Description |
|---|---|
FloatArray
|
Plane coordinates, shape |
Examples:
Plane coordinates are oriented by the Gram--Schmidt basis; for the z-axis surface the basis is \(\hat{\mathbf{u}} = (0, 1, 0)\), \(\hat{\mathbf{v}} = (-1, 0, 0)\) (right-handed about \(\hat{\mathbf{n}}\)):
>>> import numpy as np
>>> surf = PoincareSurface.from_axis("z", 0.0)
>>> pts = np.array([[1.0, 2.0, 0.0], [-1.0, 3.0, 0.0]])
>>> surf.project(pts)
array([[ 2., -1.],
[ 3., 1.]])
Source code in src/pypic/traces/_poincare.py
174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 | |
TerminationReason
¶
Bases: StrEnum
Why a field line trace stopped.
Source code in src/pypic/traces/_tracing.py
39 40 41 42 43 44 45 46 | |
VectorFieldInterpolator
dataclass
¶
Pre-built trilinear interpolator for a 3-component vector field.
Wraps a single RegularGridInterpolator over a stacked
(..., 3) value array so each __call__ dispatches once
instead of three times. Built once and reused across all RK4
stages and seed points.
Source code in src/pypic/traces/_tracing.py
49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 | |
from_dataset(data, components=('B_1', 'B_2', 'B_3'))
classmethod
¶
Build from a FieldDataset.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
data
|
FieldDataset
|
Gridded field data. |
required |
components
|
tuple[str, str, str]
|
Names of the three vector components. |
('B_1', 'B_2', 'B_3')
|
Returns:
| Type | Description |
|---|---|
VectorFieldInterpolator
|
|
Source code in src/pypic/traces/_tracing.py
61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 | |
__call__(point)
¶
Evaluate the vector field at a single point.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
point
|
FloatArray
|
Position, shape |
required |
Returns:
| Type | Description |
|---|---|
FloatArray
|
Field vector, shape |
Source code in src/pypic/traces/_tracing.py
94 95 96 97 98 99 100 101 102 103 104 105 106 107 | |
batch(points)
¶
Evaluate the vector field at N points in one call.
Used by the batched adaptive tracer so all seeds in a step share
a single RegularGridInterpolator dispatch. Roughly N× faster
than calling __call__ N times because per-call Python /
argument-marshaling overhead amortizes over the batch.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
points
|
FloatArray
|
Positions, shape |
required |
Returns:
| Type | Description |
|---|---|
FloatArray
|
Field vectors, shape |
Source code in src/pypic/traces/_tracing.py
109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 | |
arc_length_cumulative(points)
¶
Cumulative arc length along a curve.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
points
|
FloatArray
|
Ordered positions, shape |
required |
Returns:
| Type | Description |
|---|---|
FloatArray
|
Cumulative arc length, shape |
Examples:
>>> import numpy as np
>>> pts = np.array([[0.0, 0.0, 0.0], [1.0, 0.0, 0.0], [2.0, 0.0, 0.0]])
>>> arc_length_cumulative(pts)
array([0., 1., 2.])
Source code in src/pypic/traces/_analysis.py
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 | |
arc_length_total(points)
¶
Total arc length of a curve.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
points
|
FloatArray
|
Ordered positions, shape |
required |
Returns:
| Type | Description |
|---|---|
float
|
Sum of segment lengths. |
Examples:
>>> import numpy as np
>>> pts = np.array([[0.0, 0.0, 0.0], [3.0, 4.0, 0.0]])
>>> arc_length_total(pts)
5.0
Source code in src/pypic/traces/_analysis.py
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 | |
closest_approach(points, target)
¶
Find the point on the curve nearest to target.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
points
|
FloatArray
|
Ordered positions, shape |
required |
target
|
Vector3
|
Reference point. |
required |
Returns:
| Type | Description |
|---|---|
tuple[int, float]
|
|
Examples:
>>> import numpy as np
>>> pts = np.array([[0.0, 0.0, 0.0], [1.0, 0.0, 0.0], [2.0, 0.0, 0.0]])
>>> closest_approach(pts, (0.9, 0.0, 0.0))
(1, 0.09999999999999998)
Source code in src/pypic/traces/_analysis.py
167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 | |
curvature(points)
¶
Curvature \(\kappa = \|d\hat{T}/ds\|\) along a curve.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
points
|
FloatArray
|
Ordered positions, shape |
required |
Returns:
| Type | Description |
|---|---|
FloatArray
|
Curvature at each point, shape |
Examples:
>>> import numpy as np
>>> pts = np.array([[0.0, 0.0, 0.0], [1.0, 0.0, 0.0], [2.0, 0.0, 0.0]])
>>> np.testing.assert_allclose(curvature(pts), [0.0, 0.0, 0.0], atol=1e-15)
Source code in src/pypic/traces/_analysis.py
117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 | |
displacement(points)
¶
End-to-end displacement \(\|\mathbf{r}_N - \mathbf{r}_0\|\).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
points
|
FloatArray
|
Ordered positions, shape |
required |
Returns:
| Type | Description |
|---|---|
float
|
|
Examples:
>>> import numpy as np
>>> pts = np.array([[0.0, 0.0, 0.0], [1.0, 1.0, 0.0], [3.0, 4.0, 0.0]])
>>> displacement(pts)
5.0
Source code in src/pypic/traces/_analysis.py
145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 | |
drift_velocity(points, time, *, window=5)
¶
Running-average guiding-center drift velocity.
Smooths the instantaneous velocity \(d\mathbf{r}/dt\) with a uniform window to approximate the guiding-center drift, filtering out the gyromotion.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
points
|
FloatArray
|
Positions, shape |
required |
time
|
FloatArray
|
Time at each point, shape |
required |
window
|
int
|
Averaging window size (must be odd and >= 1). |
5
|
Returns:
| Type | Description |
|---|---|
FloatArray
|
Smoothed velocity, shape |
Examples:
>>> import numpy as np
>>> points = np.zeros((5, 3))
>>> points[:, 0] = np.arange(5.0)
>>> drift_velocity(points, np.arange(5.0), window=1)[0]
array([1., 0., 0.])
Source code in src/pypic/traces/_analysis.py
443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 | |
equatorial_crossings(points)
¶
Find positions where a curve crosses the \(z = 0\) plane.
Shortcut for plane_crossings(points, (0, 0, 1), 0.0).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
points
|
FloatArray
|
Ordered positions, shape |
required |
Returns:
| Type | Description |
|---|---|
FloatArray
|
Crossing positions, shape |
Examples:
>>> import numpy as np
>>> pts = np.array([[0.0, 0.0, -1.0], [0.0, 0.0, 1.0]])
>>> equatorial_crossings(pts)
array([[0., 0., 0.]])
Source code in src/pypic/traces/_analysis.py
242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 | |
gyroradius_estimate(points, velocity, b_magnitude, charge, mass)
¶
Estimate local gyroradius \(r_g = m v_\perp / (|q| B)\) along a path.
The perpendicular velocity is estimated by subtracting the field-aligned component using the local tangent direction as a proxy for the field direction.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
points
|
FloatArray
|
Positions along the path, shape |
required |
velocity
|
FloatArray
|
Velocity at each point, shape |
required |
b_magnitude
|
FloatArray
|
Magnetic field magnitude at each point, shape |
required |
charge
|
float
|
Particle charge (absolute value used). |
required |
mass
|
float
|
Particle mass. |
required |
Returns:
| Type | Description |
|---|---|
FloatArray
|
Estimated gyroradius at each point, shape |
Examples:
>>> import numpy as np
>>> points = np.array([[0.0, 0.0, 0.0], [1.0, 0.0, 0.0], [2.0, 0.0, 0.0]])
>>> velocity = np.tile([0.0, 3.0, 0.0], (3, 1))
>>> b = np.full(3, 2.0)
>>> gyroradius_estimate(points, velocity, b, charge=1.0, mass=1.0)
array([1.5, 1.5, 1.5])
Source code in src/pypic/traces/_analysis.py
392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 | |
kinetic_energy(velocity, mass)
¶
Non-relativistic kinetic energy \(\frac{1}{2} m v^2\) at each point.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
velocity
|
FloatArray
|
Velocity vectors, shape |
required |
mass
|
float
|
Particle mass in code units. |
required |
Returns:
| Type | Description |
|---|---|
FloatArray
|
Kinetic energy at each point, shape |
Examples:
>>> import numpy as np
>>> v = np.array([[1.0, 0.0, 0.0], [0.0, 2.0, 0.0]])
>>> kinetic_energy(v, 2.0)
array([1., 4.])
Source code in src/pypic/traces/_analysis.py
334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 | |
mirror_points(b_magnitude)
¶
Find mirror points (local maxima in \(|\mathbf{B}|\)) along a path.
A mirror point is where a trapped particle reverses direction due to the magnetic mirror force, occurring at local maxima of the field magnitude along the particle's guiding-center path.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
b_magnitude
|
FloatArray
|
Magnetic field magnitude along the path, shape |
required |
Returns:
| Type | Description |
|---|---|
NDArray[intp]
|
Integer indices of local maxima. Empty if none found. |
Examples:
>>> import numpy as np
>>> b = np.array([1.0, 3.0, 1.0, 4.0, 2.0])
>>> mirror_points(b)
array([1, 3])
Source code in src/pypic/traces/_analysis.py
359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 | |
plane_crossings(points, normal, offset=0.0)
¶
Find positions where a curve crosses a plane.
The plane is defined by \(\mathbf{n} \cdot \mathbf{r} = d\) where \(\mathbf{n}\) is the normal and \(d\) is the offset. Crossing positions are linearly interpolated between consecutive points. Segments tangent to the plane (same signed distance at both endpoints) are not counted as crossings.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
points
|
FloatArray
|
Ordered positions, shape |
required |
normal
|
Vector3
|
Plane normal vector (will be normalized internally). |
required |
offset
|
float
|
Signed distance from origin along the normal direction. |
0.0
|
Returns:
| Type | Description |
|---|---|
FloatArray
|
Crossing positions, shape |
Examples:
>>> import numpy as np
>>> pts = np.array([[-1.0, 0.0, 0.0], [1.0, 0.0, 0.0]])
>>> plane_crossings(pts, (1.0, 0.0, 0.0), 0.0)
array([[0., 0., 0.]])
Source code in src/pypic/traces/_analysis.py
194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 | |
resample_by_arc_length(points, n_out, *, scalars=None)
¶
Resample a curve to uniform arc-length spacing via linear interpolation.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
points
|
FloatArray
|
Ordered positions, shape |
required |
n_out
|
int
|
Number of output points (must be >= 2). |
required |
scalars
|
dict[str, FloatArray] | None
|
Optional scalar arrays to resample, each shape |
None
|
Returns:
| Type | Description |
|---|---|
tuple[FloatArray, dict[str, FloatArray]]
|
|
Examples:
>>> import numpy as np
>>> pts = np.array([[0.0, 0.0, 0.0], [2.0, 0.0, 0.0], [4.0, 0.0, 0.0]])
>>> new_pts, _ = resample_by_arc_length(pts, 5)
>>> new_pts[:, 0]
array([0., 1., 2., 3., 4.])
Source code in src/pypic/traces/_analysis.py
267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 | |
speed(velocity)
¶
Speed (magnitude of velocity) at each point.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
velocity
|
FloatArray
|
Velocity vectors, shape |
required |
Returns:
| Type | Description |
|---|---|
FloatArray
|
Speed at each point, shape |
Examples:
>>> import numpy as np
>>> v = np.array([[3.0, 4.0, 0.0], [0.0, 0.0, 5.0]])
>>> speed(v)
array([5., 5.])
Source code in src/pypic/traces/_analysis.py
311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 | |
tangent_vectors(points)
¶
Compute unit tangent vectors along a curve via central differences.
Uses np.gradient for second-order central differences at interior
points and one-sided differences at endpoints.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
points
|
FloatArray
|
Ordered positions, shape |
required |
Returns:
| Type | Description |
|---|---|
FloatArray
|
Unit tangent vectors, shape |
Examples:
>>> import numpy as np
>>> pts = np.array([[0.0, 0.0, 0.0], [1.0, 0.0, 0.0], [2.0, 0.0, 0.0]])
>>> tangent_vectors(pts)
array([[1., 0., 0.],
[1., 0., 0.],
[1., 0., 0.]])
Source code in src/pypic/traces/_analysis.py
86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 | |
poincare_section(data, seeds, surface, *, direction='forward', max_steps=50000, field_components=('B_1', 'B_2', 'B_3'), atol=1e-06, rtol=0.0001, step_size_init=0.5, min_step=1e-08, max_step=2.0, null_threshold=1e-12, interpolator=None)
¶
Build a Poincaré section by tracing seeds and puncturing on \(\Sigma\).
Each seed is integrated forward (and/or backward) with the adaptive Dormand-Prince tracer; every accepted-step segment that crosses \(\Sigma\) contributes one puncture, located via linear interpolation on the signed-distance field \(\mathbf{n}\cdot\mathbf{r} - d\).
Internally forces loop_tol=None on the tracer — the auto
closed-loop detector would otherwise terminate the very orbits we
want to sample on the second puncture.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
data
|
FieldDataset
|
Gridded vector field data. |
required |
seeds
|
FloatArray or Sequence[Vector3]
|
Seed positions, shape |
required |
surface
|
PoincareSurface
|
Transverse plane to puncture on. |
required |
direction
|
``"forward"`` | ``"backward"`` | ``"both"``
|
Trace direction. Forward only is typical for tokamak/stellarator
cuts; |
'forward'
|
max_steps
|
int
|
Per-direction step budget for the adaptive tracer. Memory cost
scales as |
50000
|
field_components
|
tuple[str, str, str]
|
Field component names. Default |
('B_1', 'B_2', 'B_3')
|
atol
|
float
|
Adaptive error tolerances. |
1e-06
|
rtol
|
float
|
Adaptive error tolerances. |
1e-06
|
step_size_init
|
float
|
Step-size controller knobs. |
0.5
|
min_step
|
float
|
Step-size controller knobs. |
0.5
|
max_step
|
float
|
Step-size controller knobs. |
0.5
|
null_threshold
|
float
|
Field-magnitude threshold below which a point is a null. |
1e-12
|
interpolator
|
VectorFieldInterpolator | None
|
Pre-built interpolator; constructed internally if |
None
|
Returns:
| Type | Description |
|---|---|
PoincareSection
|
|
Raises:
| Type | Description |
|---|---|
ValueError
|
Propagated from |
Notes
For fusion poloidal sections, set direction="forward" and pick
max_steps to span ~\(N\) poloidal transits per seed; N = 100
is typical for a quick island survey. For magnetotail X-line
geometry, direction="both" captures the separatrix from both
inflow regions.
Examples:
See PoincareSection for a closed-circle example.
Source code in src/pypic/traces/_poincare.py
300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 | |
attach_scalars(field_line, data, fields, *, method='nearest')
¶
Return a new FieldLine with sampled scalars merged in.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
field_line
|
FieldLine
|
Input field line. |
required |
data
|
FieldDataset
|
Gridded data to sample from. |
required |
fields
|
list[str]
|
Field names to sample and attach. |
required |
method
|
str
|
Interpolation method. |
'nearest'
|
Returns:
| Type | Description |
|---|---|
FieldLine
|
New instance with additional scalars. |
Source code in src/pypic/traces/_sampling.py
223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 | |
attach_scalars_to_trace(trace, data, fields, *, method='nearest')
¶
Return a new ParticleTrace with sampled scalars merged in.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
trace
|
ParticleTrace
|
Input particle trace. |
required |
data
|
FieldDataset
|
Gridded data to sample from. |
required |
fields
|
list[str]
|
Field names to sample and attach. |
required |
method
|
str
|
Interpolation method. |
'nearest'
|
Returns:
| Type | Description |
|---|---|
ParticleTrace
|
New instance with additional scalars. |
Source code in src/pypic/traces/_sampling.py
254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 | |
sample_field(data, points, field, *, method='nearest')
¶
Sample a scalar field from a FieldDataset at arbitrary 3D positions.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
data
|
FieldDataset
|
Gridded field data. |
required |
points
|
FloatArray
|
Query positions, shape |
required |
field
|
str
|
Field name (canonical, alias, or computable via |
required |
method
|
str
|
Interpolation method: |
'nearest'
|
Returns:
| Type | Description |
|---|---|
FloatArray
|
Sampled values, shape |
Examples:
>>> import numpy as np
>>> from pypic import FieldDataset, GridInfo, Normalization
>>> grid = GridInfo(dimensions=(4, 4, 4), spacing=(1.0, 1.0, 1.0))
>>> ds = FieldDataset.from_arrays(
... {"B_1": np.arange(64.0).reshape(4, 4, 4)},
... grid, Normalization.identity(),
... )
>>> points = np.array([[0.5, 0.5, 0.5], [1.5, 0.5, 0.5], [99.0, 0.0, 0.0]])
>>> sample_field(ds, points, "B_1") # last point is outside the domain
array([ 0., 16., nan])
Source code in src/pypic/traces/_sampling.py
61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 | |
sample_fields(data, points, fields, *, method='nearest')
¶
Sample multiple fields at the same positions.
The nearest-index lookup (method="nearest") or interpolator
construction (method="linear") is performed once and reused
across all requested fields — the common case for trace workflows
that sample B_1/B_2/B_3 or several diagnostics at the same points.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
data
|
FieldDataset
|
Gridded field data. |
required |
points
|
FloatArray
|
Query positions, shape |
required |
fields
|
list[str]
|
Field names to sample. |
required |
method
|
str
|
Interpolation method: |
'nearest'
|
Returns:
| Type | Description |
|---|---|
dict[str, FloatArray]
|
Field name → sampled values. |
Examples:
>>> import numpy as np
>>> from pypic import FieldDataset, GridInfo, Normalization
>>> grid = GridInfo(dimensions=(4, 4, 4), spacing=(1.0, 1.0, 1.0))
>>> ds = FieldDataset.from_arrays(
... {"B_1": np.arange(64.0).reshape(4, 4, 4),
... "B_2": np.zeros((4, 4, 4))},
... grid, Normalization.identity(),
... )
>>> points = np.array([[0.5, 0.5, 0.5], [1.5, 0.5, 0.5]])
>>> sampled = sample_fields(ds, points, ["B_1", "B_2"])
>>> sampled["B_1"], sampled["B_2"]
(array([ 0., 16.]), array([0., 0.]))
Source code in src/pypic/traces/_sampling.py
143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 | |
estimate_tracing_error(field_line, data, *, field_components=('B_1', 'B_2', 'B_3'), interpolator=None)
¶
Estimate tracing error via Richardson extrapolation.
Re-traces at half the original step size and compares endpoints. For an order-\(p\) scheme, halving the step reduces truncation error by \(2^p\); a ratio of ~16 confirms RK4's 4th-order convergence.
Only works with fixed-step field lines (from trace_field_line).
Adaptive traces store max_local_error in metadata instead.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
field_line
|
FieldLine
|
Previously traced field line (needs |
required |
data
|
FieldDataset
|
Same data used for the original trace. |
required |
field_components
|
tuple[str, str, str]
|
Vector field component names. |
('B_1', 'B_2', 'B_3')
|
interpolator
|
VectorFieldInterpolator | None
|
Pre-built interpolator. Built internally if |
None
|
Returns:
| Type | Description |
|---|---|
float
|
L2 distance between original and refined endpoints. |
Examples:
>>> import numpy as np
>>> from pypic.dataset import FieldDataset
>>> from pypic.grid import GridInfo
>>> from pypic.units import Normalization
>>> grid = GridInfo(dimensions=(8, 8, 8), spacing=(1.0, 1.0, 1.0))
>>> data = FieldDataset.from_arrays(
... {
... "B_1": np.ones((8, 8, 8)),
... "B_2": np.zeros((8, 8, 8)),
... "B_3": np.zeros((8, 8, 8)),
... },
... grid,
... Normalization.identity(),
... )
>>> fl = trace_field_line(
... data, (4.0, 4.0, 4.0), step_size=1.0, max_steps=3, direction="forward"
... )
>>> err = estimate_tracing_error(fl, data)
>>> err < 1e-9 # uniform field, RK4 is exact
True
Source code in src/pypic/traces/_tracing.py
1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 | |
trace_field_line(data, seed, *, step_size=0.5, max_steps=10000, direction='both', field_components=('B_1', 'B_2', 'B_3'), null_threshold=1e-12, terminate=None, interpolator=None)
¶
Trace a field line using classical (fixed-step) RK4.
Integrates \(d\mathbf{r}/ds = \hat{\mathbf{B}}(\mathbf{r})\) where \(\hat{\mathbf{B}} = \mathbf{B}/|\mathbf{B}|\) and \(s\) is arc length.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
data
|
FieldDataset
|
Gridded vector field data. |
required |
seed
|
Vector3
|
Starting point |
required |
step_size
|
float
|
Arc-length step size in code units. |
0.5
|
max_steps
|
int
|
Maximum integration steps per direction. |
10000
|
direction
|
str
|
|
'both'
|
field_components
|
tuple[str, str, str]
|
Names of the three vector field components. |
('B_1', 'B_2', 'B_3')
|
null_threshold
|
float
|
Field magnitude below which the point is a null. |
1e-12
|
terminate
|
Callable[[FloatArray], bool] | None
|
Optional callback; stops if it returns |
None
|
interpolator
|
VectorFieldInterpolator | None
|
Pre-built interpolator. Built internally if |
None
|
Returns:
| Type | Description |
|---|---|
FieldLine
|
|
Raises:
| Type | Description |
|---|---|
ValueError
|
If seed is outside domain or at a null point. |
Examples:
>>> import numpy as np
>>> from pypic.dataset import FieldDataset
>>> from pypic.grid import GridInfo
>>> from pypic.units import Normalization
>>> grid = GridInfo(dimensions=(8, 8, 8), spacing=(1.0, 1.0, 1.0))
>>> data = FieldDataset.from_arrays(
... {
... "B_1": np.ones((8, 8, 8)),
... "B_2": np.zeros((8, 8, 8)),
... "B_3": np.zeros((8, 8, 8)),
... },
... grid,
... Normalization.identity(),
... )
>>> fl = trace_field_line(
... data, (4.0, 4.0, 4.0), step_size=0.5, max_steps=4, direction="forward"
... )
>>> fl.n_points
5
>>> bool(fl.points[-1, 0] > fl.points[0, 0]) # advances along +x
True
Source code in src/pypic/traces/_tracing.py
597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 | |
trace_field_line_adaptive(data, seed, *, atol=1e-06, rtol=0.001, step_size_init=0.5, min_step=1e-08, max_step=2.0, max_steps=10000, direction='both', field_components=('B_1', 'B_2', 'B_3'), null_threshold=1e-12, terminate=None, loop_tol='auto', loop_min_arclen=None, interpolator=None)
¶
Trace a field line using adaptive Dormand-Prince 5(4).
Uses embedded error estimation to adapt step size, taking larger steps in smooth regions and smaller steps near strong curvature.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
data
|
FieldDataset
|
Gridded vector field data. |
required |
seed
|
Vector3
|
Starting point |
required |
atol
|
float
|
Absolute error tolerance. |
1e-06
|
rtol
|
float
|
Relative error tolerance. |
0.001
|
step_size_init
|
float
|
Initial arc-length step size. |
0.5
|
min_step
|
float
|
Minimum allowed step size. |
1e-08
|
max_step
|
float
|
Maximum allowed step size. |
2.0
|
max_steps
|
int
|
Maximum accepted steps per direction. |
10000
|
direction
|
str
|
|
'both'
|
field_components
|
tuple[str, str, str]
|
Names of the three vector field components. |
('B_1', 'B_2', 'B_3')
|
null_threshold
|
float
|
Field magnitude below which the point is a null. |
1e-12
|
terminate
|
Callable[[FloatArray], bool] | None
|
Optional callback; stops if it returns |
None
|
loop_tol
|
float, None, or ``"auto"``
|
Proximity threshold for closed-loop detection, in code units.
The trace terminates with
|
'auto'
|
loop_min_arclen
|
float or None
|
Minimum arc-length distance between the current point and a
candidate past point before a proximity hit counts as a closed
loop. Prevents self-trigger on the immediately preceding samples
when |
None
|
interpolator
|
VectorFieldInterpolator | None
|
Pre-built interpolator. Built internally if |
None
|
Returns:
| Type | Description |
|---|---|
FieldLine
|
|
Raises:
| Type | Description |
|---|---|
ValueError
|
If seed is outside domain or at a null point, if
|
Examples:
>>> import numpy as np
>>> from pypic.dataset import FieldDataset
>>> from pypic.grid import GridInfo
>>> from pypic.units import Normalization
>>> grid = GridInfo(dimensions=(8, 8, 8), spacing=(1.0, 1.0, 1.0))
>>> data = FieldDataset.from_arrays(
... {
... "B_1": np.ones((8, 8, 8)),
... "B_2": np.zeros((8, 8, 8)),
... "B_3": np.zeros((8, 8, 8)),
... },
... grid,
... Normalization.identity(),
... )
>>> fl = trace_field_line_adaptive(
... data, (4.0, 4.0, 4.0), max_steps=4, direction="forward"
... )
>>> fl.metadata["method"]
'rk45_dopri'
>>> "max_local_error" in fl.metadata
True
Source code in src/pypic/traces/_tracing.py
727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 | |
trace_field_lines_adaptive(data, seeds, *, atol=1e-06, rtol=0.001, step_size_init=0.5, min_step=1e-08, max_step=2.0, max_steps=10000, direction='both', field_components=('B_1', 'B_2', 'B_3'), null_threshold=1e-12, terminate=None, loop_tol='auto', loop_min_arclen=None, interpolator=None)
¶
Trace N field lines adaptively in parallel via the batched DP kernel.
Functionally equivalent to calling trace_field_line_adaptive
N times in a Python loop, but each Butcher-stage RHS evaluation
is amortized across all seeds in one
VectorFieldInterpolator dispatch — ~10× faster for
moderate N, larger speedups for N in the thousands. Memory
cost is N * (max_steps + 1) * 24 bytes per direction; pick
max_steps accordingly for large seed arrays.
Per-seed termination state (live mask, step count, reason, max
local error) is tracked in vectorized NumPy; dead seeds report
valid=False to the kernel on subsequent steps and don't
contaminate the surviving seeds (Butcher contraction is over the
stage axis, not the seed axis).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
data
|
FieldDataset
|
Gridded vector field data. |
required |
seeds
|
FloatArray
|
Starting points, shape |
required |
atol
|
float
|
Adaptive integration controls; semantics identical to
|
1e-06
|
rtol
|
float
|
Adaptive integration controls; semantics identical to
|
1e-06
|
step_size_init
|
float
|
Adaptive integration controls; semantics identical to
|
1e-06
|
min_step
|
float
|
Adaptive integration controls; semantics identical to
|
1e-06
|
max_step
|
float
|
Adaptive integration controls; semantics identical to
|
1e-06
|
max_steps
|
float
|
Adaptive integration controls; semantics identical to
|
1e-06
|
direction
|
str
|
|
'both'
|
field_components
|
tuple[str, str, str]
|
Names of the three vector field components. |
('B_1', 'B_2', 'B_3')
|
null_threshold
|
float
|
Field magnitude below which a point is treated as a null. |
1e-12
|
terminate
|
Callable[[FloatArray], bool] | None
|
Optional per-seed callback; stops a seed when it returns
|
None
|
loop_tol
|
float, None, or ``"auto"``
|
Proximity threshold for closed-loop detection, in code units.
Applied per-seed: each trace terminates with
|
'auto'
|
loop_min_arclen
|
float or None
|
Minimum arc-length separation before a proximity hit counts.
Defaults to |
None
|
interpolator
|
VectorFieldInterpolator | None
|
Pre-built interpolator. Built internally if |
None
|
Returns:
| Type | Description |
|---|---|
list[FieldLine]
|
One |
Raises:
| Type | Description |
|---|---|
ValueError
|
If |
Examples:
>>> import numpy as np
>>> from pypic.dataset import FieldDataset
>>> from pypic.grid import GridInfo
>>> from pypic.units import Normalization
>>> grid = GridInfo(dimensions=(8, 8, 8), spacing=(1.0, 1.0, 1.0))
>>> data = FieldDataset.from_arrays(
... {
... "B_1": np.ones((8, 8, 8)),
... "B_2": np.zeros((8, 8, 8)),
... "B_3": np.zeros((8, 8, 8)),
... },
... grid,
... Normalization.identity(),
... )
>>> seeds = np.array([[2.0, 2.0, 2.0], [4.0, 4.0, 4.0]])
>>> lines = trace_field_lines_adaptive(
... data, seeds, max_steps=4, direction="forward"
... )
>>> len(lines)
2
>>> all(fl.metadata["method"] == "rk45_dopri" for fl in lines)
True
Source code in src/pypic/traces/_tracing.py
928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 | |