


{"id":38653,"date":"2019-10-30T19:41:21","date_gmt":"2019-10-30T19:41:21","guid":{"rendered":"\/forum\/forums\/topic\/nodal-solutions-commands-apdl\/"},"modified":"2019-10-30T19:41:21","modified_gmt":"2019-10-30T19:41:21","slug":"nodal-solutions-commands-apdl","status":"closed","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/nodal-solutions-commands-apdl\/","title":{"rendered":"Nodal Solutions Commands (APDL)"},"content":{"rendered":"<p>Hello Ansys community<\/p>\n<p><\/p>\n<p>I have a FEA model in Ansys Workbench 2019 R2 which solves for, among others, the stress intensity at each of the mesh nodes (196828&nbsp;nodes) for each of the applied load steps (50 steps). I wish to extract all node positions, with the stress intensity at those nodes for all of these load steps in various text files. My post-processing commands (APDL) macro goes as follows:<\/p>\n<p><\/p>\n<p>&#8212;-<\/p>\n<p><\/p>\n<p>\/POST1<\/p>\n<p><\/p>\n<p>&nbsp;<\/p>\n<p><\/p>\n<p>my_loadSteps = 0<\/p>\n<p><\/p>\n<p>&nbsp;<\/p>\n<p><\/p>\n<p>set,LAST,LAST&nbsp; ! one has to be at the end of the runs to extract the total number of steps&nbsp;<\/p>\n<p><\/p>\n<p>*GET, my_loadSteps&nbsp;, ACTIVE, 0, SOLU,NCMLS<\/p>\n<p><\/p>\n<p>fname = &#8216;_TS_NodalResults_T&#8217;<\/p>\n<p><\/p>\n<p>&nbsp;<\/p>\n<p><\/p>\n<p>*do, loadIndex,1,my_loadSteps&nbsp;! cycle over steps<\/p>\n<p><\/p>\n<p>*cfopen,STRCAT(fname,CHRVAL(loadIndex)),txt<\/p>\n<p><\/p>\n<p>&nbsp;<\/p>\n<p><\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; !*SET,loadIndex,LAST<\/p>\n<p><\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<\/p>\n<p><\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; *GET, my_NoNodes, NODE, 0, COUNT !Get number of nodes<\/p>\n<p><\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; *DIM, ANODES, TABLE, my_NoNodes, 4 !Declare table to save coordinates and displacements<\/p>\n<p><\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<\/p>\n<p><\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; *VGET, NODELIST, NODE, ALL, NLIST<\/p>\n<p><\/p>\n<p>&nbsp; &nbsp;&nbsp;<\/p>\n<p><\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; \/OUTPUT, OutputFile,TXT,,APPEND<\/p>\n<p><\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<\/p>\n<p><\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; *VWRITE,&#8217;NodeNum&#8217;,&#8217;XLoc (m)&#8217;,&#8217;YLoc (m)&#8217;,&#8217;ZLoc (m)&#8217;,&#8217;S.I.(Pa)&#8217;<\/p>\n<p><\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (20A18)<\/p>\n<p><\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<\/p>\n<p><\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; *DO, J, 1, my_NoNodes,1<\/p>\n<p><\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; *GET, ANODES(J,1), NODE, NODELIST(J), LOC, X<\/p>\n<p><\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; *GET, ANODES(J,2), NODE, NODELIST(J), LOC, Y<\/p>\n<p><\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; *GET, ANODES(J,3), NODE, NODELIST(J), LOC, Z<\/p>\n<p><\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; *GET, ANODES(J,4), NODE, NODELIST(J), S, INT<\/p>\n<p><\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; *ENDDO<\/p>\n<p><\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<\/p>\n<p><\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; *VWRITE, NODELIST(1), ANODES(1,1), ANODES(1,2), ANODES(1,3), ANODES(1,4)<\/p>\n<p><\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (G30.15, &#8216; &#8216;,G30.15, &#8216; &#8216;,G30.15, &#8216; &#8216;,G30.15, &#8216; &#8216;,G30.15)<\/p>\n<p><\/p>\n<p>&nbsp;<\/p>\n<p><\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; \/OUTPUT<\/p>\n<p><\/p>\n<p>&nbsp; &nbsp;&nbsp;<\/p>\n<p><\/p>\n<p>&nbsp; &nbsp; *cfclose<\/p>\n<p><\/p>\n<p>*ENDDO<\/p>\n<p><\/p>\n<p>&#8212;<\/p>\n<p><\/p>\n<p>Which outputs the node positions just fine, but the stress intensity at each node point has some problems. It works for the first 30200 or so nodes with the expected values and then suddenly all other nodes are equal to 0 (while the positions remain OK). I am also not sure on how to retrieve all the stress intensities for all load steps (no substeps).<\/p>\n<p><\/p>\n<p><strong>Problem:<\/strong> Some nodes have stress intensity values while other nodes are just equal to 0 Pa. I have no clue if this code would retrieve the stress intensity for the proper load steps.<br \/><strong>Expected Result:&nbsp;<\/strong>50 files containing 5 columns as follows: <em>Node Index, Node X location, Node Y location, Node Z location, Stress Intensity for the respective load step<\/em>&nbsp;<br \/><strong>Actual Result:&nbsp;<\/strong>50 files containing 5 columns the above columns. All node locations are outputted properly, however the stress intensity is suddenly drops to 0 for the majority of the load steps (it shouldn&#8217;t do that according to the stress intensity module sets in the tree outline). I am not sure on how to retrieve all the stress intensities for all load steps (no substeps). &#8220;RMB&gt;export&gt;export to textfile&#8221; for each stress intensity for all set solutions works fine, but it way to tideous for all load-steps.<\/p>\n","protected":false},"template":"","class_list":["post-38653","topic","type-topic","status-closed","hentry"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.10 - aioseo.com -->\n\t<meta name=\"description\" content=\"Hello Ansys community I have a FEA model in Ansys Workbench 2019 R2 which solves for, among others, the stress intensity at each of the mesh nodes (196828 nodes) for each of the applied load steps (50 steps). I wish to extract all node positions, with the stress intensity at those nodes for all of these\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/nodal-solutions-commands-apdl\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.10\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Ansys Learning Forum | Ansys Innovation Space\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Nodal Solutions Commands (APDL) | Ansys Learning Forum\" \/>\n\t\t<meta property=\"og:description\" content=\"Hello Ansys community I have a FEA model in Ansys Workbench 2019 R2 which solves for, among others, the stress intensity at each of the mesh nodes (196828 nodes) for each of the applied load steps (50 steps). I wish to extract all node positions, with the stress intensity at those nodes for all of these\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/nodal-solutions-commands-apdl\/\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2019-10-30T19:41:21+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2019-10-30T19:41:21+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Nodal Solutions Commands (APDL) | Ansys Learning Forum\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Hello Ansys community I have a FEA model in Ansys Workbench 2019 R2 which solves for, among others, the stress intensity at each of the mesh nodes (196828 nodes) for each of the applied load steps (50 steps). I wish to extract all node positions, with the stress intensity at those nodes for all of these\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/nodal-solutions-commands-apdl\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/topics\\\/#listItem\",\"name\":\"Topics\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/topics\\\/#listItem\",\"position\":2,\"name\":\"Topics\",\"item\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/topics\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/nodal-solutions-commands-apdl\\\/#listItem\",\"name\":\"Nodal Solutions Commands (APDL)\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/nodal-solutions-commands-apdl\\\/#listItem\",\"position\":3,\"name\":\"Nodal Solutions Commands (APDL)\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/topics\\\/#listItem\",\"name\":\"Topics\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/#organization\",\"name\":\"Ansys Learning Forum\",\"description\":\"Ansys Innovation Space\",\"url\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/nodal-solutions-commands-apdl\\\/#webpage\",\"url\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/nodal-solutions-commands-apdl\\\/\",\"name\":\"Nodal Solutions Commands (APDL) | Ansys Learning Forum\",\"description\":\"Hello Ansys community I have a FEA model in Ansys Workbench 2019 R2 which solves for, among others, the stress intensity at each of the mesh nodes (196828 nodes) for each of the applied load steps (50 steps). I wish to extract all node positions, with the stress intensity at those nodes for all of these\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/nodal-solutions-commands-apdl\\\/#breadcrumblist\"},\"datePublished\":\"2019-10-30T19:41:21+00:00\",\"dateModified\":\"2019-10-30T19:41:21+00:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/#website\",\"url\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/\",\"name\":\"Ansys Learning Forum\",\"description\":\"Ansys Innovation Space\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Nodal Solutions Commands (APDL) | Ansys Learning Forum","description":"Hello Ansys community I have a FEA model in Ansys Workbench 2019 R2 which solves for, among others, the stress intensity at each of the mesh nodes (196828 nodes) for each of the applied load steps (50 steps). I wish to extract all node positions, with the stress intensity at those nodes for all of these","canonical_url":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/nodal-solutions-commands-apdl\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BreadcrumbList","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/nodal-solutions-commands-apdl\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum#listItem","position":1,"name":"Home","item":"https:\/\/innovationspace.ansys.com\/forum","nextItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/topics\/#listItem","name":"Topics"}},{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/topics\/#listItem","position":2,"name":"Topics","item":"https:\/\/innovationspace.ansys.com\/forum\/topics\/","nextItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/nodal-solutions-commands-apdl\/#listItem","name":"Nodal Solutions Commands (APDL)"},"previousItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/nodal-solutions-commands-apdl\/#listItem","position":3,"name":"Nodal Solutions Commands (APDL)","previousItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/topics\/#listItem","name":"Topics"}}]},{"@type":"Organization","@id":"https:\/\/innovationspace.ansys.com\/forum\/#organization","name":"Ansys Learning Forum","description":"Ansys Innovation Space","url":"https:\/\/innovationspace.ansys.com\/forum\/"},{"@type":"WebPage","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/nodal-solutions-commands-apdl\/#webpage","url":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/nodal-solutions-commands-apdl\/","name":"Nodal Solutions Commands (APDL) | Ansys Learning Forum","description":"Hello Ansys community I have a FEA model in Ansys Workbench 2019 R2 which solves for, among others, the stress intensity at each of the mesh nodes (196828 nodes) for each of the applied load steps (50 steps). I wish to extract all node positions, with the stress intensity at those nodes for all of these","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/innovationspace.ansys.com\/forum\/#website"},"breadcrumb":{"@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/nodal-solutions-commands-apdl\/#breadcrumblist"},"datePublished":"2019-10-30T19:41:21+00:00","dateModified":"2019-10-30T19:41:21+00:00"},{"@type":"WebSite","@id":"https:\/\/innovationspace.ansys.com\/forum\/#website","url":"https:\/\/innovationspace.ansys.com\/forum\/","name":"Ansys Learning Forum","description":"Ansys Innovation Space","inLanguage":"en-US","publisher":{"@id":"https:\/\/innovationspace.ansys.com\/forum\/#organization"}}]},"og:locale":"en_US","og:site_name":"Ansys Learning Forum | Ansys Innovation Space","og:type":"article","og:title":"Nodal Solutions Commands (APDL) | Ansys Learning Forum","og:description":"Hello Ansys community I have a FEA model in Ansys Workbench 2019 R2 which solves for, among others, the stress intensity at each of the mesh nodes (196828 nodes) for each of the applied load steps (50 steps). I wish to extract all node positions, with the stress intensity at those nodes for all of these","og:url":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/nodal-solutions-commands-apdl\/","article:published_time":"2019-10-30T19:41:21+00:00","article:modified_time":"2019-10-30T19:41:21+00:00","twitter:card":"summary_large_image","twitter:title":"Nodal Solutions Commands (APDL) | Ansys Learning Forum","twitter:description":"Hello Ansys community I have a FEA model in Ansys Workbench 2019 R2 which solves for, among others, the stress intensity at each of the mesh nodes (196828 nodes) for each of the applied load steps (50 steps). I wish to extract all node positions, with the stress intensity at those nodes for all of these"},"aioseo_meta_data":{"post_id":"38653","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"content","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":true,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"created":"2024-10-28 23:18:24","updated":"2024-10-28 23:18:24","ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/innovationspace.ansys.com\/forum\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/innovationspace.ansys.com\/forum\/topics\/\" title=\"Topics\">Topics<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tNodal Solutions Commands (APDL)\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/innovationspace.ansys.com\/forum"},{"label":"Topics","link":"https:\/\/innovationspace.ansys.com\/forum\/topics\/"},{"label":"Nodal Solutions Commands (APDL)","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/nodal-solutions-commands-apdl\/"}],"acf":[],"custom_fields":[{"0":{"_bbp_old_topic_id":["10831"],"_bbp_old_topic_author_name_id":["Anonymous"],"_bbp_old_is_topic_anonymous_id":["false"],"_bbp_old_closed_status_id":["publish"],"_bbp_author_ip":[null],"_bbp_old_sticky_status_id":["normal"],"_bbp_likes_count":["1"],"_btv_view_count":["4599"],"_bbp_subscription":["244397"],"_bbp_topic_status":["unanswered"],"_bbp_status":["publish"],"_bbp_topic_id":["38653"],"_bbp_forum_id":["27791"],"_bbp_engagement":["170025"],"_bbp_voice_count":["1"],"_bbp_reply_count":["0"],"_bbp_last_reply_id":["0"],"_bbp_last_active_id":["38653"],"_bbp_last_active_time":["2019-10-30 19:41:21"]},"test":"aaronp"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/38653","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\/38653\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=38653"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}