mesh.Mesh.report#
- Mesh.report(full=False, **kargs)#
Create a report on the Mesh shape and size.
Parameters#
- full: bool
If False (default), the report only contains the number of points, the number of elements, the plexitude, the dimensionality, and the element type. If True, it also contains the coordinates array.
- **kargs:
Numpy print options to be used in the formatting of the coords array.
Returns#
str
Examples#
>>> M = Mesh(eltype='line2') >>> print(M.report()) Mesh: n_nodes: 2, n_elems: 1, plexitude: 2, level: 1, eltype: line2 BBox: [0. 0. 0.], [1. 0. 0.] Size: [1. 0. 0.] Length: 1.0 >>> print(M.report(full=True)) Mesh: n_nodes: 2, n_elems: 1, plexitude: 2, level: 1, eltype: line2 BBox: [0. 0. 0.], [1. 0. 0.] Size: [1. 0. 0.] Length: 1.0 Coords: [[0. 0. 0.] [1. 0. 0.]] Elems: [[0 1]]