From 4955edbe289ff861001617d1660c1e7f472e85dc Mon Sep 17 00:00:00 2001 From: PProfizi Date: Thu, 24 Jul 2025 18:47:36 +0200 Subject: [PATCH] fix(example): fix retro with 25R1 and below for 00-basic_plotting.py --- examples/06-plotting/00-basic_plotting.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/examples/06-plotting/00-basic_plotting.py b/examples/06-plotting/00-basic_plotting.py index c130e3aa597..714d5e6659a 100644 --- a/examples/06-plotting/00-basic_plotting.py +++ b/examples/06-plotting/00-basic_plotting.py @@ -36,6 +36,7 @@ # Plot the bare mesh of a model model = dpf.Model(examples.find_multishells_rst()) +print(model) model.plot(color="w", show_edges=True, title="Model", text="Model plot") # # Additional PyVista kwargs are supported, such as: model.plot( @@ -55,6 +56,9 @@ # Plot a field on its supporting mesh stress = model.results.stress() +# We request the stress as nodal to bypass a bug for DPF 2025 R1 and below +# which prevents from plotting ElementalNodal data on shells +stress.inputs.requested_location.connect(dpf.locations.nodal) fc = stress.outputs.fields_container() field = fc[0] field.plot(notebook=False, shell_layers=None, show_axes=True, title="Field", text="Field plot")