intersect#

class ansys.dpf.core.operators.scoping.intersect.intersect(scopingA=None, scopingB=None, config=None, server=None)#

Bases: ansys.dpf.core.dpf_operator.Operator

Intersect 2 scopings and return the intersection and the difference between the intersection and the first scoping.

Parameters:
Returns:

  • intersection (Scoping)

  • scopingA_min_intersection (Scoping)

Examples

>>> from ansys.dpf import core as dpf
>>> # Instantiate operator
>>> op = dpf.operators.scoping.intersect()
>>> # Make input connections
>>> my_scopingA = dpf.Scoping()
>>> op.inputs.scopingA.connect(my_scopingA)
>>> my_scopingB = dpf.Scoping()
>>> op.inputs.scopingB.connect(my_scopingB)
>>> # Instantiate operator and connect inputs in one line
>>> op = dpf.operators.scoping.intersect(
...     scopingA=my_scopingA,
...     scopingB=my_scopingB,
... )
>>> # Get output data
>>> result_intersection = op.outputs.intersection()
>>> result_scopingA_min_intersection = op.outputs.scopingA_min_intersection()

Overview#

inputs

Enables to connect inputs to the operator

outputs

Enables to get outputs of the operator by evaluating it

default_config

Returns the default config of the operator.

Import detail#

from ansys.dpf.core.operators.scoping.intersect import intersect

Property detail#

property intersect.inputs#

Enables to connect inputs to the operator

Returns:

inputs

Return type:

InputsIntersect

property intersect.outputs#

Enables to get outputs of the operator by evaluating it

Returns:

outputs

Return type:

OutputsIntersect

Method detail#

static intersect.default_config(server=None)#

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.DPFServer, optional) – Server with channel connected to the remote or local instance. When None, attempts to use the global server.