1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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
//! Python wrappers for [`crate::ops::evolution`] — the operators that
//! produce an `Evolution` from other containers.
use cratePyEvolution;
use cratePyMesh;
use cratePyNodeField;
use *;
use py_op;
/// The values of `field` along `line`, one curve per component.
///
/// Each curve gives the value against the distance travelled along the line.
/// The order of the cells of `line`, zone after zone, is the path. The
/// abscissa of a point is the length of the path up to it — the sum of the
/// straight distances from one point to the next —, `0` at the first point;
/// its ordinate is the value of the component at that node (a node the field
/// does not define reads zero).
///
/// # Parameters
///
/// - `field`: the field to read, at the nodes. A field of another mesh, or a
/// field at the Gauss points, is first brought onto the points of the line
/// with `pyrucast.node_field.project`.
/// - `line`: the path, a POI1 mesh on the same `Coords` as `field`.
/// - `components`: the components to read, one curve each; `None` takes every
/// component of the field, in its order.
///
/// # Returns
///
/// An `Evolution` with one `SubEvolution` per component, in the order of
/// `components`, whose `ordinate_type` is the component's name.
///
/// # Raises
///
/// `RuntimeError` if `line` is not POI1, if two consecutive points coincide
/// (the abscissa would repeat), if `field` does not carry one of
/// `components`, or if `field` and `line` hang from different `Coords`.