


{"id":342389,"date":"2023-12-29T07:50:16","date_gmt":"2023-12-29T07:50:16","guid":{"rendered":"\/forum\/forums\/topic\/how-to-select-individual-bodies-during-optimization\/"},"modified":"2023-12-29T07:50:16","modified_gmt":"2023-12-29T07:50:16","slug":"how-to-select-individual-bodies-during-optimization","status":"closed","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/how-to-select-individual-bodies-during-optimization\/","title":{"rendered":"how to select individual bodies during optimization ?"},"content":{"rendered":"<p style=\"color: #252525\">Hello everyone,<\/p>\n<p style=\"color: #252525\">I am doing optimization to select the optimum number of Piezoelectric patches on a plate using harmonic analysis at target natural frequency. After the modal analysis is done in the workbench, I use the next APDL code.<\/p>\n<div style=\"color: #252525\">\/post1<\/div>\n<div style=\"color: #252525\">set,first<\/div>\n<div style=\"color: #252525\">*GET,Fd1,MODE,1,FREQ<\/div>\n<div style=\"color: #252525\">x11=Fd1-2.5<\/div>\n<div style=\"color: #252525\">x12=Fd1+2.5<\/div>\n<div style=\"color: #252525\">FINISH<\/div>\n<div style=\"color: #252525\">\/SOLU<\/div>\n<div style=\"color: #252525\">ANTYPE,harmonic<\/div>\n<div style=\"color: #252525\">HROPT,FULL<\/div>\n<div style=\"color: #252525\">HROUT,ON<\/div>\n<div style=\"color: #252525\">LUMPM,0<\/div>\n<div style=\"color: #252525\">ESEL,S,ENAME,,226&nbsp; &nbsp; ! Select all the piezo elements for all piezo patches.<\/div>\n<div style=\"color: #252525\">NSEL,R,LOC,Z,0.001&nbsp; &nbsp; ! Select the upper surface of them.<\/div>\n<div style=\"color: #252525\">&nbsp;<\/div>\n<div style=\"color: #252525\">D,ALL,VOLT,ARG1&nbsp; &nbsp; &nbsp; &nbsp; ! Apply the load ARG1 (voltage).<\/div>\n<div style=\"color: #252525\">ALLSEL<\/div>\n<div style=\"color: #252525\">&nbsp;<\/div>\n<div style=\"color: #252525\">ESEL,S,ENAME,,226<\/div>\n<div style=\"color: #252525\">NSEL,R,LOC,Z,0<\/div>\n<div style=\"color: #252525\">D,ALL,VOLT,0<\/div>\n<div style=\"color: #252525\">&nbsp;<\/div>\n<div style=\"color: #252525\">ALLSEL<\/div>\n<div style=\"color: #252525\">EQSLV, ,0,<\/div>\n<div style=\"color: #252525\">PSTRES,0<\/div>\n<div style=\"color: #252525\">HARFRQ,x11,x12<\/div>\n<div style=\"color: #252525\">NSUBST,100<\/div>\n<div style=\"color: #252525\">KBC,1<\/div>\n<div style=\"color: #252525\">DMPRAT,8e-5<\/div>\n<div style=\"color: #252525\">SOLVE<\/div>\n<div style=\"color: #252525\">FINISH<\/div>\n<div style=\"color: #252525\">&nbsp;<\/div>\n<div style=\"color: #252525\">The Piezo patches are added to the design modeler as an array where the number of coppies is parametrized.<\/div>\n<div style=\"color: #252525\">How can I select the piezo patches individually to apply different voltage loads instead of selecting them all as shown in the upper code?<\/div>\n<div style=\"color: #252525\">Regards<\/div>\n","protected":false},"template":"","class_list":["post-342389","topic","type-topic","status-closed","hentry","topic-tag-ansys-design-modeler","topic-tag-apdl","topic-tag-optimization","topic-tag-piezoelectric","topic-tag-workbench"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_bbp_subscription":["51194","88"],"_bbp_author_ip":["23.206.193.154"]," _bbp_last_reply_id":["0"]," _bbp_likes_count":["0"],"_btv_view_count":["238"],"_bbp_topic_status":["unanswered"],"_bbp_status":["publish"],"_bbp_topic_id":["342389"],"_bbp_forum_id":["27791"],"_bbp_engagement":["88","51194"],"_bbp_voice_count":["2"],"_bbp_reply_count":["2"],"_bbp_last_reply_id":["343201"],"_bbp_last_active_id":["343201"],"_bbp_last_active_time":["2024-01-04 15:33:59"]},"test":"md_abdelrhimhotmail-com"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/342389","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\/342389\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=342389"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}