Skip to main content

DPF Framework 2026 R1

logic:same property fields?

Last update: 31.07.2026

Version: 0.0.0

Description

Takes two property fields and compares them.

Inputs

This table lists the input pins for this operator. Input pins define the data that the operator requires to perform its operation. Some inputs are required, while others are optional and provide additional configuration. Each parameter is detailed in the sections that follow the table.

Pin number Name Status Expected type(s)
0 property_fieldA Required abstract_meshed_region
1 property_fieldB Required abstract_meshed_region

property_fieldA (Pin 0)

property_fieldB (Pin 1)

Outputs

This table lists the output pins for this operator. Output pins provide the results of the operator's computation and can be connected to inputs of other operators or retrieved for further processing. Each output is detailed in the sections that follow the table.

Pin number Name Expected type(s)
0 are_identical bool
1 information string

are_identical (Pin 0)

  • Expected type(s): bool

information (Pin 1)

Configurations

This operator supports configuration options that modify its behavior.

mutex

  • Expected type(s): bool
  • Default value: false

If this option is set to true, the shared memory is prevented from being simultaneously accessed by multiple threads.

Scripting

This operator can be accessed through scripting interfaces using these identifiers.

Category: logic

Plugin: core

Scripting name: identical_property_fields

Full name: logic.identical_property_fields

Internal name: compare::property_field

License: None

Examples

These examples demonstrate how to use this operator in different programming environments. Each example shows how to instantiate the operator, connect the required inputs, and retrieve the output.

C++
#include "dpf_api.h"

ansys::dpf::Operator op("compare::property_field"); // operator instantiation
op.connect(0, my_property_fieldA);
op.connect(1, my_property_fieldB);
bool my_are_identical = op.getOutput<bool>(0);
std::string my_information = op.getOutput<std::string>(1);
CPython
import ansys.dpf.core as dpf

op = dpf.operators.logic.identical_property_fields() # operator instantiation
op.inputs.property_fieldA.connect(my_property_fieldA)
op.inputs.property_fieldB.connect(my_property_fieldB)
my_are_identical = op.outputs.are_identical()
my_information = op.outputs.information()
IPython
import mech_dpf
import Ans.DataProcessing as dpf

op = dpf.operators.logic.identical_property_fields() # operator instantiation
op.inputs.property_fieldA.Connect(my_property_fieldA)
op.inputs.property_fieldB.Connect(my_property_fieldB)
my_are_identical = op.outputs.are_identical.GetData()
my_information = op.outputs.information.GetData()

Changelog

  • Version 0.0.0: Initial release.

Connect with Ansys