


{"id":389856,"date":"2024-10-15T17:23:27","date_gmt":"2024-10-15T17:23:27","guid":{"rendered":"https:\/\/innovationspace.ansys.com\/forum\/forums\/reply\/389856\/"},"modified":"2024-10-15T17:23:27","modified_gmt":"2024-10-15T17:23:27","slug":"389856","status":"publish","type":"reply","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/reply\/389856\/","title":{"rendered":"Reply To: The two modes overlap the integral"},"content":{"rendered":"<p>&lt;p&gt;Hello,&lt;\/p&gt;&lt;p&gt;Thank you for your reply. I have looked into the issue further, and I think you need to manually add the desired d-cards to the DECK (right click in the Mode list and &#8220;add selected modes to the global deck&#8221;) prior to using savedcard in order to save all the mode data. In the screenshot below, I added modes 1 and 2 to the deck as shown. If I then save and re-load the data using savedcard() and loaddata(), I do see all modes populate the list, but only global_mode1 and global_mode2 are available for overlap calculations. Please try manually adding the desired modes to the deck and then saving to use the savedcard method.&nbsp;&lt;\/p&gt;&lt;p&gt;<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/innovationspace.ansys.com\/forum\/wp-content\/uploads\/sites\/2\/2024\/10\/15-10-2024-1729012216-mceclip0.png\" width=\"922\" height=\"574\" \/>&lt;\/p&gt;&lt;p&gt;For the script I sent, one possible explanation for the error could be that the data sampling or span in x and y is different for the two modes. The list of coordinates x and y should be the same for all the fields involved in the calculation. Another possibility is the orientation of the fields &#8211; this script was written for a waveguide propagating along the z axis. If your structure is oriented differently, the calculation would need to be rotated. Please let me know if these can explain your results.&nbsp;&lt;\/p&gt;&lt;p&gt;Finally, I want to let you know that an update to the overlap <a href=\"https:\/\/optics.ansys.com\/hc\/en-us\/articles\/360034405254-overlap-Script-command\">overlap &#8211; Script command &ndash; Ansys Optics<\/a> function is in progress (planned for release in 2025 R1) so that the function accepts datasets in addition to d-cards. This will provide additional functionality and will make it much easier to create, save, and load fields to perform overlap calculations. This update will likely be useful for you, but in the meantime I would suggest trying to troubleshoot the script to manually calculate the overlap.&nbsp;&lt;\/p&gt;<\/p>\n","protected":false},"template":"","class_list":["post-389856","reply","type-reply","status-publish","hentry"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.10 - aioseo.com -->\n\t<meta name=\"description\" content=\"Hello,Thank you for your reply. I have looked into the issue further, and I think you need to manually add the desired d-cards to the DECK (right click in the Mode list and &quot;add selected modes to the global deck&quot;) prior to using savedcard in order to save all the mode data. In the screenshot\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/innovationspace.ansys.com\/forum\/forums\/reply\/389856\/\" \/>\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=\"Reply To: The two modes overlap the integral | Ansys Learning Forum\" \/>\n\t\t<meta property=\"og:description\" content=\"Hello,Thank you for your reply. I have looked into the issue further, and I think you need to manually add the desired d-cards to the DECK (right click in the Mode list and &quot;add selected modes to the global deck&quot;) prior to using savedcard in order to save all the mode data. In the screenshot\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/innovationspace.ansys.com\/forum\/forums\/reply\/389856\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/innovationspace.ansys.com\/forum\/wp-content\/uploads\/sites\/2\/2024\/10\/15-10-2024-1729012216-mceclip0.png\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/innovationspace.ansys.com\/forum\/wp-content\/uploads\/sites\/2\/2024\/10\/15-10-2024-1729012216-mceclip0.png\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2024-10-15T17:23:27+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2024-10-15T17:23:27+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Reply To: The two modes overlap the integral | Ansys Learning Forum\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Hello,Thank you for your reply. I have looked into the issue further, and I think you need to manually add the desired d-cards to the DECK (right click in the Mode list and &quot;add selected modes to the global deck&quot;) prior to using savedcard in order to save all the mode data. In the screenshot\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/innovationspace.ansys.com\/forum\/wp-content\/uploads\/sites\/2\/2024\/10\/15-10-2024-1729012216-mceclip0.png\" \/>\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\\\/reply\\\/389856\\\/#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\\\/forums\\\/reply\\\/389856\\\/#listItem\",\"name\":\"Reply To: The two modes overlap the integral\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/reply\\\/389856\\\/#listItem\",\"position\":2,\"name\":\"Reply To: The two modes overlap the integral\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum#listItem\",\"name\":\"Home\"}}]},{\"@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\\\/reply\\\/389856\\\/#webpage\",\"url\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/reply\\\/389856\\\/\",\"name\":\"Reply To: The two modes overlap the integral | Ansys Learning Forum\",\"description\":\"Hello,Thank you for your reply. I have looked into the issue further, and I think you need to manually add the desired d-cards to the DECK (right click in the Mode list and \\\"add selected modes to the global deck\\\") prior to using savedcard in order to save all the mode data. In the screenshot\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/reply\\\/389856\\\/#breadcrumblist\"},\"datePublished\":\"2024-10-15T17:23:27+00:00\",\"dateModified\":\"2024-10-15T17:23:27+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":"Reply To: The two modes overlap the integral | Ansys Learning Forum","description":"Hello,Thank you for your reply. I have looked into the issue further, and I think you need to manually add the desired d-cards to the DECK (right click in the Mode list and \"add selected modes to the global deck\") prior to using savedcard in order to save all the mode data. In the screenshot","canonical_url":"https:\/\/innovationspace.ansys.com\/forum\/forums\/reply\/389856\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BreadcrumbList","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/reply\/389856\/#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\/forums\/reply\/389856\/#listItem","name":"Reply To: The two modes overlap the integral"}},{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/reply\/389856\/#listItem","position":2,"name":"Reply To: The two modes overlap the integral","previousItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum#listItem","name":"Home"}}]},{"@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\/reply\/389856\/#webpage","url":"https:\/\/innovationspace.ansys.com\/forum\/forums\/reply\/389856\/","name":"Reply To: The two modes overlap the integral | Ansys Learning Forum","description":"Hello,Thank you for your reply. I have looked into the issue further, and I think you need to manually add the desired d-cards to the DECK (right click in the Mode list and \"add selected modes to the global deck\") prior to using savedcard in order to save all the mode data. In the screenshot","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/innovationspace.ansys.com\/forum\/#website"},"breadcrumb":{"@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/reply\/389856\/#breadcrumblist"},"datePublished":"2024-10-15T17:23:27+00:00","dateModified":"2024-10-15T17:23:27+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":"Reply To: The two modes overlap the integral | Ansys Learning Forum","og:description":"Hello,Thank you for your reply. I have looked into the issue further, and I think you need to manually add the desired d-cards to the DECK (right click in the Mode list and &quot;add selected modes to the global deck&quot;) prior to using savedcard in order to save all the mode data. In the screenshot","og:url":"https:\/\/innovationspace.ansys.com\/forum\/forums\/reply\/389856\/","og:image":"https:\/\/innovationspace.ansys.com\/forum\/wp-content\/uploads\/sites\/2\/2024\/10\/15-10-2024-1729012216-mceclip0.png","og:image:secure_url":"https:\/\/innovationspace.ansys.com\/forum\/wp-content\/uploads\/sites\/2\/2024\/10\/15-10-2024-1729012216-mceclip0.png","article:published_time":"2024-10-15T17:23:27+00:00","article:modified_time":"2024-10-15T17:23:27+00:00","twitter:card":"summary_large_image","twitter:title":"Reply To: The two modes overlap the integral | Ansys Learning Forum","twitter:description":"Hello,Thank you for your reply. I have looked into the issue further, and I think you need to manually add the desired d-cards to the DECK (right click in the Mode list and &quot;add selected modes to the global deck&quot;) prior to using savedcard in order to save all the mode data. In the screenshot","twitter:image":"https:\/\/innovationspace.ansys.com\/forum\/wp-content\/uploads\/sites\/2\/2024\/10\/15-10-2024-1729012216-mceclip0.png"},"aioseo_meta_data":{"post_id":"389856","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 16:23:11","updated":"2024-10-28 16:23:11","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\tReply To: The two modes overlap the integral\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/innovationspace.ansys.com\/forum"},{"label":"Reply To: The two modes overlap the integral","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/reply\/389856\/"}],"acf":[],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/replies\/389856","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/replies"}],"about":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/types\/reply"}],"version-history":[{"count":0,"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/replies\/389856\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=389856"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}