We’re updating our badges platform. Badge issuance is temporarily paused, but all completions are being recorded and will be fulfilled once the platform is live. Thank you for your patience.
General Mechanical

General Mechanical

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

workbench soltion APDL-Snippet

    • xie
      Subscriber

      Hello,

      I am trying to a do a displacement vs frequency (I know this is doable in GUI, but I want to try the usablility of APDL-Snippet) plot in workbench harmonic responce with APDL-Snippet.

      This is the snippet I am using. It seems that there is no erro after runing the snippet. However I don't get any plots by this snippet. Is there anything wrong with this script?

      regards

      Tianxiao

    • Erik Kostson
      Ansys Employee

       

       

       

       

      Hi

      The PLVAR and NSOL are /post26 commands (not post1 like the apdl snippet we get in Mech.) and we also need to create an image (/show command) for each plot in order to view the result.

      As an example for say node nr. 1608:

       

       

       

       

      /POST26
      NSOL,10,1608,U,Z
      /SHOW,PNG
      PLVAR,10
      /SHOW,CLOSE
      /POST1

       

       

       

      All the best
      Erik

       

       

       

    • xie
      Subscriber

      Hi Erik,

      thanks for the feedback, I changed my snippet to:

      The execution was successfull, but I still couldn't get any graphs as output. 

      regards

      tianxiao

    • Erik Kostson
      Ansys Employee

      Hi

      The PLVAR and NSOL are /post26 commands (not post1 like the apdl snippet we get in Mech.).

      So you need to be in post26 see below (pay attention to /psot26 and then back to /post1)

      /POST26
      NSOL,10,1608,U,Z
      /SHOW,PNG
      PLVAR,10
      /SHOW,CLOSE
      /POST1

    • xie
      Subscriber

      Hi Erik,

      I tried as sugessted the following snippet: (I took the node 100)

      this time I got an erro-message:

      I am not sure, if it is becuse if the node number (actually I tried different). But  definitivly have more than 100 nodes

      regards

      tianxiao

    • Erik Kostson
      Ansys Employee

       

      Hi

      The commands I sent work and produce an image of the plvar result – Clear generated data and solve again. If there is an error again ir is related to something else.

      See the solution information object (or solve.out file in project file directory) as it says in the error above , and search for errors in that file and see what it is.

      All the best

      Erik

       

    • xie
      Subscriber

      Hi Erik,

      It works now. one needs to recalculate the case again, then I got the figure.

      thank you so much

      regards

      tianxiao

    • Erik Kostson
      Ansys Employee

      Happy to help. All the best

      Erik

Viewing 7 reply threads
  • The topic ‘workbench soltion APDL-Snippet’ is closed to new replies.