TAGGED: ansys-design-modeler, apdl, optimization, piezoelectric, workbench
-
-
December 29, 2023 at 7:50 amMd_SalemSubscriber
Hello everyone,
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.
/post1set,first*GET,Fd1,MODE,1,FREQx11=Fd1-2.5x12=Fd1+2.5FINISH/SOLUANTYPE,harmonicHROPT,FULLHROUT,ONLUMPM,0ESEL,S,ENAME,,226Â Â ! Select all the piezo elements for all piezo patches.NSEL,R,LOC,Z,0.001Â Â ! Select the upper surface of them.ÂD,ALL,VOLT,ARG1Â Â Â Â ! Apply the load ARG1 (voltage).ALLSELÂESEL,S,ENAME,,226NSEL,R,LOC,Z,0D,ALL,VOLT,0ÂALLSELEQSLV, ,0,PSTRES,0HARFRQ,x11,x12NSUBST,100KBC,1DMPRAT,8e-5SOLVEFINISHÂThe Piezo patches are added to the design modeler as an array where the number of coppies is parametrized.How can I select the piezo patches individually to apply different voltage loads instead of selecting them all as shown in the upper code?Regards -
January 4, 2024 at 9:51 amAshish KhemkaForum Moderator
Hi,
One suggestion - once you select all the SOLID226 elements then you can reselct them based on the locations, if that is a convenient option.
Regards,
Ashish Khemka
-
January 4, 2024 at 3:33 pmMd_SalemSubscriber
hello,
The problem is that the number of generated bodies is large, so the locations are parametrized and generated according to the optimizer.
Regards
-
Viewing 2 reply threads
- The topic ‘how to select individual bodies during optimization ?’ is closed to new replies.
Ansys Innovation Space
Trending discussions
- Error when opening saved Workbench project
- At least one body has been found to have only 1 element in at least 2 directions
- Script Error Code:800a000d
- Elastic limit load, Elastic-plastic limit load
- Element has excessive thickness change, distortion, is turning inside out
- Image to file in Mechanical is bugged and does not show text
Top Contributors
-
1882
-
802
-
599
-
591
-
366
Top Rated Tags
© 2025 Copyright ANSYS, Inc. All rights reserved.
Ansys does not support the usage of unauthorized Ansys software. Please visit www.ansys.com to obtain an official distribution.