You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/source/_static/dpf_operators.html
+8-2Lines changed: 8 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -14851,9 +14851,15 @@ <h2>LaTeX</h2>
14851
14851
</div></figure><div class="op-version">Version 0.0.0</div><h2 class="op-des-h2">Inputs</h2><div><table class="pin-box"><tbody><tr><td><pin-number n="0" ellipsis = "false"></pin-number></td><td><pin-name name="meshA"></pin-name></td><td><req-type typeName="(abstract_meshed_region)"></req-type></td></tr></tbody></table><table class="pin-box"><tbody><tr><td><pin-number n="1" ellipsis = "false"></pin-number></td><td><pin-name name="meshB"></pin-name></td><td><req-type typeName="(abstract_meshed_region)"></req-type></td></tr></tbody></table><table class="pin-box"><tbody><tr><td><pin-number-optional n="2" ellipsis = "false"></pin-number-optional></td><td><pin-name name="small_value"></pin-name></td><td><req-type typeName="(double)"></req-type></td><td><div class = "pin-des-text"><p>define what is a small value for numeric comparison (default value:1.0e-14).</p>
14852
14852
</div></td></tr></tbody></table><table class="pin-box"><tbody><tr><td><pin-number-optional n="3" ellipsis = "false"></pin-number-optional></td><td><pin-name name="tolerance"></pin-name></td><td><req-type typeName="(double)"></req-type></td><td><div class = "pin-des-text"><p>define the relative tolerance ceil for numeric comparison (default is 0.001).</p>
14853
14853
</div></td></tr></tbody></table><table class="pin-box"><tbody><tr><td><pin-number n="4" ellipsis = "false"></pin-number></td><td><pin-name name="compare_auxiliary"></pin-name></td><td><req-type typeName="(bool)"></req-type></td><td><div class = "pin-des-text"><p>compare auxiliary data (i.e property fields, scopings...). Default value is 'false'.</p>
14854
-
</div></td></tr></tbody></table></div><h2 class="op-des-h2">Outputs</h2><div><table class="pin-box"><tbody><tr><td><pin-number n="0" ellipsis = "false"></pin-number></td><td><pin-name name="are_identical"></pin-name></td><td><req-type typeName="(bool)"></req-type></td></tr></tbody></table></div><h2 class="op-des-h2">Configurations</h2><config-spec name="mutex" default="false" doc="If this option is set to true, the shared memory is prevented from being simultaneously accessed by multiple threads." types="bool" ></config-spec><h2 class="op-des-h2">Scripting</h2><scripting-part scripting_name="identical_meshes" license="none" cat="logic" plugin="core" cpp-name="compare::mesh"></scripting-part><h2 class="op-des-h2">Changelog</h2><op-changelog content='{"0.0.0":"New"}'></op-changelog></div><div class="operator" id="same fields?" scripting_name="identical_fields"plugin="core"cat="logic"><h1 class="op-des-h1">logic: same fields?</h1><figure class="figure-op-des"> <figcaption > Description </figcaption><div class = "figure-op-des-text"><p>Check if two fields are identical.</p>
14854
+
</div></td></tr></tbody></table></div><h2 class="op-des-h2">Outputs</h2><div><table class="pin-box"><tbody><tr><td><pin-number n="0" ellipsis = "false"></pin-number></td><td><pin-name name="are_identical"></pin-name></td><td><req-type typeName="(bool)"></req-type></td></tr></tbody></table></div><h2 class="op-des-h2">Configurations</h2><config-spec name="mutex" default="false" doc="If this option is set to true, the shared memory is prevented from being simultaneously accessed by multiple threads." types="bool" ></config-spec><h2 class="op-des-h2">Scripting</h2><scripting-part scripting_name="identical_meshes" license="none" cat="logic" plugin="core" cpp-name="compare::mesh"></scripting-part><h2 class="op-des-h2">Changelog</h2><op-changelog content='{"0.0.0":"New"}'></op-changelog></div><div class="operator" id="same fields?" scripting_name="identical_fields"plugin="core"cat="logic"><h1 class="op-des-h1">logic: same fields?</h1><figure class="figure-op-des"> <figcaption > Description </figcaption><div class = "figure-op-des-text"><p>Check if two fields are identical according to the following behavior:</p>
14855
+
<ul>
14856
+
<li>double_value (input pin 2) parameter is a significance threshold, not an absolute tolerance</li>
14857
+
<li>Values below double_value are considereded 'negligible', values above are considered 'significant'</li>
14858
+
<li>Both fields are considered different if the data for at least one entity in one field is negligible and the data for the same entity in the other is significant</li>
14859
+
<li>When the data for the same entity in both fields is significant, they are compared based on double_tolerance (input pin 3) with the expression given in the pin documentation.</li>
14860
+
</ul>
14855
14861
</div></figure><div class="op-version">Version 0.0.0</div><h2 class="op-des-h2">Inputs</h2><div><table class="pin-box"><tbody><tr><td><pin-number n="0" ellipsis = "false"></pin-number></td><td><pin-name name="fieldA"></pin-name></td><td><req-type typeName="(field)"></req-type></td></tr></tbody></table><table class="pin-box"><tbody><tr><td><pin-number n="1" ellipsis = "false"></pin-number></td><td><pin-name name="fieldB"></pin-name></td><td><req-type typeName="(field)"></req-type></td></tr></tbody></table><table class="pin-box"><tbody><tr><td><pin-number-optional n="2" ellipsis = "false"></pin-number-optional></td><td><pin-name name="double_value"></pin-name></td><td><req-type typeName="(double)"></req-type></td><td><div class = "pin-des-text"><p>Double positive small value. Smallest value considered during the comparison step. All the absolute values in the field less than this value are considered null, (default value: 1.0e-14).</p>
14856
-
</div></td></tr></tbody></table><table class="pin-box"><tbody><tr><td><pin-number-optional n="3" ellipsis = "false"></pin-number-optional></td><td><pin-name name="double_tolerance"></pin-name></td><td><req-type typeName="(double)"></req-type></td><td><div class = "pin-des-text"><p>Double relative tolerance. Maximum tolerance gap between two compared values. Values within relative tolerance are considered identical. Formula is (v1 - v2) / v2 < relativeTol. Default is 0.001.</p>
14862
+
</div></td></tr></tbody></table><table class="pin-box"><tbody><tr><td><pin-number-optional n="3" ellipsis = "false"></pin-number-optional></td><td><pin-name name="double_tolerance"></pin-name></td><td><req-type typeName="(double)"></req-type></td><td><div class = "pin-des-text"><p>Double relative tolerance. Maximum tolerance gap between two compared values. Values within relative tolerance are considered identical. Formula is (v1 - v2) / v2 < double_tolerance. Default is 0.001.</p>
14857
14863
</div></td></tr></tbody></table></div><h2 class="op-des-h2">Outputs</h2><div><table class="pin-box"><tbody><tr><td><pin-number n="0" ellipsis = "false"></pin-number></td><td><pin-name name="boolean"></pin-name></td><td><req-type typeName="(bool)"></req-type></td><td><div class = "pin-des-text"><p>bool (true if identical...)</p>
14858
14864
</div></td></tr></tbody></table><table class="pin-box"><tbody><tr><td><pin-number n="1" ellipsis = "false"></pin-number></td><td><pin-name name="message"></pin-name></td><td><req-type typeName="(string)"></req-type></td></tr></tbody></table></div><h2 class="op-des-h2">Configurations</h2><config-spec name="mutex" default="false" doc="If this option is set to true, the shared memory is prevented from being simultaneously accessed by multiple threads." types="bool" ></config-spec><h2 class="op-des-h2">Scripting</h2><scripting-part scripting_name="identical_fields" license="none" cat="logic" plugin="core" cpp-name="AreFieldsIdentical"></scripting-part><h2 class="op-des-h2">Changelog</h2><op-changelog content='{"0.0.0":"New"}'></op-changelog></div><div class="operator" id="same scopings?" scripting_name="identical_scopings"plugin="core"cat="logic"><h1 class="op-des-h1">logic: same scopings?</h1><figure class="figure-op-des"> <figcaption > Description </figcaption><div class = "figure-op-des-text"><p>Check if two scopings are identical.</p>
Copy file name to clipboardExpand all lines: src/ansys/dpf/core/operators/logic/identical_fields.py
+27-5Lines changed: 27 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,18 @@
20
20
21
21
22
22
classidentical_fields(Operator):
23
-
r"""Check if two fields are identical.
23
+
r"""Check if two fields are identical according to the following behavior:
24
+
25
+
- double_value (input pin 2) parameter is a significance threshold, not
26
+
an absolute tolerance
27
+
- Values below double_value are considereded ‘negligible’, values above
28
+
are considered ‘significant’
29
+
- Both fields are considered different if the data for at least one
30
+
entity in one field is negligible and the data for the same entity in
31
+
the other is significant
32
+
- When the data for the same entity in both fields is significant, they
33
+
are compared based on double_tolerance (input pin 3) with the
34
+
expression given in the pin documentation.
24
35
25
36
26
37
Inputs
@@ -30,7 +41,7 @@ class identical_fields(Operator):
30
41
double_value: float, optional
31
42
Double positive small value. Smallest value considered during the comparison step. All the absolute values in the field less than this value are considered null, (default value: 1.0e-14).
32
43
double_tolerance: float, optional
33
-
Double relative tolerance. Maximum tolerance gap between two compared values. Values within relative tolerance are considered identical. Formula is (v1 - v2) / v2 < relativeTol. Default is 0.001.
44
+
Double relative tolerance. Maximum tolerance gap between two compared values. Values within relative tolerance are considered identical. Formula is (v1 - v2) / v2 < double_tolerance. Default is 0.001.
34
45
35
46
Outputs
36
47
-------
@@ -95,7 +106,18 @@ def __init__(
95
106
96
107
@staticmethod
97
108
def_spec() ->Specification:
98
-
description=r"""Check if two fields are identical.
109
+
description=r"""Check if two fields are identical according to the following behavior:
110
+
111
+
- double_value (input pin 2) parameter is a significance threshold, not
112
+
an absolute tolerance
113
+
- Values below double_value are considereded ‘negligible’, values above
114
+
are considered ‘significant’
115
+
- Both fields are considered different if the data for at least one
116
+
entity in one field is negligible and the data for the same entity in
117
+
the other is significant
118
+
- When the data for the same entity in both fields is significant, they
119
+
are compared based on double_tolerance (input pin 3) with the
120
+
expression given in the pin documentation.
99
121
"""
100
122
spec=Specification(
101
123
description=description,
@@ -122,7 +144,7 @@ def _spec() -> Specification:
122
144
name="double_tolerance",
123
145
type_names=["double"],
124
146
optional=True,
125
-
document=r"""Double relative tolerance. Maximum tolerance gap between two compared values. Values within relative tolerance are considered identical. Formula is (v1 - v2) / v2 < relativeTol. Default is 0.001.""",
147
+
document=r"""Double relative tolerance. Maximum tolerance gap between two compared values. Values within relative tolerance are considered identical. Formula is (v1 - v2) / v2 < double_tolerance. Default is 0.001.""",
r"""Allows to connect double_tolerance input to the operator.
288
310
289
-
Double relative tolerance. Maximum tolerance gap between two compared values. Values within relative tolerance are considered identical. Formula is (v1 - v2) / v2 < relativeTol. Default is 0.001.
311
+
Double relative tolerance. Maximum tolerance gap between two compared values. Values within relative tolerance are considered identical. Formula is (v1 - v2) / v2 < double_tolerance. Default is 0.001.
0 commit comments