Skip to content

Commit 1a74fa5

Browse files
Update generated code for DPF 261_daily on main (#2779)
Co-authored-by: PProfizi <100710998+PProfizi@users.noreply.github.com>
1 parent 256063d commit 1a74fa5

File tree

4 files changed

+36
-1
lines changed

4 files changed

+36
-1
lines changed

doc/source/_static/dpf_operators.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15102,7 +15102,8 @@ <h2>LaTeX</h2>
1510215102
</div></td></tr></tbody></table><table class="pin-box"><tbody><tr><td><pin-number-optional n="6" ellipsis = "false"></pin-number-optional></td><td><pin-name name="spoint"></pin-name></td><td><req-type typeName="(field | fields_container)"></req-type></td><td><div class = "pin-des-text"><p>Field or fields container of the coordinates of the point used for moment summations. Defaults to (0,0,0).</p>
1510315103
</div></td></tr></tbody></table><table class="pin-box"><tbody><tr><td><pin-number-optional n="7" ellipsis = "false"></pin-number-optional></td><td><pin-name name="abs_rel_key"></pin-name></td><td><req-type typeName="(int32)"></req-type></td><td><div class = "pin-des-text"><p>Key to select the type of response: 0 for relative response (default) or 1 for absolute response.</p>
1510415104
</div></td></tr></tbody></table><table class="pin-box"><tbody><tr><td><pin-number-optional n="8" ellipsis = "false"></pin-number-optional></td><td><pin-name name="signif"></pin-name></td><td><req-type typeName="(double)"></req-type></td><td><div class = "pin-des-text"><p>Significance threshold, defaults to 0.0001. Any mode with a significance level above this value will be included in the combination.The significance level is defined as the modal covariance matrix term, divided by the maximum modal covariance matrix term.</p>
15105-
</div></td></tr></tbody></table></div><h2 class="op-des-h2">Outputs</h2><div><table class="pin-box"><tbody><tr><td><pin-number n="1" ellipsis = "false"></pin-number></td><td><pin-name name="moment_accumulation"></pin-name></td><td><req-type typeName="(fields_container)"></req-type></td><td><div class = "pin-des-text"><p>Returns the sum of moments for the 1-sigma displacement solution on the scoped nodes/elements.</p>
15105+
</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="force_accumulation"></pin-name></td><td><req-type typeName="(fields_container)"></req-type></td><td><div class = "pin-des-text"><p>Returns the sum of forces for the 1-sigma displacement solution on the scoped nodes/elements.</p>
15106+
</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="moment_accumulation"></pin-name></td><td><req-type typeName="(fields_container)"></req-type></td><td><div class = "pin-des-text"><p>Returns the sum of moments for the 1-sigma displacement solution on the scoped nodes/elements.</p>
1510615107
</div></td></tr></tbody></table><table class="pin-box"><tbody><tr><td><pin-number n="10" ellipsis = "false"></pin-number></td><td><pin-name name="forces_on_nodes"></pin-name></td><td><req-type typeName="(fields_container)"></req-type></td><td><div class = "pin-des-text"><p>Returns the nodal forces for the 1-sigma displacement solution on the scoped nodes/elements.</p>
1510715108
</div></td></tr></tbody></table><table class="pin-box"><tbody><tr><td><pin-number n="11" ellipsis = "false"></pin-number></td><td><pin-name name="moments_on_nodes"></pin-name></td><td><req-type typeName="(fields_container)"></req-type></td><td><div class = "pin-des-text"><p>Returns the nodal moments for the 1-sigma displacement solution on the scoped nodes/elements.</p>
1510815109
</div></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="force_summation_psd" license="any_dpf_supported_increments" cat="averaging" plugin="core" cpp-name="force_summation_psd"></scripting-part><h2 class="op-des-h2">Changelog</h2><op-changelog content='{"0.0.0":"New","0.1.0":"Scopings container supported on pins 1 and 2. Fields container supported on pin 6.","0.1.1":"Contact elements are now excluded from the summation."}'></op-changelog></div><div class="operator" id="euler load buckling" scripting_name="euler_load_buckling"plugin="core"cat="result"><h1 class="op-des-h1">result: euler load buckling</h1><figure class="figure-op-des"> <figcaption > Description </figcaption><div class = "figure-op-des-text"><p>Computing Euler's Critical Load. Formula: Ncr = n<em>E</em>I<em>pi</em>pi /(L*L)</p>

src/ansys/dpf/core/operators/averaging/force_summation_psd.py

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ class force_summation_psd(Operator):
4949
5050
Outputs
5151
-------
52+
force_accumulation: FieldsContainer
53+
Returns the sum of forces for the 1-sigma displacement solution on the scoped nodes/elements.
5254
moment_accumulation: FieldsContainer
5355
Returns the sum of moments for the 1-sigma displacement solution on the scoped nodes/elements.
5456
forces_on_nodes: FieldsContainer
@@ -91,6 +93,7 @@ class force_summation_psd(Operator):
9193
... )
9294
9395
>>> # Get output data
96+
>>> result_force_accumulation = op.outputs.force_accumulation()
9497
>>> result_moment_accumulation = op.outputs.moment_accumulation()
9598
>>> result_forces_on_nodes = op.outputs.forces_on_nodes()
9699
>>> result_moments_on_nodes = op.outputs.moments_on_nodes()
@@ -183,6 +186,12 @@ def _spec() -> Specification:
183186
),
184187
},
185188
map_output_pin_spec={
189+
0: PinSpecification(
190+
name="force_accumulation",
191+
type_names=["fields_container"],
192+
optional=False,
193+
document=r"""Returns the sum of forces for the 1-sigma displacement solution on the scoped nodes/elements.""",
194+
),
186195
1: PinSpecification(
187196
name="moment_accumulation",
188197
type_names=["fields_container"],
@@ -461,13 +470,18 @@ class OutputsForceSummationPsd(_Outputs):
461470
>>> from ansys.dpf import core as dpf
462471
>>> op = dpf.operators.averaging.force_summation_psd()
463472
>>> # Connect inputs : op.inputs. ...
473+
>>> result_force_accumulation = op.outputs.force_accumulation()
464474
>>> result_moment_accumulation = op.outputs.moment_accumulation()
465475
>>> result_forces_on_nodes = op.outputs.forces_on_nodes()
466476
>>> result_moments_on_nodes = op.outputs.moments_on_nodes()
467477
"""
468478

469479
def __init__(self, op: Operator):
470480
super().__init__(force_summation_psd._spec().outputs, op)
481+
self._force_accumulation: Output[FieldsContainer] = Output(
482+
force_summation_psd._spec().output_pin(0), 0, op
483+
)
484+
self._outputs.append(self._force_accumulation)
471485
self._moment_accumulation: Output[FieldsContainer] = Output(
472486
force_summation_psd._spec().output_pin(1), 1, op
473487
)
@@ -481,6 +495,26 @@ def __init__(self, op: Operator):
481495
)
482496
self._outputs.append(self._moments_on_nodes)
483497

498+
@property
499+
def force_accumulation(self) -> Output[FieldsContainer]:
500+
r"""Allows to get force_accumulation output of the operator
501+
502+
Returns the sum of forces for the 1-sigma displacement solution on the scoped nodes/elements.
503+
504+
Returns
505+
-------
506+
output:
507+
An Output instance for this pin.
508+
509+
Examples
510+
--------
511+
>>> from ansys.dpf import core as dpf
512+
>>> op = dpf.operators.averaging.force_summation_psd()
513+
>>> # Get the output from op.outputs. ...
514+
>>> result_force_accumulation = op.outputs.force_accumulation()
515+
"""
516+
return self._force_accumulation
517+
484518
@property
485519
def moment_accumulation(self) -> Output[FieldsContainer]:
486520
r"""Allows to get moment_accumulation output of the operator
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)