Ansys Assistant will be unavailable on the Learning Forum starting January 30. An upgraded version is coming soon. We apologize for any inconvenience and appreciate your patience. Stay tuned for updates.
General Mechanical

General Mechanical

Topics related to Mechanical Enterprise, Motion, Additive Print and more.

how to select individual bodies during optimization ?

    • Md_Salem
      Subscriber

      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.

      /post1
      set,first
      *GET,Fd1,MODE,1,FREQ
      x11=Fd1-2.5
      x12=Fd1+2.5
      FINISH
      /SOLU
      ANTYPE,harmonic
      HROPT,FULL
      HROUT,ON
      LUMPM,0
      ESEL,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,,226
      NSEL,R,LOC,Z,0
      D,ALL,VOLT,0
       
      ALLSEL
      EQSLV, ,0,
      PSTRES,0
      HARFRQ,x11,x12
      NSUBST,100
      KBC,1
      DMPRAT,8e-5
      SOLVE
      FINISH
       
      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
    • Ashish Khemka
      Forum 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

    • Md_Salem
      Subscriber

      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.
[bingo_chatbox]