Jspice3
tratemp.c File Reference
#include "spice.h"
#include <stdio.h>
#include "tradefs.h"
#include "sperror.h"
#include "util.h"
Include dependency graph for tratemp.c:

Go to the source code of this file.

Functions

int TRAtemp (GENmodel *inModel, CKTcircuit *ckt)
 

Function Documentation

int TRAtemp ( GENmodel inModel,
CKTcircuit ckt 
)

Definition at line 15 of file tratemp.c.

22 {
23  TRAmodel *model = (TRAmodel *)inModel;
24  TRAinstance *here;
25 
26  /* loop through all the transmission line models */
27  for( ; model != NULL; model = model->TRAnextModel ) {
28 
29  /* loop through all the instances of the model */
30  for (here = model->TRAinstances; here != NULL ;
31  here=here->TRAnextInstance) {
32 
33  if(!here->TRAtdGiven) {
34  here->TRAtd = here->TRAnl/here->TRAf;
35  }
36  here->TRAconduct = 1/here->TRAimped;
37  }
38  }
39  return(OK);
40 }
struct sTRAinstance * TRAnextInstance
Definition: tradefs.h:20
TRAinstance * TRAinstances
Definition: tradefs.h:89
unsigned TRAtdGiven
Definition: tradefs.h:71
struct sTRAmodel * TRAnextModel
Definition: tradefs.h:87
double TRAimped
Definition: tradefs.h:30
double TRAtd
Definition: tradefs.h:32
double TRAnl
Definition: tradefs.h:33
double TRAf
Definition: tradefs.h:34
#define OK
Definition: iferrmsg.h:17
#define NULL
Definition: spdefs.h:121
static char model[32]
Definition: subckt.c:76
double TRAconduct
Definition: tradefs.h:31