Restart an analysis
Restart an analysis
(OP)
Hello everybody, I´m performing a transient analysis, at the end of the first load step I build some tables in the postprocessor in order to use them as data for a second analysis that I perform through the "restart" command.
The problem is that in this second analysis ansys seems "has forgotten" all the tables and scalar parameters of the first load step, am I doing something wrong in saving and resum the database between the two analysis?
thank you very much for the help, I attach part of the script:
/SOLU
ANTYPE,trans
TIME,100
NSUBST,20
NEQIT,20
KBC,0
q=(M*6*lapstress(2))
F,4,HEAT,-q
F,2,HEAT,+q
OUTRES,all,all
SOLVE
FINISH
/POST1
!set,last
ETABLE,Tnodei,SMISC,2
ETABLE,Tnodej,SMISC,3
SADD,deltaT,Tnodei,Tnodej,1,-1,0
SADD,gradT,deltaT,,1/meshsize,0
*VGET,gradtemp,elem,1,etab,gradT
*MOPER,scalarp,gradtemp,MULT,gradstress
*GET,T,ELEM,3,SMISC,3
FINISH
!------------------------------------------------------------------------------
save,unidim,db
!------------------------------------------------------------------------------
/SOLU
RESUME,unidim,db
ANTYPE,,rest
TIME,100
NSUBST,20
NEQIT,20
KBC,0
x=(M*T*lapstress(2))
y=(M*scalarp(1))
q=x+y
F,4,HEAT,-q
F,2,HEAT,+q
OUTRES,all,all
SOLVE
FINISH
/POST1
set,last
ETABLE,REFL
SADD,deltaT,Tnodei,Tnodej,1,-1,0
SADD,gradT,deltaT,,1/meshsize,0
*VGET,gradtemp,elem,1,etab,gradT
*MOPER,scalarp,gradtemp,MULT,gradstress
*GET,T,ELEM,3,SMISC,3
FINISH
The problem is that in this second analysis ansys seems "has forgotten" all the tables and scalar parameters of the first load step, am I doing something wrong in saving and resum the database between the two analysis?
thank you very much for the help, I attach part of the script:
/SOLU
ANTYPE,trans
TIME,100
NSUBST,20
NEQIT,20
KBC,0
q=(M*6*lapstress(2))
F,4,HEAT,-q
F,2,HEAT,+q
OUTRES,all,all
SOLVE
FINISH
/POST1
!set,last
ETABLE,Tnodei,SMISC,2
ETABLE,Tnodej,SMISC,3
SADD,deltaT,Tnodei,Tnodej,1,-1,0
SADD,gradT,deltaT,,1/meshsize,0
*VGET,gradtemp,elem,1,etab,gradT
*MOPER,scalarp,gradtemp,MULT,gradstress
*GET,T,ELEM,3,SMISC,3
FINISH
!------------------------------------------------------------------------------
save,unidim,db
!------------------------------------------------------------------------------
/SOLU
RESUME,unidim,db
ANTYPE,,rest
TIME,100
NSUBST,20
NEQIT,20
KBC,0
x=(M*T*lapstress(2))
y=(M*scalarp(1))
q=x+y
F,4,HEAT,-q
F,2,HEAT,+q
OUTRES,all,all
SOLVE
FINISH
/POST1
set,last
ETABLE,REFL
SADD,deltaT,Tnodei,Tnodej,1,-1,0
SADD,gradT,deltaT,,1/meshsize,0
*VGET,gradtemp,elem,1,etab,gradT
*MOPER,scalarp,gradtemp,MULT,gradstress
*GET,T,ELEM,3,SMISC,3
FINISH





RE: Restart an analysis
/SOLU
...
...
save
solve
fini
/POST1
...
...
save
fini
However, to be sure, I recommend you issue:
PARSAV,ALL,filename,ext
in /POST1, which will write all of your parameters to a file named filename.ext and then you can resume these when you need using:
PARRES,CHANGE,filename,ext
------------
See FAQ569-1083: Asking questions the smart way on Eng-Tips fora for details on how to make best use of Eng-Tips.com
RE: Restart an analysis
in order to avoid this is just necessary to put a RESCONTROL,,none after the /SOLU command.
Now those files are not created and parameters are read from PARRES and from the database.
Hope this will help somebody in future
greetings