Author Topic: Transient integration parameter in user subrotine  (Read 4593 times)

anshulfy

  • Full Member
  • ***
  • Posts: 63
Transient integration parameter in user subrotine
« on: December 25, 2016, 06:38:24 AM »
Dear all,

I am using 'Tran Expl'  with Gamma=0.6. Is it possible to get the value of gamma in user element subroutine. Which variable can give me this information?

Thanks,
Anshul

FEAP_Admin

  • Administrator
  • FEAP Guru
  • *****
  • Posts: 993
Re: Transient integration parameter in user subrotine
« Reply #1 on: December 25, 2016, 10:38:00 AM »
I think the following will work:

1) include 'ddata.h'

2) look at the variable theta(2)


[see also program/dparam.f and program/dsetci.f]

anshulfy

  • Full Member
  • ***
  • Posts: 63
Re: Transient integration parameter in user subrotine
« Reply #2 on: December 26, 2016, 12:05:19 AM »
Thanks FEAP_admin. One more quick question. Where can I find the maximum time (tmax) of the simulation stored for command TIME,,<tmax>?

regards,
Anshul
« Last Edit: December 26, 2016, 12:24:45 AM by anshulfy »

FEAP_Admin

  • Administrator
  • FEAP Guru
  • *****
  • Posts: 993
Re: Transient integration parameter in user subrotine
« Reply #3 on: December 26, 2016, 08:23:19 AM »
look in program/pmacr.f to find out which pmacrX.f file gets called by TIME (X will be a number in continuation column of the data statment that contains the names of all the macro commands). 
Then look in that program/pmacrX.f file to see how TIME handles the incoming value (stored in CT(1,l)).
This will tell you the variable name (in this case it will be in an include file).  You can file the include file
by searching them for the variable name that you found in pmacrX.f.

anshulfy

  • Full Member
  • ***
  • Posts: 63
Re: Transient integration parameter in user subrotine
« Reply #4 on: December 27, 2016, 12:01:34 AM »
Thanks.