Skip to main content

DPF Mechanical 2026 R1

Ans.DataProcessing.operators.scoping Namespace

Last update: 18.06.2026

Classes

Class Description
adapt_with_scopings_container Rescopes/splits a fields container to correspond to a scopings container. Each field from the input container is rescoped using each scoping from the scopings container, creating a cartesian product of rescoped fields. ///available inputs: field_or_fields_container (FieldsContainer, Field), scopings_container (ScopingsContainer), keep_empty_fields (bool) (optional)
[change_fc](Ans_DataProcessiDEPRECATED, PLEASE USE ADAPT WITH SCOPINGS CONTAINER. Rescopes/splits a fields container to correspond to a scopings container. ///available inputs: field_or_fields_container (FieldsContainer, Field), scopings_container (ScopingsContainer)
[compute_element_centroping_compute_element_centroids.md) Computes the element centroids of the mesh. It also outputs the element measure. ///available inputs: element_scoping (Scoping) (optional), mesh (MeshedRegion)
[connectivitcoping_connectivity_ids.md) Returns the ordered node ids corresponding to the element ids scoping in input. For each element the node ids are its connectivity. ///available inputs: mesh_scoping (Scoping), mesh (MeshedRegion) (optional), take_mid_nodes (bool) (optional)
[elemental_from_mesng_elemental_from_mesh.md) Retrieves the elemental scoping from a mesh, containing all element IDs with elemental location. ///available inputs: mesh (MeshedRegion)
from_mesh Provides the entire mesh scoping based on the requested location ///available inputs: mesh (MeshedRegion), requested_location (string) (optional)
[intersectg_intersect.md) Intersect 2 scopings and return the intersection and the difference between the intersection and the first scoping. ///available inputs: scopingA (Scoping), scopingB (Scoping)
[nodal_from_mping_nodal_from_mesh.md) Retrieves the nodal scoping from a mesh, containing all node IDs. ///available inputs: mesh (MeshedRegion)
on_mesh_property Provides a scoping on a given property name and a property number. ///available inputs: requested_location (string) (optional), property_name (string), property_id (IList int, Int32, System.Collections.IEnumerable) (optional), inclusive (Int32) (optional), mesh (MeshedRegion)
[on_named_se_scoping_on_named_selection.md) provides a scoping at a given location based on a given named selection ///available inputs: requested_location (string), named_selection_name (string), int_inclusive (Int32) (optional), streams_container (StreamsContainer) (optional), data_sources (DataSources)
on_property Provides a scoping at a given location based on a given property name and a property number. ///available inputs: requested_location (string), property_name (string), property_id (Int32), streams_container (StreamsContainer) (optional), data_sources (DataSources), inclusive (Int32) (optional)
reduce_sampling Take a scoping and remove half of it's content. ///available inputs: mesh_scoping (Scoping), denominator (Int32) (optional)
rescope rescope()
rescope_custom_type_field Rescopes a custom type field on the given scoping. If an ID does not exist in the original custom type field, the default value (in 2) is used when defined. ///available inputs: fields (CustomTypeFieldsContainer, CustomTypeField), mesh_scoping (Scoping, IList int, System.Collections.IEnumerable) (optional), default_value (CustomTypeFieldCustomTypeField) (optional)
rescope_fc rescope_fc()
rescope_property_field Rescopes a property field on the given scoping. If an ID does not exist in the original property field, the default value (in 2) is used when defined. ///available inputs: fields (PropertyFieldsContainer, PropertyField), mesh_scoping (Scoping, IList int, System.Collections.IEnumerable) (optional), default_value (Int32, IList int, System.Collections.IEnumerable) (optional)
scoping_get_attribute Uses the Scoping APIs to return a given attribute of the scoping in input. ///available inputs: scoping (Scoping), property_name (string)
split_on_property_type Splits a given scoping or the mesh scoping (nodal or elemental) on given properties (elshape and/or material, since 2025R1 it supports any scalar property field name contained in the mesh property fields) and returns a scopings container with those split scopings. ///available inputs: mesh_scoping (Scoping) (optional), mesh (MeshedRegion), requested_location (string), skin_case (Int32) (optional), label1 (string) (optional), label2 (string) (optional)
transpose Transposes the input scoping or scopings container (Elemental/Faces --> Nodal, or Nodal ---> Elemental/Faces), based on the input mesh region. ///available inputs: mesh_scoping (Scoping, ScopingsContainer), meshed_region (MeshedRegion, MeshesContainer), inclusive (Int32) (optional), requested_location (string) (optional)

Connect with Ansys