pysdic.Plotter3D.add_integration_points#
- Plotter3D.add_integration_points(integration_points, mesh, *, warp_by=None, color=None, size=None, opacity=None, mask=None, property=None, property_axis=None, property_clim=None, property_cmap=None, property_below_color=None, property_above_color=None, show_bar=False, bar=None, vectors=None, vector_scale=1.0, vector_color=None, show_points_index=False, index_color='black', index_font_size=10)[source]#
Add integration points to the plotter, at their global coordinates in a mesh (see
pysdic.Mesh.compute_integration_points_coordinates()).The unlocated points (element index
-1) are not displayed.- Parameters:
integration_points (
pysdic.IntegrationPoints) – The integration points to display, consistent withmesh(seepysdic.Mesh.validate_integration_points()).mesh (
pysdic.Mesh) – The mesh in which the points are located.warp_by (Optional[Union[str, ArrayLike]], optional) – The displacement added to the vertices of the mesh before computing the coordinates of the points: the name of a vertex property or an array, of shape \((N_v, E)\).
color (Optional[Union[str, Tuple[Real, Real, Real]]]) – See
add_point_cloud().size (Optional[Real]) – See
add_point_cloud().opacity (Optional[Real]) – See
add_point_cloud().mask (Optional[ArrayLike], optional) – A boolean array of shape \((N_p,)\), True for the points to display.
property (Optional[Union[str, ArrayLike]], optional) – The property used to color the points: the name of a property of the integration points, or an array of shape \((N_p,)\) or \((N_p, A)\).
property_axis (Optional[Integral]) – See
add_point_cloud().property_clim (Optional[Tuple[Real, Real]]) – See
add_point_cloud().property_cmap (Optional[Union[str, matplotlib.colors.Colormap]]) – See
add_point_cloud().property_below_color (Optional[Union[str, Tuple[Real, Real, Real]]]) – See
add_point_cloud().property_above_color (Optional[Union[str, Tuple[Real, Real, Real]]]) – See
add_point_cloud().show_bar (bool) – See
add_point_cloud().bar (Optional[Dict[str, Any]]) – See
add_point_cloud().vectors (Optional[Union[str, ArrayLike]], optional) – A vector field drawn as arrows from the displayed points: the name of a property of the integration points or an array, of shape \((N_p, 3)\) or \((N_p, E)\).
vector_scale (Union[Real, ArrayLike]) – See
add_point_cloud().vector_color (Optional[Union[str, Tuple[Real, Real, Real]]]) – See
add_point_cloud().show_points_index (bool) – See
add_point_cloud()(the index of each point inintegration_points).index_color (Optional[Union[str, Tuple[Real, Real, Real]]]) – See
add_point_cloud()(the index of each point inintegration_points).index_font_size (Real) – See
add_point_cloud()(the index of each point inintegration_points).
- Raises:
TypeError – If
integration_pointsis not apysdic.IntegrationPointsormeshis not apysdic.Mesh.ValueError – If the points are not consistent with the mesh, or if an input has a wrong shape (see
add_point_cloud()).
- Return type:
None