Jspice3
trandefs.h
Go to the documentation of this file.
1 /***************************************************************************
2 JSPICE3 adaptation of Spice3e2 - Copyright (c) Stephen R. Whiteley 1992
3 Copyright 1990 Regents of the University of California. All rights reserved.
4 Authors: 1985 Thomas L. Quarles
5  1992 Stephen R. Whiteley
6 ****************************************************************************/
7 
8 #ifndef TRAN
9 #define TRAN
10 
11 #include "analysis.h"
12 
13  /* TRANdefs.h - defs for transient analyses */
14 
15 
16 /* structure to hold private parameters for transient analysis */
17 struct sTRANint {
18  double tcheck; /* running variable for plot points */
19  double tend; /* final time minus tolerance */
20  double startdTime; /* statistics */
21  double startsTime;
22  double startTime;
23  double delmax; /* maximum time delta */
24  int startIters; /* statistics */
25  int polydegree; /* interpolation degree */
26  int nointerp; /* don't interpolate */
27  int hitusertp; /* hit plot points like breakpoints */
28  int dumpit; /* output the next point */
29  int firsttime; /* first time through */
30  int nojjtp; /* use truncation error for jj timestep */
31  int count; /* output point count */
32 };
33 
34 
35 typedef struct {
36  int JOBtype;
37  JOB *JOBnextJob; /* pointer to next thing to do */
38  char *JOBname; /* name of this job */
39  double TRANfinalTime; /* final analysis point */
40  double TRANstep; /* user timestep */
41  double TRANmaxStep; /* maximum internal timestep */
42  double TRANinitTime; /* initial user output point */
43  long TRANmode; /* mode UIC? */
44  GENERIC *TRANplot; /* pointer to plot */
45  struct sTRANint TS; /* pass this to subroutines */
46  struct sDCTprms DC; /* DC parameter storage */
47 } TRANAN;
48 
49 #define TRAN_TSTART 1
50 #define TRAN_TSTOP 2
51 #define TRAN_TSTEP 3
52 #define TRAN_TMAX 4
53 #define TRAN_UIC 5
54 
55 
56 #ifdef __STDC__
57 extern int TRANan(GENERIC*,int);
58 extern int TRANaskQuest(GENERIC*,GENERIC*,int,IFvalue*);
59 extern int TRANinit(GENERIC*,GENERIC*);
60 extern int TRANparse(GENERIC*,GENERIC*,int,GENERIC*,char**,GENERIC*,GENERIC*);
61 extern int TRANsetParm(GENERIC*,GENERIC*,int,IFvalue*);
62 #else
63 extern int TRANan();
64 extern int TRANaskQuest();
65 extern int TRANinit();
66 extern int TRANparse();
67 extern int TRANsetParm();
68 #endif
69 
70 
71 #endif /* TRAN */
int TRANsetParm()
double startsTime
Definition: trandefs.h:21
int hitusertp
Definition: trandefs.h:27
double startdTime
Definition: trandefs.h:20
Definition: cktdefs.h:23
char * JOBname
Definition: trandefs.h:38
int count
Definition: trandefs.h:31
int polydegree
Definition: trandefs.h:25
int startIters
Definition: trandefs.h:24
double tend
Definition: trandefs.h:19
double TRANmaxStep
Definition: trandefs.h:41
int dumpit
Definition: trandefs.h:28
GENERIC * TRANplot
Definition: trandefs.h:44
double TRANfinalTime
Definition: trandefs.h:39
int JOBtype
Definition: trandefs.h:36
int nojjtp
Definition: trandefs.h:30
int TRANan()
long TRANmode
Definition: trandefs.h:43
JOB * JOBnextJob
Definition: trandefs.h:37
double startTime
Definition: trandefs.h:22
int TRANaskQuest()
double TRANstep
Definition: trandefs.h:40
int nointerp
Definition: trandefs.h:26
double TRANinitTime
Definition: trandefs.h:42
double tcheck
Definition: trandefs.h:18
int TRANinit()
int TRANparse()
char GENERIC
Definition: ifsim.h:27
double delmax
Definition: trandefs.h:23
int firsttime
Definition: trandefs.h:29