General Mechanical

General Mechanical

Topics relate to Mechanical Enterprise, Motion, Additive Print and more

Assigning material and end element

    • Evgenii_K
      Subscriber

      Hi guys, I decided to discuss a new topic related to the assignment of material and final element in the Analysis Settings section. I set the material properties in the Geometry section and determined its identification number using the command:

      *SET,MAT_ID,102

      Then set the item type id:

      *SET,ELEM_TYPE_ID,102

      ET,ELEM_TYPE_ID,BEAM189


      After that, in the Analysis Settings section, added a command that should assign material properties and material type through a named selection:

      *SET,ELEM_TYPE_ID,102

      CMSEL,S,NS_beam_all,ELEM

      EMODIF,ALL,TYPE,ELEM_TYPE_ID

      ALLSEL,ALL


      *SET,MAT_ID,102

      CMSEL,S,NS_beam_all,ELEM

      EMODIF,ALL,MAT,MAT_ID

      *set,matid,MAT_ID

      ALLSEL,ALL

      In the end, something went wrong!

    • Govindan Nagappan
      Ansys Employee
      @Evgenii_K nI do not see the problem from the description provided. You can use ELIST to see the list of elements. See if it helps in finding the element ID 46nYou do not have to separate the commands in geometry section and analysis settings section. You can use /prep7 under analysis settings to go to preprocessor, then switch to /solu at the endnExample: (command under analysis setting)n/prep7n*SET,MAT_ID,102n*SET,ELEM_TYPE_ID,102nET,ELEM_TYPE_ID,BEAM189nCMSEL,S,NS_beam_all,ELEMnEMODIF,ALL,TYPE,ELEM_TYPE_IDnEMODIF,ALL,MAT,MAT_IDn/solunnInstead of cmsel, you can also use esel with enam option to select elements. I am not sure what elements you have currently. Lets say you need to pick solid185 elements from the model, you can usenesel,s,enam,,185
    • Evgenii_K
      Subscriber
      gnagapp nThanks for the answer, but I still haven't figured out the set of commands. When I paste a command into the analysis settings section, I get a warning:nET is not a recognized SOLUTION command, abbreviation, or macro. This command will be ignored.nEMODIF is not a recognized SOLUTION command, abbreviation, or macro. This command will be ignored.nCommand Paste in Analysis Section:n*SET,MAT_ID,102n*SET,ELEM_TYPE_ID,102nET,ELEM_TYPE_ID,189nCMSEL,S,NS_beam_all,ELEMnEMODIF,ALL,TYPE,ELEM_TYPE_IDnEMODIF,ALL,MAT,MAT_IDn nI do not want to select all elements and replace them with others, I need to select specific elements and named selection works best.n
    • Govindan Nagappan
      Ansys Employee
      @Evgenii_K nYou haven't used the /prep7 command and /solu command as suggestedn
Viewing 3 reply threads
  • You must be logged in to reply to this topic.