Author Topic: How variable to be updated every iteration?  (Read 3549 times)

halleluja

  • Full Member
  • ***
  • Posts: 80
How variable to be updated every iteration?
« on: November 29, 2017, 02:08:45 PM »
Dear all,

i am trying to implement a plastic subroutine, so the hardening parameter will be updated in every iteration. I have used hr(nh1) for previous iteration and hr(nh2) for the next iteration. But i found the hr variable would only be updated after the commond TIME in input file.
For example:
BATCh
PROP,1
DT,,0.1
LOOP,LAST,10
TIME
LOOP,ITER,20
TANG,,1
NEXT,ITER
NEXT,LAST
END

But the hr variable would be not updated between LOOP,ITER,20 and NEXT,ITER. Can you give me some advice? Thanks a lot:)


Prof. R.L. Taylor

  • Administrator
  • FEAP Guru
  • *****
  • Posts: 2649
Re: How variable to be updated every iteration?
« Reply #1 on: November 29, 2017, 04:32:42 PM »
If you are advancing time from "n" to "n+1" then you are correct the value for "n" are at the "nh1" and the last value you computed should be at the "nh2" locations.  When you use the command TIME then, yes we put the values in "nh2" into "nh1".  So the way feap is programmed is for one step algorithms.  For other forms you would need to do further management of values in these arrays.  Can you tell us what you would want to do that is different?

halleluja

  • Full Member
  • ***
  • Posts: 80
Re: How variable to be updated every iteration?
« Reply #2 on: November 30, 2017, 02:27:42 PM »
Thanks for your answer!

I found i have made a mistake.
In Elastoplastic problem the hardening variable, plastic strain etc. don't need to be updated between time "n" and "n+1", namely no update between "LOOP,ITER,20" and "NEXT,ITER". They should only be updated after command TIME.