home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 13 / 13.iso / p / p064 / 3.ddi / CONSTANT.H < prev    next >
Encoding:
C/C++ Source or Header  |  1991-07-01  |  1.8 KB  |  43 lines

  1. /****************************************************************************/
  2. /*        Copyright (C) 1986, 1987, 1988, 1989, 1990, 1991                  */
  3. /*          By MicroSim Corporation, All Rights Reserved                    */
  4. /****************************************************************************/
  5. /* constant.h
  6.  *   $Revision:   1.4  $
  7.  *   $Author:   whb  $
  8.  *   $Date:   07 Aug 1989  8:42:04  $ */
  9.  
  10.  
  11. /******************* USERS OF DEVICE EQUATIONS OPTION ***********************/
  12. /********                Do not change this file                   **********/
  13.  
  14. /*
  15.  * Physical constants
  16.  */
  17. struct CNSTDef {
  18.   double        CNSTBoltz;              /* Boltzmann's constant */
  19.   double        CNSTCharge;             /* Charge on an electron */
  20.   double        CNSTCtok;               /* 0 deg. C in deg. Kelvin */
  21.   double        CNSTEps0;               /* Permittivity of free space */
  22.   double        CNSTEpssil;             /* Permittivity of silicon */
  23.   double        CNSTEpsox;              /* Permittivity of oxide */
  24.   double        CNSTTwopi;              /* Twice PI */
  25.   double        CNSTRad;                /* Degrees per radian */
  26.   double        CNSTLog2;               /* Log base e of 2 */
  27.   double        CNSTLog10;              /* Log base e of 10 */
  28.   double        CNSTRoot2;              /* Square root of 2 */
  29.   };
  30. #define BOLTZ        (GlCnst->CNSTBoltz)
  31. #define CHARGE        (GlCnst->CNSTCharge)
  32. #define CTOK        (GlCnst->CNSTCtok)
  33. #define EPS0        (GlCnst->CNSTEps0)
  34. #define EPSSIL        (GlCnst->CNSTEpssil)
  35. #define EPSOX        (GlCnst->CNSTEpsox)
  36. #define TWOPI        (GlCnst->CNSTTwopi)
  37. #define RAD        (GlCnst->CNSTRad)
  38. #define LOG2        (GlCnst->CNSTLog2)
  39. #define LOG10        (GlCnst->CNSTLog10)
  40. #define ROOT2        (GlCnst->CNSTRoot2)
  41.  
  42. GLOBAL  struct CNSTDef  *GlCnst;
  43.