General Mechanical

General Mechanical

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

Multi load step analysis in apdl from workbench

    • oglawal2
      Subscriber

      Hi, I have a model in ansys workbench which has 2 load steps. I want to run the same analysis in apdl. I created an input file for apdl from workbench bu how do I actuallt run this? When I click solve from "current LS" in apdl it seems it is only solving the first load step. Is there a way t create LS files from workbench? 

    • danielshaw
      Ansys Employee

      You do not need to use LS files.  You can just issue multiple solves at different time points.  See Section 5.6 in the MAPDL Basic Analysis Guide.

       

       

       

    • mrife
      Ansys Employee

      Hi Omobolaji 

      In the input file there is a *IF condition at the end of load step 1 that if MAPDL is running interactively the /EOF (end of file) command is read, otherwise the SOLVE command is issued.  You can edit the input file and take out the whole *if/*endif construct and just leave the solve command.  Or copy the second load step commands and paste them to the command window in MAPDL interactive to do the second load step (after the first completes solving!).

      Mike 

      • oglawal2
        Subscriber

        Thank you this works. Pardon me if this is a trivial question but I have no knowledge of apdl, so in my workbench model I also record some outptut (directional acceleration and force reaction), is this automatically in the input file I read into apdl and if so where can I see the outputs after simulation?

    • mrife
      Ansys Employee

      Omobalaji

      Well, it depends what was actually done.  Some of the listing commands will pop open a window (and show the data) if running MAPDL interactively.  If not it will be sent to the 'output window' which may be behind the MAPDL UI.  

    • oglawal2
      Subscriber

      Thanks again. I show below what I see in the output window but I don't see the nodal accelerations or force reactions which were outputs in the workbench.

    • mrife
      Ansys Employee

      Please attach a screen shot of those results from WB Mechanical.  There are several ways of post-processing those in WB Mechanical and I'd rather not guess which you mean.

    • oglawal2
      Subscriber

      Sure. Below is an example of the output.

    • mrife
      Ansys Employee

      Ok that looks like some standard post processing.  Mechanical APDL has an 'processor' style workflow meaning for example to solve we have to be in the 'solution' processor.  For reasons almost lost to time the time-history post processor is /post26.  Contrast with /post1 which is post processing to create contour plots of some result at a specific time/frequency.

      This Forum is not a good place for training.  If you are a commercial customer review the MAPDL Help -> Basic Analysis Guide -> Time History Postprocessor.  If you are a student does your school offer the help on-line?

    • oglawal2
      Subscriber

      ok would that be just to change the /post1 in the script to /post26? I'm a student, what do you mean by offer the help online?

    • mrife
      Ansys Employee

      No - WB Mechanical does not write out the MAPDL post processing commands generally.  It does write out some to gather some solution statistics.  But the post-processing in WB Mechanical is being done by WB Mechanical. 

      If you want to post process in Mechanical APDL interactively you need to learn how to use MAPDL.  Normally universities that offer Ansys products have the help installed somewhere/somehow so that the students can access it (the help).  It may be installed on each computer in some lab.  Or maybe accessed via a department web site.  

      So...does your school have a computer lab with Ansys installed?

    • oglawal2
      Subscriber

      No we do not have ansys on any lab computers, but I think I can request it.

    • oglawal2
      Subscriber

      Hi Mike, so I was going through the mapdl help would the below be the correct way to get nodal acceleration from transient ansys:

      /POST26
      NSOL,2,1595,ACC,X
      STORE,MERGE
      *GET,size,VARI,,NSETS
      *dim,ACC_X,array,size
      VGET,ACC_X(1),2
      *CFOPEN,acc.txt
      *VWRITE,ACC_X(1)
      (F10.5,F12.2)
      *CFCLOSE

      Also, how would I get the contact force in an impact simulation in this case?

Viewing 11 reply threads
  • The topic ‘Multi load step analysis in apdl from workbench’ is closed to new replies.