{"id":164281,"date":"2023-02-06T14:42:20","date_gmt":"2023-02-06T14:42:20","guid":{"rendered":"\/knowledge\/forums\/topic\/how-to-perform-a-material-sweep\/"},"modified":"2023-07-31T12:36:38","modified_gmt":"2023-07-31T12:36:38","slug":"how-to-perform-a-material-sweep","status":"publish","type":"topic","link":"https:\/\/innovationspace.ansys.com\/knowledge\/forums\/topic\/how-to-perform-a-material-sweep\/","title":{"rendered":"How to perform a material sweep?"},"content":{"rendered":"<p>Go to Maxwell 2D\/3D > Design Properties and create 2 new parameters:  1) Select Add Array&#8230; to create a material array. Name: MaterialArray, Append Rows.. > 3 > OK. On the Data fields, type &#8220;steel_1008&#8221;, &#8220;steel_1010&#8221;, &#8220;iron&#8221;, and accept with OK.  2) Select Add&#8230; to create an array index. Name: MaterialIndex, type: ArrayIndexVariable, Associate array variable: MaterialArray, Value: 0. Accept with OK.   Then select the object which material you want to change, and in the properties window > Material, type &#8216;MaterialArray[MaterialIndex]&#8217;. On field &#8216;Evaluated Value&#8217; you will see now &#8220;steel_1008&#8221;.   Finally create a parametric sweep. Right-click on Optimetrics > Add > Parametric. Click Add and select MaterialIndex from the drop-down menu. Select linear step, Start:0, Stop: 2, Step: 1 > Add > OK. On tab Options, activate &#8216;Copy geometrically equivalent meshes&#8217;.  Run ParametricSetup1 and you will have results with all the selected materials.<\/p>\n","protected":false},"template":"","class_list":["post-164281","topic","type-topic","status-publish","hentry","topic-tag-19-2","topic-tag-electric-machines","topic-tag-electromagnetics-electronics","topic-tag-low-frequency-electromagnetics","topic-tag-materials","topic-tag-maxwell","topic-tag-modeler"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.10 - aioseo.com -->\n\t<meta name=\"description\" content=\"Go to Maxwell 2D\/3D &gt; Design Properties and create 2 new parameters: 1) Select Add Array... to create a material array. Name: MaterialArray, Append Rows.. &gt; 3 &gt; OK. On the Data fields, type &quot;steel_1008&quot;, &quot;steel_1010&quot;, &quot;iron&quot;, and accept with OK. 2) Select Add... to create an array index. Name: MaterialIndex, type: ArrayIndexVariable, Associate array\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/innovationspace.ansys.com\/knowledge\/forums\/topic\/how-to-perform-a-material-sweep\/\" \/>\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 Knowledge | Ansys Innovation Space\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"How to perform a material sweep? | Ansys Knowledge\" \/>\n\t\t<meta property=\"og:description\" content=\"Go to Maxwell 2D\/3D &gt; Design Properties and create 2 new parameters: 1) Select Add Array... to create a material array. Name: MaterialArray, Append Rows.. &gt; 3 &gt; OK. On the Data fields, type &quot;steel_1008&quot;, &quot;steel_1010&quot;, &quot;iron&quot;, and accept with OK. 2) Select Add... to create an array index. Name: MaterialIndex, type: ArrayIndexVariable, Associate array\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/innovationspace.ansys.com\/knowledge\/forums\/topic\/how-to-perform-a-material-sweep\/\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2023-02-06T14:42:20+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2023-07-31T12:36:38+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:title\" content=\"How to perform a material sweep? | Ansys Knowledge\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Go to Maxwell 2D\/3D &gt; Design Properties and create 2 new parameters: 1) Select Add Array... to create a material array. Name: MaterialArray, Append Rows.. &gt; 3 &gt; OK. On the Data fields, type &quot;steel_1008&quot;, &quot;steel_1010&quot;, &quot;iron&quot;, and accept with OK. 2) Select Add... to create an array index. Name: MaterialIndex, type: ArrayIndexVariable, Associate array\" \/>\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\\\/knowledge\\\/forums\\\/topic\\\/how-to-perform-a-material-sweep\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/knowledge#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/innovationspace.ansys.com\\\/knowledge\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/knowledge\\\/topics\\\/#listItem\",\"name\":\"Topics\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/knowledge\\\/topics\\\/#listItem\",\"position\":2,\"name\":\"Topics\",\"item\":\"https:\\\/\\\/innovationspace.ansys.com\\\/knowledge\\\/topics\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/knowledge\\\/forums\\\/topic-tag\\\/maxwell\\\/#listItem\",\"name\":\"maxwell\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/knowledge#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/knowledge\\\/forums\\\/topic-tag\\\/maxwell\\\/#listItem\",\"position\":3,\"name\":\"maxwell\",\"item\":\"https:\\\/\\\/innovationspace.ansys.com\\\/knowledge\\\/forums\\\/topic-tag\\\/maxwell\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/knowledge\\\/forums\\\/topic\\\/how-to-perform-a-material-sweep\\\/#listItem\",\"name\":\"How to perform a material sweep?\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/knowledge\\\/topics\\\/#listItem\",\"name\":\"Topics\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/knowledge\\\/forums\\\/topic\\\/how-to-perform-a-material-sweep\\\/#listItem\",\"position\":4,\"name\":\"How to perform a material sweep?\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/knowledge\\\/forums\\\/topic-tag\\\/maxwell\\\/#listItem\",\"name\":\"maxwell\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/knowledge\\\/#organization\",\"name\":\"Ansys Knowledge\",\"description\":\"Ansys Innovation Space\",\"url\":\"https:\\\/\\\/innovationspace.ansys.com\\\/knowledge\\\/\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/knowledge\\\/forums\\\/topic\\\/how-to-perform-a-material-sweep\\\/#webpage\",\"url\":\"https:\\\/\\\/innovationspace.ansys.com\\\/knowledge\\\/forums\\\/topic\\\/how-to-perform-a-material-sweep\\\/\",\"name\":\"How to perform a material sweep? | Ansys Knowledge\",\"description\":\"Go to Maxwell 2D\\\/3D > Design Properties and create 2 new parameters: 1) Select Add Array... to create a material array. Name: MaterialArray, Append Rows.. > 3 > OK. On the Data fields, type \\\"steel_1008\\\", \\\"steel_1010\\\", \\\"iron\\\", and accept with OK. 2) Select Add... to create an array index. Name: MaterialIndex, type: ArrayIndexVariable, Associate array\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/knowledge\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/knowledge\\\/forums\\\/topic\\\/how-to-perform-a-material-sweep\\\/#breadcrumblist\"},\"datePublished\":\"2023-02-06T14:42:20+00:00\",\"dateModified\":\"2023-07-31T12:36:38+00:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/knowledge\\\/#website\",\"url\":\"https:\\\/\\\/innovationspace.ansys.com\\\/knowledge\\\/\",\"name\":\"Ansys Knowledge\",\"description\":\"Ansys Innovation Space\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/knowledge\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"How to perform a material sweep? | Ansys Knowledge","description":"Go to Maxwell 2D\/3D > Design Properties and create 2 new parameters: 1) Select Add Array... to create a material array. Name: MaterialArray, Append Rows.. > 3 > OK. On the Data fields, type \"steel_1008\", \"steel_1010\", \"iron\", and accept with OK. 2) Select Add... to create an array index. Name: MaterialIndex, type: ArrayIndexVariable, Associate array","canonical_url":"https:\/\/innovationspace.ansys.com\/knowledge\/forums\/topic\/how-to-perform-a-material-sweep\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BreadcrumbList","@id":"https:\/\/innovationspace.ansys.com\/knowledge\/forums\/topic\/how-to-perform-a-material-sweep\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/knowledge#listItem","position":1,"name":"Home","item":"https:\/\/innovationspace.ansys.com\/knowledge","nextItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/knowledge\/topics\/#listItem","name":"Topics"}},{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/knowledge\/topics\/#listItem","position":2,"name":"Topics","item":"https:\/\/innovationspace.ansys.com\/knowledge\/topics\/","nextItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/knowledge\/forums\/topic-tag\/maxwell\/#listItem","name":"maxwell"},"previousItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/knowledge#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/knowledge\/forums\/topic-tag\/maxwell\/#listItem","position":3,"name":"maxwell","item":"https:\/\/innovationspace.ansys.com\/knowledge\/forums\/topic-tag\/maxwell\/","nextItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/knowledge\/forums\/topic\/how-to-perform-a-material-sweep\/#listItem","name":"How to perform a material sweep?"},"previousItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/knowledge\/topics\/#listItem","name":"Topics"}},{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/knowledge\/forums\/topic\/how-to-perform-a-material-sweep\/#listItem","position":4,"name":"How to perform a material sweep?","previousItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/knowledge\/forums\/topic-tag\/maxwell\/#listItem","name":"maxwell"}}]},{"@type":"Organization","@id":"https:\/\/innovationspace.ansys.com\/knowledge\/#organization","name":"Ansys Knowledge","description":"Ansys Innovation Space","url":"https:\/\/innovationspace.ansys.com\/knowledge\/"},{"@type":"WebPage","@id":"https:\/\/innovationspace.ansys.com\/knowledge\/forums\/topic\/how-to-perform-a-material-sweep\/#webpage","url":"https:\/\/innovationspace.ansys.com\/knowledge\/forums\/topic\/how-to-perform-a-material-sweep\/","name":"How to perform a material sweep? | Ansys Knowledge","description":"Go to Maxwell 2D\/3D > Design Properties and create 2 new parameters: 1) Select Add Array... to create a material array. Name: MaterialArray, Append Rows.. > 3 > OK. On the Data fields, type \"steel_1008\", \"steel_1010\", \"iron\", and accept with OK. 2) Select Add... to create an array index. Name: MaterialIndex, type: ArrayIndexVariable, Associate array","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/innovationspace.ansys.com\/knowledge\/#website"},"breadcrumb":{"@id":"https:\/\/innovationspace.ansys.com\/knowledge\/forums\/topic\/how-to-perform-a-material-sweep\/#breadcrumblist"},"datePublished":"2023-02-06T14:42:20+00:00","dateModified":"2023-07-31T12:36:38+00:00"},{"@type":"WebSite","@id":"https:\/\/innovationspace.ansys.com\/knowledge\/#website","url":"https:\/\/innovationspace.ansys.com\/knowledge\/","name":"Ansys Knowledge","description":"Ansys Innovation Space","inLanguage":"en-US","publisher":{"@id":"https:\/\/innovationspace.ansys.com\/knowledge\/#organization"}}]},"og:locale":"en_US","og:site_name":"Ansys Knowledge | Ansys Innovation Space","og:type":"article","og:title":"How to perform a material sweep? | Ansys Knowledge","og:description":"Go to Maxwell 2D\/3D &gt; Design Properties and create 2 new parameters: 1) Select Add Array... to create a material array. Name: MaterialArray, Append Rows.. &gt; 3 &gt; OK. On the Data fields, type &quot;steel_1008&quot;, &quot;steel_1010&quot;, &quot;iron&quot;, and accept with OK. 2) Select Add... to create an array index. Name: MaterialIndex, type: ArrayIndexVariable, Associate array","og:url":"https:\/\/innovationspace.ansys.com\/knowledge\/forums\/topic\/how-to-perform-a-material-sweep\/","article:published_time":"2023-02-06T14:42:20+00:00","article:modified_time":"2023-07-31T12:36:38+00:00","twitter:card":"summary_large_image","twitter:title":"How to perform a material sweep? | Ansys Knowledge","twitter:description":"Go to Maxwell 2D\/3D &gt; Design Properties and create 2 new parameters: 1) Select Add Array... to create a material array. Name: MaterialArray, Append Rows.. &gt; 3 &gt; OK. On the Data fields, type &quot;steel_1008&quot;, &quot;steel_1010&quot;, &quot;iron&quot;, and accept with OK. 2) Select Add... to create an array index. Name: MaterialIndex, type: ArrayIndexVariable, Associate array"},"aioseo_meta_data":{"post_id":"164281","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":"default","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":false,"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":"2025-10-17 21:21:40","updated":"2026-07-29 13:49:00","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\/knowledge\" 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\/knowledge\/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\/knowledge\/forums\/topic-tag\/maxwell\/\" title=\"maxwell\">maxwell<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tHow to perform a material sweep?\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/innovationspace.ansys.com\/knowledge"},{"label":"Topics","link":"https:\/\/innovationspace.ansys.com\/knowledge\/topics\/"},{"label":"maxwell","link":"https:\/\/innovationspace.ansys.com\/knowledge\/forums\/topic-tag\/maxwell\/"},{"label":"How to perform a material sweep?","link":"https:\/\/innovationspace.ansys.com\/knowledge\/forums\/topic\/how-to-perform-a-material-sweep\/"}],"acf":[],"custom_fields":[{"0":{"_wp_page_template":["default"],"_bbp_last_active_time":["1-24-2023  20:20:06"],"_bbp_forum_id":["27819"],"_bbp_author_ip":["23.56.168.180"],"_btv_view_count":["7798"],"_edit_lock":["1677856627:77214"],"siebel_km_number":["2049128"],"product_version":["19.2"],"km_published_date":["2017-04-13T13:59:15.000Z"],"family":["Electromagnetics & Electronics"],"application_name":["Maxwell"]},"test":"articlesansys-com"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/knowledge\/wp-json\/wp\/v2\/topics\/164281","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/innovationspace.ansys.com\/knowledge\/wp-json\/wp\/v2\/topics"}],"about":[{"href":"https:\/\/innovationspace.ansys.com\/knowledge\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/innovationspace.ansys.com\/knowledge\/wp-json\/wp\/v2\/topics\/164281\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/knowledge\/wp-json\/wp\/v2\/media?parent=164281"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}