


{"id":459275,"date":"2026-06-03T17:26:35","date_gmt":"2026-06-03T17:26:35","guid":{"rendered":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/how-to-extract-particle-contact-information\/"},"modified":"2026-06-03T17:26:35","modified_gmt":"2026-06-03T17:26:35","slug":"how-to-extract-particle-contact-information","status":"publish","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/how-to-extract-particle-contact-information\/","title":{"rendered":"How to extract particle contact information"},"content":{"rendered":"<p>&lt;p&gt;Hello,&lt;\/p&gt;&lt;p&gt;&nbsp;&lt;\/p&gt;&lt;p&gt;I want to extract raw simulation data such as particles and contact information for post processing. I am having challenges with extracting contact information(contact ID, contact positions, contact vector, normal and tangential forces) at each timestep. I can get particle information(particles ID, particle velocities, particle positions, particle overlap) at each timestep using the script provided by Ansys Rocky, However, there was no script for contact indormation. I modify the particle information script to extract the contact information but getting an error about position argument&lt;\/p&gt;&lt;p&gt;in the script I used&lt;\/p&gt;&lt;p&gt;contacts = study.GetContactData(time_step)&lt;\/p&gt;&lt;p&gt;This is were I get the error. But without &#8220;time_step&#8221; in the argument I get a single value for each simulation output.&lt;\/p&gt;&lt;p&gt;&nbsp;&lt;\/p&gt;&lt;p&gt;Best regards,&lt;\/p&gt;&lt;p&gt;&nbsp;&lt;\/p&gt;&lt;p&gt;Ayuk&lt;\/p&gt;<\/p>\n","protected":false},"template":"","class_list":["post-459275","topic","type-topic","status-publish","hentry","topic-tag-rocky-dem-1"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_bbp_forum_id":["27796"],"_bbp_topic_id":["459275"],"_bbp_subscription":["66412","642030"],"_bbp_author_ip":["128.118.74.81"],"_bbp_last_reply_id":["459585"],"_bbp_last_active_id":["459585"],"_bbp_last_active_time":["2026-06-10 19:03:40"],"_bbp_reply_count":["10"],"_bbp_reply_count_hidden":["0"],"_bbp_voice_count":["2"],"_bbp_engagement":["66412","642030"],"_btv_view_count":["92"],"_bbp_topic_status":["unanswered"]},"test":"cma6301psu-edu"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/459275","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\/459275\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=459275"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}