Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion doc/source/_static/dpf_operators.html
Original file line number Diff line number Diff line change
Expand Up @@ -15102,7 +15102,8 @@ <h2>LaTeX</h2>
</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>
</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>
</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>
</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>
</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>
</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>
</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>
</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>
</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>
Expand Down
34 changes: 34 additions & 0 deletions src/ansys/dpf/core/operators/averaging/force_summation_psd.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ class force_summation_psd(Operator):

Outputs
-------
force_accumulation: FieldsContainer
Returns the sum of forces for the 1-sigma displacement solution on the scoped nodes/elements.
moment_accumulation: FieldsContainer
Returns the sum of moments for the 1-sigma displacement solution on the scoped nodes/elements.
forces_on_nodes: FieldsContainer
Expand Down Expand Up @@ -91,6 +93,7 @@ class force_summation_psd(Operator):
... )

>>> # Get output data
>>> result_force_accumulation = op.outputs.force_accumulation()
>>> result_moment_accumulation = op.outputs.moment_accumulation()
>>> result_forces_on_nodes = op.outputs.forces_on_nodes()
>>> result_moments_on_nodes = op.outputs.moments_on_nodes()
Expand Down Expand Up @@ -183,6 +186,12 @@ def _spec() -> Specification:
),
},
map_output_pin_spec={
0: PinSpecification(
name="force_accumulation",
type_names=["fields_container"],
optional=False,
document=r"""Returns the sum of forces for the 1-sigma displacement solution on the scoped nodes/elements.""",
),
1: PinSpecification(
name="moment_accumulation",
type_names=["fields_container"],
Expand Down Expand Up @@ -461,13 +470,18 @@ class OutputsForceSummationPsd(_Outputs):
>>> from ansys.dpf import core as dpf
>>> op = dpf.operators.averaging.force_summation_psd()
>>> # Connect inputs : op.inputs. ...
>>> result_force_accumulation = op.outputs.force_accumulation()
>>> result_moment_accumulation = op.outputs.moment_accumulation()
>>> result_forces_on_nodes = op.outputs.forces_on_nodes()
>>> result_moments_on_nodes = op.outputs.moments_on_nodes()
"""

def __init__(self, op: Operator):
super().__init__(force_summation_psd._spec().outputs, op)
self._force_accumulation: Output[FieldsContainer] = Output(
force_summation_psd._spec().output_pin(0), 0, op
)
self._outputs.append(self._force_accumulation)
self._moment_accumulation: Output[FieldsContainer] = Output(
force_summation_psd._spec().output_pin(1), 1, op
)
Expand All @@ -481,6 +495,26 @@ def __init__(self, op: Operator):
)
self._outputs.append(self._moments_on_nodes)

@property
def force_accumulation(self) -> Output[FieldsContainer]:
r"""Allows to get force_accumulation output of the operator

Returns the sum of forces for the 1-sigma displacement solution on the scoped nodes/elements.

Returns
-------
output:
An Output instance for this pin.

Examples
--------
>>> from ansys.dpf import core as dpf
>>> op = dpf.operators.averaging.force_summation_psd()
>>> # Get the output from op.outputs. ...
>>> result_force_accumulation = op.outputs.force_accumulation()
"""
return self._force_accumulation

@property
def moment_accumulation(self) -> Output[FieldsContainer]:
r"""Allows to get moment_accumulation output of the operator
Expand Down
Binary file modified src/ansys/dpf/gatebin/Ans.Dpf.GrpcClient.dll
Binary file not shown.
Binary file modified src/ansys/dpf/gatebin/DPFClientAPI.dll
Binary file not shown.
Loading