home *** CD-ROM | disk | FTP | other *** search
- /****************************************************************************/
- /* Copyright (C) 1986, 1987, 1988, 1989, 1990, 1991 */
- /* By MicroSim Corporation, All Rights Reserved */
- /****************************************************************************/
- /* constant.h
- * $Revision: 1.4 $
- * $Author: whb $
- * $Date: 07 Aug 1989 8:42:04 $ */
-
-
- /******************* USERS OF DEVICE EQUATIONS OPTION ***********************/
- /******** Do not change this file **********/
-
- /*
- * Physical constants
- */
- struct CNSTDef {
- double CNSTBoltz; /* Boltzmann's constant */
- double CNSTCharge; /* Charge on an electron */
- double CNSTCtok; /* 0 deg. C in deg. Kelvin */
- double CNSTEps0; /* Permittivity of free space */
- double CNSTEpssil; /* Permittivity of silicon */
- double CNSTEpsox; /* Permittivity of oxide */
- double CNSTTwopi; /* Twice PI */
- double CNSTRad; /* Degrees per radian */
- double CNSTLog2; /* Log base e of 2 */
- double CNSTLog10; /* Log base e of 10 */
- double CNSTRoot2; /* Square root of 2 */
- };
- #define BOLTZ (GlCnst->CNSTBoltz)
- #define CHARGE (GlCnst->CNSTCharge)
- #define CTOK (GlCnst->CNSTCtok)
- #define EPS0 (GlCnst->CNSTEps0)
- #define EPSSIL (GlCnst->CNSTEpssil)
- #define EPSOX (GlCnst->CNSTEpsox)
- #define TWOPI (GlCnst->CNSTTwopi)
- #define RAD (GlCnst->CNSTRad)
- #define LOG2 (GlCnst->CNSTLog2)
- #define LOG10 (GlCnst->CNSTLog10)
- #define ROOT2 (GlCnst->CNSTRoot2)
-
- GLOBAL struct CNSTDef *GlCnst;