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.

Trouble with APDL Commands

    • jmcclos8
      Subscriber

      Hi I am trying to use APDL Commands to automate some postprocessing in Ansys Mehcanical and I am recieving the following warnings: 

      *** WARNING ***                         CP =       0.219   TIME= 12:58:41
       Invalid coordinate system= 101.                                        

       OPENED FILE= file.txt FOR COMMAND FILE DATA
        COMMAND FILE CLOSED

       *** WARNING ***                         CP =       0.219   TIME= 12:58:41
       The item label NAME is not recognized by the NSEL command.        

       

        The NSEL command is ignored.

       

       

       

      This is the part of my code where I set the named selection and local coordinate system I would like to use:

       

      ! Define the single named selection
      NamedSelection = 'Fold1 RZ' 
      CoordSystem = 101

      CSYS, CoordSystem  ! Set the coordinate system

      *CFOPEN, FilePath + 'Debug.txt', txt
      *VWRITE, 'Coordinate System: ', CoordSystem
      (A, F8.0)

      *VWRITE, 'Named Selection: ', NamedSelection
      (A, F8.0)

      *CFCLSE

      ! Apply the Named Selection (ensure the selection is active)
      NSEL, S, NAME, NamedSelection

      Here is an image of the coordinate system:

       

      And here is the named slection:

      Any assistance you could provide would be greatly apperciated!

       

    • ErKo
      Ansys Employee

       

      Hi

      See this and the help manual (command ref. section in mapdl help):

      20 APDL Commands Every ANSYS Mechanical User Should Know – PADT

      For instance to choose named selection issue:

      CMSEL,S,Fold1RZ

      All the best

      Erik

       

Viewing 1 reply thread
  • You must be logged in to reply to this topic.
[bingo_chatbox]