From 8d847bb835f7aa991c58820883fcd55dba7aea37 Mon Sep 17 00:00:00 2001 From: PProfizi <100710998+PProfizi@users.noreply.github.com> Date: Tue, 25 Nov 2025 13:21:44 +0000 Subject: [PATCH] update generated code --- doc/source/_static/dpf_operators.html | 3 +- .../averaging/force_summation_psd.py | 34 ++++++++++++++++++ src/ansys/dpf/gatebin/Ans.Dpf.GrpcClient.dll | Bin 14736384 -> 14736384 bytes src/ansys/dpf/gatebin/DPFClientAPI.dll | Bin 873472 -> 873472 bytes 4 files changed, 36 insertions(+), 1 deletion(-) 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 f0b04f8c910a882c3165ccc22f0b9c8c858def88..a81d11c2008fa61831a6fd0cba84b81117d40b2c 100644 GIT binary patch delta 1087828 zcma&O2UJu^^9M@z%#iO4AaQae4wB3X5m8iB%sBzh9dphKx@HlxwrR~dM_MuGEb6-E zwCk#)7*N+7c-8m9?(Fy8Iq%Ooefrj~s#A5UuI^#%zVU8jA?&D)Bxr$UZZaCM%^H-?|&{_Avs
zdO!=uz{qhQkSmb8$hU0h&{`suL(1py<2?3G6L=pd(|tMoT^YP onA F7-k
z_l*Iic=wj~xtLn@yu&yj2xT`%1JtpP5f_Bf6
zPArm<>0Rv+DG%?keumezC23Q~RDmvj@DXY;bxf?ncf4KDcH=4vAMPxODSUH>1ETPe
zofoL_Q-FF0
x_6j6F+L)5pLh|Ygy-AWINFF2a#Cov&W92H+UFtekE`$EzpRsbc
zEG;kd2-MByyw{p~j+KL`$X{|C-}nEQ>@MXUasfp>qFT1T*}TI&hU1SpJ_8Bn|7r3#
zId85WzzN9*65RJEq#y9kUiApqRgFXA
iZBrkhsq2zcZI^3Q53X_?MUngM
zEBtsw*K?}7uxWRukLu-~Ym~-yw*Ft847Af%Jz$-ynlX$qM*FGxGvT1E<-w|g56<5C
z)KL?gCV;WTEEV4
zx
G&mHUw#H`LUDk7u2_*r<)a~cPspf
zXNN240}R+cvzgl#MLy7PC(6`>HfE&T9;4tgdO*(4TTI*MQ{k|d7(>7U6nzshP1b
zT%VG0#7nq(*2f&C1y0z4=WgP;3x94co=foO`r`S=W;|CB&wg9+EJnkDAGl7W;5+$q
zka!-;pKao~A%D&!o||&F-#oA+6N}y=_@7s1_=KT{;&}q+SH-jG;G}py&pAK78*az)
z=dI#7VjG@Uis##$&lAt1IG-$@WBGHEcs{Ug1pW*Ve^R&r%gMOWH~b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