ansys.dpf.core.operators.scoping.connectivity_ids#
- class ansys.dpf.core.operators.scoping.connectivity_ids(mesh_scoping=None, mesh=None, take_mid_nodes=None, config=None, server=None)#
Bases:
ansys.dpf.core.dpf_operator.Operator
Returns the ordered node ids corresponding to the element ids scoping in input. For each element the node ids are its connectivity.
- Parameters:
mesh_scoping (Scoping) – Elemental scoping
mesh (MeshedRegion, optional) – the support of the scoping is expected if there is no mesh in input
take_mid_nodes (bool, optional) – default is true
- Returns:
mesh_scoping (Scoping)
elemental_scoping (Scoping) – same as the input scoping but with ids duplicated to have the same size as nodal output scoping
Examples
>>> from ansys.dpf import core as dpf
>>> # Instantiate operator >>> op = dpf.operators.scoping.connectivity_ids()
>>> # Make input connections >>> my_mesh_scoping = dpf.Scoping() >>> op.inputs.mesh_scoping.connect(my_mesh_scoping) >>> my_mesh = dpf.MeshedRegion() >>> op.inputs.mesh.connect(my_mesh) >>> my_take_mid_nodes = bool() >>> op.inputs.take_mid_nodes.connect(my_take_mid_nodes)
>>> # Instantiate operator and connect inputs in one line >>> op = dpf.operators.scoping.connectivity_ids( ... mesh_scoping=my_mesh_scoping, ... mesh=my_mesh, ... take_mid_nodes=my_take_mid_nodes, ... )
>>> # Get output data >>> result_mesh_scoping = op.outputs.mesh_scoping() >>> result_elemental_scoping = op.outputs.elemental_scoping()
- _inputs#
- _outputs#
- static _spec() ansys.dpf.core.operators.specification.Specification #
- static default_config(server: ansys.dpf.core.server_types.AnyServerType = None) ansys.dpf.core.config.Config #
Returns the default config of the operator.
This config can then be changed to the user needs and be used to instantiate the operator. The Configuration allows to customize how the operation will be processed by the operator.
- Parameters:
server – Server with channel connected to the remote or local instance. When
None
, attempts to use the global server.- Returns:
A new Config instance equivalent to the default config for this operator.
- Return type:
config
- property inputs: InputsConnectivityIds#
Enables to connect inputs to the operator
- Returns:
An instance of InputsConnectivityIds.
- Return type:
inputs
- property outputs: OutputsConnectivityIds#
Enables to get outputs of the operator by evaluating it
- Returns:
An instance of OutputsConnectivityIds.
- Return type:
outputs