@@ -45,10 +45,10 @@ Create a single |Scoping| and plot the targeted entities when applied to a singl
4545
4646.. jupyter-execute ::
4747
48- node_scoping = core .Scoping(location=core .locations.nodal, ids=mesh_1.nodes.scoping.ids[0:100])
48+ node_scoping = dpf .Scoping(location=dpf .locations.nodal, ids=mesh_1.nodes.scoping.ids[0:100])
4949 node_scoping.plot(mesh=mesh_1, color="red")
50- element_scoping = core .Scoping(
51- location=core .locations.elemental, ids=mesh_1.elements.scoping.ids[0:100]
50+ element_scoping = dpf .Scoping(
51+ location=dpf .locations.elemental, ids=mesh_1.elements.scoping.ids[0:100]
5252 )
5353 element_scoping.plot(mesh=mesh_1, color="green")
5454
@@ -61,11 +61,11 @@ and plot targeted entities of a |MeshedRegion|.
6161
6262.. jupyter-execute ::
6363
64- node_scoping_1 = core .Scoping(location=core .locations.nodal, ids=mesh_1.nodes.scoping.ids[0:100])
65- node_scoping_2 = core .Scoping(
66- location=core .locations.nodal, ids=mesh_1.nodes.scoping.ids[300:400]
64+ node_scoping_1 = dpf .Scoping(location=dpf .locations.nodal, ids=mesh_1.nodes.scoping.ids[0:100])
65+ node_scoping_2 = dpf .Scoping(
66+ location=dpf .locations.nodal, ids=mesh_1.nodes.scoping.ids[300:400]
6767 )
68- node_sc = core .ScopingsContainer()
68+ node_sc = dpf .ScopingsContainer()
6969 node_sc.add_label(label="scoping", default_value=1)
7070 node_sc.add_scoping(label_space={"scoping": 1}, scoping=node_scoping_1)
7171 node_sc.add_scoping(label_space={"scoping": 2}, scoping=node_scoping_2)
@@ -78,10 +78,10 @@ Then plot the |ScopingsContainer| applied to a |MeshesContainer| with similarly
7878 meshes: dpf.MeshesContainer = ops.mesh.split_mesh(mesh=mesh_1, property="mat").eval()
7979
8080 label_space = {"mat": 1, "body": 1}
81- node_scoping_3 = core .Scoping(
82- location=core .locations.nodal, ids=meshes.get_mesh(label_space).nodes.scoping.ids[0:100]
81+ node_scoping_3 = dpf .Scoping(
82+ location=dpf .locations.nodal, ids=meshes.get_mesh(label_space).nodes.scoping.ids[0:100]
8383 )
84- node_sc_2 = core .ScopingsContainer()
84+ node_sc_2 = dpf .ScopingsContainer()
8585 node_sc_2.add_label(label="mat")
8686 node_sc_2.add_label(label="body")
8787 node_sc_2.add_scoping(label_space=label_space, scoping=node_scoping_3)
@@ -94,9 +94,9 @@ We now use the |DpfPlotter| to add scopings applied to |MeshedRegion| to a scene
9494
9595.. jupyter-execute ::
9696
97- node_scoping = core .Scoping(location=core .locations.nodal, ids=mesh_1.nodes.scoping.ids[0:100])
98- element_scoping = core .Scoping(
99- location=core .locations.elemental, ids=mesh_1.elements.scoping.ids[0:100]
97+ node_scoping = dpf .Scoping(location=dpf .locations.nodal, ids=mesh_1.nodes.scoping.ids[0:100])
98+ element_scoping = dpf .Scoping(
99+ location=dpf .locations.elemental, ids=mesh_1.elements.scoping.ids[0:100]
100100 )
101101
102102 from ansys.dpf.core.plotter import DpfPlotter
0 commit comments