Screamer Project  V3.3.1
Screamer Structure
 All Files Functions Variables
setsclcr.f
Go to the documentation of this file.
1  subroutine set_sclcurr (time, volt, index, current)
2 c
3 c Define passed variables
4 c
5  real time, volt, current
6  integer index
7 c
8 c Changed log
9 c
10 c 2014-02-06 RBS: Changed real*4 to real
11 c 2014-05-02 RBS: Changed integer*4 to integer
12 c
13 c SCL current source as a function of time.
14 c
15  include 'zdemparm.h'
16  include 'zdemmax.h'
17  include 'zdemcomm.h'
18  include 'zdemwork.h'
19 c
20 c Use the table lookup routine to find the current, given the delayed time and
21 c voltage produced.
22 c Scale the voltage (input) down since the stored function is scaled down,
23 c then scale the resulting current up since it is stored scaled down.
24 c
25  scale = currf_parms(1,index)
26  rvscale = currf_parms(2,index)
27  delay = currf_parms(3,index)
28  npts = num_currf_parms(index) - 3
29  current = ftabcond(time-delay, volt*rvscale, npts,
30  & currf_parms(4,index), lastcurrf_time(index))
31  current = current * scale
32 c
33  return
34  end
function ftabcond(time, cond, npts, pts, ltime)
Definition: tblfunc.f:1
subroutine set_sclcurr(time, volt, index, current)
Definition: setsclcr.f:1
c *****************************************************************************c Various format statements for read_screamer_data output c To get these into made format to be characters c for each line corrected spelling errors in format added statement for Zflow Plasma Loss Model added format for CSV output type fixed more lines longer than characters added format for Measure Zflow Block and forward c reverse current directions in Zflow plasma loss c and Zflow POS models added format for SFC output type c removed from all code calls c c c c c a80 c i10 c No grids on plots c Do not write files containing the plotted points c Execute only one cycle c Do not echo the setup parameters and indicies c c &exitting c a13 c c c c c c c c102 c &described as a function of time c c c &described as a function of time c c c &function of time c c shell c &min A K c &trapped field time
Definition: zdemfmt.h:85
c *****************************************************************************c Various format statements for read_screamer_data output c To get these into made format to be characters c for each line corrected spelling errors in format added statement for Zflow Plasma Loss Model added format for CSV output type fixed more lines longer than characters added format for Measure Zflow Block and forward c reverse current directions in Zflow plasma loss c and Zflow POS models added format for SFC output type c removed from all code calls c c c c c a80 c i10 c No grids on plots c Do not write files containing the plotted points c Execute only one cycle c Do not echo the setup parameters and indicies c c &exitting c a13 c c c c c c c c102 c &described as a function of time c c c &described as a function of time c c c &function of time c c shell c &min A K c &trapped field c153 c c c Sin c c c remaining calls in rdscrelem c Tabular a10 Cond scale
Definition: zdemfmt.h:111