fmelo88
Aerospace
- Nov 12, 2008
- 3
Hello everybody
I would like to perform a do loop with inside a transient thermal analysis, at the end of every loop (with inside 100 seconds of transient thermal analysis) some parameters must be update for the next loop in which they will be used as input, I have written the following script but seems it´s not working. I can see the different loops running but no parameters are update at the end of every loop... where can be the mistake?
thank you very much in advance
...
...
...
*DO,n,1,iter,1
/SOLU
rescontrol,,all,1,
timestep=100
TIME,n*timestep
NSUBST,20
NEQIT,20
KBC,0
x=(M*T(3)*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
!Now I need to update temperature values
ETABLE,TMP,TEMP
*VGET,T,elem,1,etab,TMP
!here some other calculations using updated T parameter
FINISH
/SOLU
ANTYPE,,rest
*enddo
I would like to perform a do loop with inside a transient thermal analysis, at the end of every loop (with inside 100 seconds of transient thermal analysis) some parameters must be update for the next loop in which they will be used as input, I have written the following script but seems it´s not working. I can see the different loops running but no parameters are update at the end of every loop... where can be the mistake?
thank you very much in advance
...
...
...
*DO,n,1,iter,1
/SOLU
rescontrol,,all,1,
timestep=100
TIME,n*timestep
NSUBST,20
NEQIT,20
KBC,0
x=(M*T(3)*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
!Now I need to update temperature values
ETABLE,TMP,TEMP
*VGET,T,elem,1,etab,TMP
!here some other calculations using updated T parameter
FINISH
/SOLU
ANTYPE,,rest
*enddo