{"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":[],"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":["7477"],"_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}]}}