General Mechanical

General Mechanical

Mode-superposition harmonic analysis using APDL macros

    • marius_aachen
      Subscriber

      Hello ANSYS community,


      I'm working with APDL macros to run a linear harmonic analysis using mode-superposition in ANSYS 18. The harmonic analysis works well for the first defined load vector, however when I try to restart the modal analysis to define another load vector I get the following error message:


      "Element order vector is not found in the database. The previous modal  solution is probably not saved into the db file or wrong database is used."


      I attached the relevant extracts of the APDL code I'm using. The error message occurs in the main file in the line with the solve command of the restarted modal analysis. If you need further macros please let me know.


      I'm grateful for any idea you may have.


      Kind regards,


      Marius Hensgens

    • Sandeep Medikonda
      Ansys Employee

      Marius, 


        Can you use a Blockquote/Preformatted styling and paste the relevant APDL code?


      ~Sandeep

    • marius_aachen
      Subscriber
      /solu
      allsel
      antype,modal
      modopt,modeExtrMethod,maxNumModes,modStartFreq,modStopFreq
      resvec,resvKey
      outres,erase
      outres,all,none
      outres,nsol,all
      outpr,erase
      outpr,all,none
      save
      /output,'modal','txt'
      solve
      /output,'%jobname%_2',txt,,append
      finish

      save,modRes
      parsav,all

      *do,exInd,1,exNum,1

      *do,sliceInd,1,numSlices,1

      parsav,all
      resume,modRes
      parres

      modeOrder = exMat(1,exInd)
      radTan = exMat(2,exInd)
      cosSin = exMat(3,exInd)

      ATOFORCIT !Macro creating load vector

      /solu
      antype,modal,restart
      allsel,all
      solve
      finish

      minMode = 1
      maxMode = numModes
      modeInd = '%minMode% through %maxMode%'

      /solu
      allsel

      antype,harmic
      hropt,msup,maxMode,minMode,mCout
      harfrq,harStartFreq,harStopFreq
      hrout,reImKy,clust,mCont
      lvscale,1 !! Scale Down Any Loads/acel Because They Are Already Applied From LVSCALE
      kbc,1
      nsubst,nsbstp

      dmprat,dampRatio
      resvec,resvKey
      outres,erase
      outres,all,none !! SVAR: State variables; LOCI: Integration point locations
      outres,nsol,all
               
      outpr,erase
      outpr,all,none

      save
      solve
      finish

      MCFCTRL.MAC !! Modal coordinates store

      *enddo
      *enddo
               

      I should additionally mention that this code works with ANSYS version 14.5. However, this code should run with ANSYS 18 and at the moment this is not the case.

    • Sandeep Medikonda
      Ansys Employee

      I can't tell of error errors in there...maybe someone else can. It is possible that the restart solution overwrote the files needed for the modal restart. 


      Can you go through Example 5.8 in the help that describes a modal analysis restart and see if you are missing something?


      ~Sandeep

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