isrcacload.c
来自「支持数字元件仿真的SPICE插件」· C语言 代码 · 共 41 行
C
41 行
/* * Copyright (c) 1985 Thomas L. Quarles */#include "prefix.h"#include <stdio.h>#include "CKTdefs.h"#include "ISRCdefs.h"#include "SPerror.h"#include "suffix.h"RCSID("ISRCacLoad.c $Revision: 1.1 $ on $Date: 91/07/11 11:06:19 $")intISRCacLoad(inModel,ckt) GENmodel *inModel; register CKTcircuit *ckt;{ register ISRCmodel *model = (ISRCmodel*)inModel; register ISRCinstance *here; for( ; model != NULL; model = model->ISRCnextModel ) { /* loop through all the instances of the model */ for (here = model->ISRCinstances; here != NULL ; here=here->ISRCnextInstance) { *(ckt->CKTrhs + (here->ISRCposNode)) += here->ISRCacReal; *(ckt->CKTrhs + (here->ISRCnegNode)) -= here->ISRCacReal; *(ckt->CKTirhs + (here->ISRCposNode)) += here->ISRCacImag; *(ckt->CKTirhs + (here->ISRCnegNode)) -= here->ISRCacImag; } } return(OK);}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?