


{"id":396221,"date":"2024-12-04T09:25:41","date_gmt":"2024-12-04T09:25:41","guid":{"rendered":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/forcemoment-extraction-fsum-in-act-ansys-mechanical\/"},"modified":"2024-12-04T11:05:55","modified_gmt":"2024-12-04T11:05:55","slug":"forcemoment-extraction-fsum-in-act-ansys-mechanical","status":"closed","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/forcemoment-extraction-fsum-in-act-ansys-mechanical\/","title":{"rendered":"Force\/Moment extraction (&#8220;FSUM&#8221;) in ACT Ansys Mechanical"},"content":{"rendered":"<p>&lt;p&gt;Using APDL commands, we can get the sum of the nodal forces and moments of all nodes associated to a surface defined through a named selection using FSUM. For example:&lt;\/p&gt;<\/p>\n<pre>CMSEL, S, my_named_selection&lt;br&gt;RSYS, 0&lt;br&gt;FSUM, RSYS,&lt;br&gt;*GET, Fx, FSUM, 0, ITEM, FX<\/pre>\n<p>&lt;p&gt;I would like to do something similar using ACT Python scripting.&lt;\/p&gt;&lt;p&gt;From <a title=\"Named selection : node ids, position and node connectivity with DPF\" href=\"https:\/\/discuss.ansys.com\/discussion\/1724\/named-selection-node-ids-position-and-node-connectivity-with-dpf\" target=\"_blank\" rel=\"noopener\">this discussion<\/a>, it is possible to get the mesh and the node IDs associated to a named selection.&lt;\/p&gt;&lt;p&gt;From the &#8220;ACT Customization guide for Mechanical&#8221; we learn how to GetResultData() from an analysis, e.g.:&lt;\/p&gt;<\/p>\n<pre>analysis = ExtAPI.DataModel.AnalysisList[0]&lt;br&gt;reader = analysis.GetResultsData()&lt;br&gt;something = reader.GetResult(\"?????\")  # What should I retrieve here?&lt;br&gt;something.GetNodeValues(nodeIds)  # nodeIds obtained from the aformentioned discussion using dpf.<\/pre>\n<p>&lt;p&gt;&lt;span style=&#8221;font-size: 14pt;&#8221;&gt;<strong>However, I do not know what to retrieve in order to be able to get the the sum of the forces at the nodes of the named selection.<\/strong>&lt;\/span&gt;&lt;\/p&gt;&lt;p&gt;I have read somewhere that it is possible to right-click the &#8220;Solution&#8221; of an analysis in Ansys Mechanical, select &#8220;Worksheet: Result Summary&#8221;, and then select &#8220;Available Solution Quantities&#8221; in order to view which data types can be retrieved using GetResult(). However, my worksheet only shows &#8220;Invalid Result File&#8221;, even though no errors were thrown and I can still view all other results (such as probes).&lt;\/p&gt;&lt;p&gt;This topic is a continuation of <a title=\"FSUM in ANSYS Mechanical\" href=\"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/fsum-in-ansys-mechanical\/\" target=\"_blank\" rel=\"noopener\">FSUM in ANSYS Mechanical<\/a>, which I do not understand how it ended being helpful, since as far as I know it is not possible to create a Force Reaction probe associated to a surface, only to boundary conditions.&lt;\/p&gt;<\/p>\n","protected":false},"template":"","class_list":["post-396221","topic","type-topic","status-closed","hentry","topic-tag-ACTAnsysACTAnsys-1","topic-tag-automationACT-1","topic-tag-act","topic-tag-FSUM-1","topic-tag-mechanical","topic-tag-named-selection","topic-tag-named-selections","topic-tag-nodal-force-2","topic-tag-nodal-results","topic-tag-python-scripting"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_bbp_forum_id":["27791"],"_bbp_topic_id":["396221"],"_bbp_subscription":["489089","58821"],"_bbp_author_ip":["139.63.19.44"],"_bbp_last_reply_id":["396246"],"_bbp_last_active_id":["396246"],"_bbp_last_active_time":["2024-12-04 10:56:37"],"_bbp_reply_count":["3"],"_bbp_reply_count_hidden":["0"],"_bbp_voice_count":["2"],"_bbp_engagement":["489089","58821"],"_btv_view_count":["1363"],"_bbp_topic_status":["unanswered"],"_bbp_status":["publish"]},"test":"breno-dealmeidatno-nl"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/396221","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics"}],"about":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/396221\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=396221"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}