-
-
August 7, 2018 at 9:14 am
marius_aachen
SubscriberHello 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
-
August 7, 2018 at 12:00 pm
Sandeep Medikonda
Ansys EmployeeMarius,Â
 Can you use a Blockquote/Preformatted styling and paste the relevant APDL code?
~Sandeep
-
August 7, 2018 at 12:39 pm
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.
-
August 7, 2018 at 2:16 pm
Sandeep Medikonda
Ansys EmployeeI 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
-
- The topic ‘Mode-superposition harmonic analysis using APDL macros’ is closed to new replies.
-
3767
-
1333
-
1173
-
1090
-
1014
© 2025 Copyright ANSYS, Inc. All rights reserved.