


{"id":303402,"date":"2023-08-25T16:58:07","date_gmt":"2023-08-25T16:58:07","guid":{"rendered":"\/forum\/forums\/topic\/number-of-nodes-incoherent\/"},"modified":"2023-08-25T17:01:36","modified_gmt":"2023-08-25T17:01:36","slug":"number-of-nodes-incoherent","status":"closed","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/number-of-nodes-incoherent\/","title":{"rendered":"Number of nodes incoherent"},"content":{"rendered":"<p><span style=\"font-size: 14pt\">Hi,<\/span><\/p>\n<p><span style=\"font-size: 14pt\">I am using PyMAPDL on python to process a modal analysis and optimize it.&nbsp;<\/span><br \/><span style=\"font-size: 14pt\">I solved the same model previously on the software ANSYS Mechanical directly and the number of nodes was 616169 in the software.&nbsp;<\/span><br \/><span style=\"font-size: 14pt\">Then I exported the simulation file using cdwrite with the option &#8220;ALL&#8221; containing all geometry, material property, load, and component data. Then I loaded it with python and solved it again but I get a small difference in the number of nodes, but the results like eigenfrequencies are the same. The problem is not only the number of nodes is different from what I could see on ANSYS Mechanical, it is also incoherent within some arrays\/variables that I get from APDL. I will explain this more as follows, this is a python code:&nbsp;<\/span><\/p>\n<p><span style=\"font-size: 14pt\"><strong>1)<\/strong> print(mapdl.mesh)&nbsp;<\/span><\/p>\n<p><span style=\"font-size: 14pt\">Output:<\/span><br \/><span style=\"font-size: 14pt\">ANSYS Mesh<\/span><br \/><span style=\"font-size: 14pt\">&nbsp; Number of Nodes: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;616211<\/span><br \/><span style=\"font-size: 14pt\">&nbsp; Number of Elements: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 322069<\/span><br \/><span style=\"font-size: 14pt\">&nbsp; Number of Element Types: &nbsp; &nbsp; &nbsp;220<\/span><br \/><span style=\"font-size: 14pt\">&nbsp; Number of Node Components: &nbsp; &nbsp;0<\/span><br \/><span style=\"font-size: 14pt\">&nbsp; Number of Element Components: 0<\/span><\/p>\n<p><span style=\"font-size: 14pt\"><strong>2)<\/strong>&nbsp; also when getting the number of nodes using mapdl.mesh.n_node it gives back the same number<\/span><\/p>\n<p><span style=\"font-size: 14pt\">number_nodes = mapdl.mesh.n_node<\/span><br \/><span style=\"font-size: 14pt\">print(number_nodes)&nbsp;<\/span><\/p>\n<p><span style=\"font-size: 14pt\">Output: 616211<\/span><\/p>\n<p><span style=\"font-size: 14pt\"><strong>3)<\/strong> However when I store the nodes in an array the length of it which should correspond to the number of nodes is different from we got previously<\/span><\/p>\n<p><span style=\"font-size: 14pt\">nodes = mapdl.mesh.nodes<\/span><br \/><span style=\"font-size: 14pt\">print(len(nodes))<\/span><\/p>\n<p><span style=\"font-size: 14pt\">Output: 616256<\/span><\/p>\n<p><span style=\"font-size: 14pt\"><strong>4)<\/strong> using mapdl.db.nodes&nbsp;<\/span><\/p>\n<p><span style=\"font-size: 14pt\">print(mapdl.db.nodes)<br \/><\/span><br \/><span style=\"font-size: 14pt\">MAPDL Database Nodes<br \/>Number of nodes: 616256<br \/>Number of selected nodes: 616256 <br \/>Maximum node number: 616256<\/span><\/p>\n<p><span style=\"font-size: 14pt\"><strong>5) <\/strong>and again when I retrieve the displacements for all the nodes I get an array not matching the number of nodes that I get previously from mapdl.mesh.nodes&nbsp; ; I get the displacements for 616211 nodes only which is different from 616256<\/span><\/p>\n<p><span style=\"font-size: 14pt\">all_displacements = mapdl.post_processing.nodal_displacement(&#8220;ALL&#8221;)<\/span><br \/><span style=\"font-size: 14pt\">print(len(all_displacements))<br \/>Output: 616211<\/span><\/p>\n<p><span style=\"font-size: 14pt\">To put you in context: this is causing me a problem because I have the coordinates of some points where I want to get the displacement. But first what I do is that I determine the closest node to the point and then get the displacement of it from the array all_displacement. But in this case the number of nodes is varying in this interval [1, 616256] and the displacements I get are for only for 616211 nodes. So let&#8217;s say I want the displacement for the node number 600000, if I use the nodal displacement array that I get from postprocessing I don&#8217;t know if it actually corresponds to the same node.&nbsp;<\/span><\/p>\n<p><span style=\"font-size: 14pt\">Every help is appreciated. Thank very much in advance.&nbsp;<\/span><\/p>\n","protected":false},"template":"","class_list":["post-303402","topic","type-topic","status-closed","hentry","topic-tag-mesh-nodes","topic-tag-nodal-displacement","topic-tag-nodes-problem-1"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.10 - aioseo.com -->\n\t<meta name=\"description\" content=\"Hi,I am using PyMAPDL on python to process a modal analysis and optimize it. I solved the same model previously on the software ANSYS Mechanical directly and the number of nodes was 616169 in the software. Then I exported the simulation file using cdwrite with the option &quot;ALL&quot; containing all geometry, material property, load, and component data.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/number-of-nodes-incoherent\/\" \/>\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=\"Number of nodes incoherent | Ansys Learning Forum\" \/>\n\t\t<meta property=\"og:description\" content=\"Hi,I am using PyMAPDL on python to process a modal analysis and optimize it. I solved the same model previously on the software ANSYS Mechanical directly and the number of nodes was 616169 in the software. Then I exported the simulation file using cdwrite with the option &quot;ALL&quot; containing all geometry, material property, load, and component data.\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/number-of-nodes-incoherent\/\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2023-08-25T16:58:07+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2023-08-25T17:01:36+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Number of nodes incoherent | Ansys Learning Forum\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Hi,I am using PyMAPDL on python to process a modal analysis and optimize it. I solved the same model previously on the software ANSYS Mechanical directly and the number of nodes was 616169 in the software. Then I exported the simulation file using cdwrite with the option &quot;ALL&quot; containing all geometry, material property, load, and component data.\" \/>\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\\\/number-of-nodes-incoherent\\\/#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-tag\\\/mesh-nodes\\\/#listItem\",\"name\":\"mesh-nodes\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic-tag\\\/mesh-nodes\\\/#listItem\",\"position\":3,\"name\":\"mesh-nodes\",\"item\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic-tag\\\/mesh-nodes\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/number-of-nodes-incoherent\\\/#listItem\",\"name\":\"Number of nodes incoherent\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/topics\\\/#listItem\",\"name\":\"Topics\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/number-of-nodes-incoherent\\\/#listItem\",\"position\":4,\"name\":\"Number of nodes incoherent\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic-tag\\\/mesh-nodes\\\/#listItem\",\"name\":\"mesh-nodes\"}}]},{\"@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\\\/number-of-nodes-incoherent\\\/#webpage\",\"url\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/number-of-nodes-incoherent\\\/\",\"name\":\"Number of nodes incoherent | Ansys Learning Forum\",\"description\":\"Hi,I am using PyMAPDL on python to process a modal analysis and optimize it. I solved the same model previously on the software ANSYS Mechanical directly and the number of nodes was 616169 in the software. Then I exported the simulation file using cdwrite with the option \\\"ALL\\\" containing all geometry, material property, load, and component data.\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/number-of-nodes-incoherent\\\/#breadcrumblist\"},\"datePublished\":\"2023-08-25T16:58:07+00:00\",\"dateModified\":\"2023-08-25T17:01:36+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":"Number of nodes incoherent | Ansys Learning Forum","description":"Hi,I am using PyMAPDL on python to process a modal analysis and optimize it. I solved the same model previously on the software ANSYS Mechanical directly and the number of nodes was 616169 in the software. Then I exported the simulation file using cdwrite with the option \"ALL\" containing all geometry, material property, load, and component data.","canonical_url":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/number-of-nodes-incoherent\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BreadcrumbList","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/number-of-nodes-incoherent\/#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-tag\/mesh-nodes\/#listItem","name":"mesh-nodes"},"previousItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic-tag\/mesh-nodes\/#listItem","position":3,"name":"mesh-nodes","item":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic-tag\/mesh-nodes\/","nextItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/number-of-nodes-incoherent\/#listItem","name":"Number of nodes incoherent"},"previousItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/topics\/#listItem","name":"Topics"}},{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/number-of-nodes-incoherent\/#listItem","position":4,"name":"Number of nodes incoherent","previousItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic-tag\/mesh-nodes\/#listItem","name":"mesh-nodes"}}]},{"@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\/number-of-nodes-incoherent\/#webpage","url":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/number-of-nodes-incoherent\/","name":"Number of nodes incoherent | Ansys Learning Forum","description":"Hi,I am using PyMAPDL on python to process a modal analysis and optimize it. I solved the same model previously on the software ANSYS Mechanical directly and the number of nodes was 616169 in the software. Then I exported the simulation file using cdwrite with the option \"ALL\" containing all geometry, material property, load, and component data.","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/innovationspace.ansys.com\/forum\/#website"},"breadcrumb":{"@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/number-of-nodes-incoherent\/#breadcrumblist"},"datePublished":"2023-08-25T16:58:07+00:00","dateModified":"2023-08-25T17:01:36+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":"Number of nodes incoherent | Ansys Learning Forum","og:description":"Hi,I am using PyMAPDL on python to process a modal analysis and optimize it. I solved the same model previously on the software ANSYS Mechanical directly and the number of nodes was 616169 in the software. Then I exported the simulation file using cdwrite with the option &quot;ALL&quot; containing all geometry, material property, load, and component data.","og:url":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/number-of-nodes-incoherent\/","article:published_time":"2023-08-25T16:58:07+00:00","article:modified_time":"2023-08-25T17:01:36+00:00","twitter:card":"summary_large_image","twitter:title":"Number of nodes incoherent | Ansys Learning Forum","twitter:description":"Hi,I am using PyMAPDL on python to process a modal analysis and optimize it. I solved the same model previously on the software ANSYS Mechanical directly and the number of nodes was 616169 in the software. Then I exported the simulation file using cdwrite with the option &quot;ALL&quot; containing all geometry, material property, load, and component data."},"aioseo_meta_data":{"post_id":"303402","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 17:48:33","updated":"2024-10-28 17:48:33","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\t<a href=\"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic-tag\/mesh-nodes\/\" title=\"mesh-nodes\">mesh-nodes<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tNumber of nodes incoherent\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":"mesh-nodes","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic-tag\/mesh-nodes\/"},{"label":"Number of nodes incoherent","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/number-of-nodes-incoherent\/"}],"acf":[],"custom_fields":[{"0":{"_bbp_subscription":["291601","200"],"_bbp_author_ip":["96.7.218.215"]," _bbp_last_reply_id":["0"]," _bbp_likes_count":["0"],"_btv_view_count":["423"],"_edit_lock":["1692982811:227841"],"_bbp_topic_status":["unanswered"],"_bbp_status":["publish"],"_bbp_topic_id":["303402"],"_bbp_forum_id":["27790"],"_bbp_engagement":["200","291601"],"_bbp_voice_count":["2"],"_bbp_reply_count":["1"],"_bbp_last_reply_id":["304973"],"_bbp_last_active_id":["304973"],"_bbp_last_active_time":["2023-09-05 14:53:30"]},"test":"ge49xutmytum-de"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/303402","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\/303402\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=303402"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}