⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 nud2.c

📁 spice中支持多层次元件模型仿真的可单独运行的插件源码
💻 C
字号:
/**********Copyright 1992 Regents of the University of California.  All rights reserved.Author:	1987 Kartikeya Mayaram, U. C. Berkeley CAD Group**********/#include "spice.h"#include <stdio.h>#include "devdefs.h"#include "numd2def.h"#include "suffix.h"/* * This file defines the 2d Numerical Diode data structures that are * available to the next level(s) up the calling hierarchy */IFparm NUMD2pTable[] = {	/* parameters */  IP("off", NUMD2_OFF, IF_FLAG, "Initially off"),  IP("ic.file", NUMD2_IC_FILE, IF_STRING, "Initial condition file"),  IOP("w", NUMD2_WIDTH, IF_REAL, "Width factor"),  IOP("area", NUMD2_AREA, IF_REAL, "Area factor"),  IP("save", NUMD2_PRINT, IF_REAL, "Save solutions"),  IP("print", NUMD2_PRINT, IF_REAL, "Print solutions"),  OP("vd", NUMD2_VD, IF_REAL, "Voltage"),  OP("id", NUMD2_ID, IF_REAL, "Current"),  OP("g11", NUMD2_G11, IF_REAL, "Conductance"),  OP("c11", NUMD2_C11, IF_REAL, "Capacitance"),  OP("y11", NUMD2_Y11, IF_COMPLEX, "Admittance"),  OPU("g12", NUMD2_G12, IF_REAL, "Conductance"),  OPU("c12", NUMD2_C12, IF_REAL, "Capacitance"),  OPU("y12", NUMD2_Y12, IF_COMPLEX, "Admittance"),  OPU("g21", NUMD2_G21, IF_REAL, "Conductance"),  OPU("c21", NUMD2_C21, IF_REAL, "Capacitance"),  OPU("y21", NUMD2_Y21, IF_COMPLEX, "Admittance"),  OPU("g22", NUMD2_G22, IF_REAL, "Conductance"),  OPU("c22", NUMD2_C22, IF_REAL, "Capacitance"),  OPU("y22", NUMD2_Y22, IF_COMPLEX, "Admittance"),  OPR("voltage", NUMD2_VD, IF_REAL, "Voltage"),  OPR("current", NUMD2_ID, IF_REAL, "Current"),  OPR("conductance", NUMD2_G11, IF_REAL, "Conductance"),  OPR("capacitance", NUMD2_C11, IF_REAL, "Capacitance"),  IOP("temp", NUMD2_TEMP, IF_REAL, "Instance Temperature")};IFparm NUMD2mPTable[] = {	/* model parameters */  /* numerical-device models no longer have parameters */  /* one is left behind to keep the table from being empty */  IP("numd", NUMD2_MOD_NUMD, IF_FLAG, "Numerical 2d-Diode Model")};char *NUMD2names[] = {  "Anode",  "Cathode"};int NUMD2nSize = NUMELEMS(NUMD2names);int NUMD2pTSize = NUMELEMS(NUMD2pTable);int NUMD2mPTSize = NUMELEMS(NUMD2mPTable);int NUMD2iSize = sizeof(NUMD2instance);int NUMD2mSize = sizeof(NUMD2model);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -