📄 muttemp.c
字号:
/**********Copyright 2003 Paolo NenziAuthor: 2003 Paolo Nenzi**********//* */#include "ngspice.h"#include "cktdefs.h"#include "inddefs.h"#include "sperror.h"#include "suffix.h"/*ARGSUSED*/intMUTtemp(GENmodel *inModel, CKTcircuit *ckt){ MUTmodel *model = (MUTmodel*)inModel; MUTinstance *here; double ind1, ind2; /* loop through all the inductor models */ for( ; model != NULL; model = model->MUTnextModel ) { /* loop through all the instances of the model */ for (here = model->MUTinstances; here != NULL ; here=here->MUTnextInstance) { if (here->MUTowner != ARCHme) continue; /* Value Processing for mutual inductors */ ind1 = here->MUTind1->INDinduct; ind2 = here->MUTind2->INDinduct; /* _______ * M = k * \/l1 * l2 */ here->MUTfactor = here->MUTcoupling * sqrt(ind1 * ind2); } } return(OK);}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -