Author Topic: Same Analysis In A Loop  (Read 2983 times)

jbruss

  • Jr. Member
  • **
  • Posts: 36
Same Analysis In A Loop
« on: November 10, 2017, 10:52:16 AM »
Is it possible to trick FEAP into performing the same analysis multiple times in a loop with the time steps and solution vector re-initializing as well?

For example:

Loop,,10
   DT,,dt
   # Perform analysis here with time step, dt, and proportional load to time 1.0

   # Here I would like to do another analysis, starting from the initial time but I'm not sure how to do this
   # Perhaps it would be some variant of the following?
   DT,,1.0
   BACK
   Time,,1.0
   # Change some parameters for the next analysis run
   # Set the solution vector values to 0 ?
   # Set the current step number to 1 ?
NEXT

Is there a way to perform multiple analyses in this way inside of a loop? I tried something similar a few times but was unsuccessful.

Thank you for your help,
Jonathan

FEAP_Admin

  • Administrator
  • FEAP Guru
  • *****
  • Posts: 993
Re: Same Analysis In A Loop
« Reply #1 on: November 10, 2017, 01:05:32 PM »
Try something like

paramter
   t = 0.1

loop,,10
   parameter
     t = t + 1

     include Ifile

next

where Ifile is a complete feap input file that uses 't' as a parameter that is progressively incremented by 1 in the case shown.