fedoo.Mesh.convert_data
- Mesh.convert_data(data: ndarray, convert_from: str | None = None, convert_to: str = 'GaussPoint', n_elm_gp: int | None = None, method: str | None = None) ndarray
Convert a field between node, element and Gauss-point storage.
- Parameters:
data (ndarray) – Field values. The last axis stores the points.
convert_from ({'Node', 'Element', 'GaussPoint'}) – Source and target storage. If
convert_fromis None, it is inferred from the last axis length.convert_to ({'Node', 'Element', 'GaussPoint'}) – Source and target storage. If
convert_fromis None, it is inferred from the last axis length.n_elm_gp (int, optional) – Number of Gauss points per element.
method ({'mean', 'l2', 'spr'}, optional) – Method used when converting Gauss-point values to nodes.
'mean'keeps the historical element-wise extrapolation followed by nodal averaging.'l2'performs a global L2 projection using fedoo’s node-to-Gauss-point interpolation and quadrature matrices.'spr'performs a linear Superconvergent Patch Recovery around each node.