General Mechanical

General Mechanical

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

Automating Mesh Element Face Selection for Named Selections

    • qczh
      Subscriber

      Hi everyone,

       

      I am currently working on a project in ANSYS Mechanical and looking for a way to automate the selection of mesh element faces, followed by creating named selections. Specifically, I have a series of repetitive mesh regions, and I would like to avoid manually clicking each element face.

      Is there a way to script this process, perhaps by using the coordinates or element numbers to automatically select mesh faces and then apply named selections? Any guidance or examples would be greatly appreciated!

       

      Thank you in advance for your help!

    • Erik Kostson
      Ansys Employee

      Hi

      It could very possibly and likely be automated. Have in mind that you have 1 M elements on top surface one will end up with many NS which will not be handled well as the Tree will become very large.

      What is that you want to do with all these faces?

      Thank you

      Erik

    • mohan.urs
      Ansys Employee

      Hey, check out this scripting examples from Ansys help. Combining some of these should help you solve your problem.

      https://ansyshelp.ansys.com/public//Views/Secured/corp/v242/en/act_script/act_script_examples_select_geom_or_mesh.html

      https://ansyshelp.ansys.com/public//Views/Secured/corp/v242/en/act_script/act_script_examples_create_named_selection_faces.html

      https://ansyshelp.ansys.com/public//Views/Secured/corp/v242/en/act_script/act_script_examples_create_selection_based_on_Location_of_nodes_in_Y.html

      Thanks,

      Mohan

Viewing 2 reply threads
  • You must be logged in to reply to this topic.