diff --git a/doc/source/_static/dpf_operators.html b/doc/source/_static/dpf_operators.html index 002b04300a8..117d1951f31 100644 --- a/doc/source/_static/dpf_operators.html +++ b/doc/source/_static/dpf_operators.html @@ -15102,7 +15102,8 @@
Field or fields container of the coordinates of the point used for moment summations. Defaults to (0,0,0). |
Key to select the type of response: 0 for relative response (default) or 1 for absolute response. |
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. - |
Returns the sum of moments for the 1-sigma displacement solution on the scoped nodes/elements. + |
Returns the sum of forces for the 1-sigma displacement solution on the scoped nodes/elements. + |
Returns the sum of moments for the 1-sigma displacement solution on the scoped nodes/elements. |
Returns the nodal forces for the 1-sigma displacement solution on the scoped nodes/elements. |
Returns the nodal moments for the 1-sigma displacement solution on the scoped nodes/elements. |
Computing Euler's Critical Load. Formula: Ncr = nEIpipi /(L*L)
diff --git a/src/ansys/dpf/core/operators/averaging/force_summation_psd.py b/src/ansys/dpf/core/operators/averaging/force_summation_psd.py index 856c735093b..def99cd0cd2 100644 --- a/src/ansys/dpf/core/operators/averaging/force_summation_psd.py +++ b/src/ansys/dpf/core/operators/averaging/force_summation_psd.py @@ -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 @@ -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() @@ -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"], @@ -461,6 +470,7 @@ 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() @@ -468,6 +478,10 @@ class OutputsForceSummationPsd(_Outputs): 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 ) @@ -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 diff --git a/src/ansys/dpf/gatebin/Ans.Dpf.GrpcClient.dll b/src/ansys/dpf/gatebin/Ans.Dpf.GrpcClient.dll index f0b04f8c910..a81d11c2008 100644 Binary files a/src/ansys/dpf/gatebin/Ans.Dpf.GrpcClient.dll and b/src/ansys/dpf/gatebin/Ans.Dpf.GrpcClient.dll differ diff --git a/src/ansys/dpf/gatebin/DPFClientAPI.dll b/src/ansys/dpf/gatebin/DPFClientAPI.dll index 89db9ca62fe..238b4ea2d88 100644 Binary files a/src/ansys/dpf/gatebin/DPFClientAPI.dll and b/src/ansys/dpf/gatebin/DPFClientAPI.dll differ