mesh_scoping_factory#
Contains functions to simplify creating mesh scopings.
- ansys.dpf.core.mesh_scoping_factory.nodal_scoping(node_ids, server=None)#
Create a specific nodal
ansys.dpf.core.Scoping
associated with a mesh.- Parameters:
node_ids (list[int]) – List of IDs for the nodes.
server (DpfServer, optional) – Server with the channel connected to the remote or local instance. The default is
None
, in which case an attempt is made to use the global server.
- Returns:
scoping
- Return type:
- ansys.dpf.core.mesh_scoping_factory.elemental_scoping(element_ids, server=None)#
Create a specific elemental
ansys.dpf.core.Scoping
associated with a mesh.- Parameters:
element_ids (list[int]) – List of IDs for the elements.
server (DpfServer, optional) – Server with the channel connected to the remote or local instance. The default is
None
, in which case an attempt is made to use the global server.
- Returns:
scoping
- Return type:
- ansys.dpf.core.mesh_scoping_factory.face_scoping(face_ids, server=None)#
Create a specific face
ansys.dpf.core.Scoping
associated with a mesh.- Parameters:
face_ids (list[int]) – List of IDs for the faces.
server (DpfServer, optional) – Server with the channel connected to the remote or local instance. The default is
None
, in which case an attempt is made to use the global server.
- Returns:
scoping
- Return type:
- ansys.dpf.core.mesh_scoping_factory.named_selection_scoping(named_selection_name, model, server=None)#
Create a specific
ansys.dpf.core.Scoping
associated with a specified model’s mesh.- Parameters:
named_selection_name (str) – Name of the named selection.
server (DpfServer, optional) – Server with the channel connected to the remote or local instance. The default is
None
, in which case an attempt is made to use the global server.
- Returns:
scoping
- Return type: