Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

global.h

Go to the documentation of this file.
00001 // SuperMix version 1.0  C++ source file
00002 //
00003 // Copyright (c) 1999 California Institute of Technology.
00004 // All rights reserved.
00005 //
00006 // Redistribution and use in source and binary forms for noncommercial
00007 // purposes are permitted provided that the above copyright notice and
00008 // this paragraph are duplicated in all such forms and that any
00009 // documentation and other materials related to such distribution and
00010 // use acknowledge that the software was developed by California
00011 // Institute of Technology. Redistribution and/or use in source or
00012 // binary forms is not permitted for any commercial purpose. Use of
00013 // this software does not include a permitted use of the Institute's
00014 // name or trademark for any purpose.
00015 //
00016 // DISCLAIMER:
00017 // THIS SOFTWARE AND/OR RELATED MATERIALS ARE PROVIDED "AS-IS" WITHOUT
00018 // WARRANTY OF ANY KIND INCLUDING ANY WARRANTIES OF PERFORMANCE OR
00019 // MERCHANTABILITY OR FITNESS FOR A PARTICULAR USE OR PURPOSE (AS SET
00020 // FORTH IN UCC 23212-2313) OR FOR ANY PURPOSE WHATSOEVER, FOR THE
00021 // LICENSED PRODUCT, HOWEVER USED.  IN NO EVENT SHALL CALTECH/JPL BE
00022 // LIABLE FOR ANY DAMAGES AND/OR COSTS, INCLUDING BUT NOT LIMITED TO
00023 // INCIDENTAL OR CONSEQUENTIAL DAMAGES OF ANY KIND, INCLUDING ECONOMIC
00024 // DAMAGE OR INJURY TO PROPERTY AND LOST PROFITS, REGARDLESS OF
00025 // WHETHER CALTECH/JPL SHALL BE ADVISED, HAVE REASON TO KNOW, OR IN
00026 // FACT SHALL KNOW OF THE POSSIBILITY.  THE USER BEARS ALL RISK
00027 // RELATING TO QUALITY AND PERFORMANCE OF THE SOFTWARE AND/OR RELATED
00028 // MATERIALS.
00029 //
00030 // ********************************************************************
00031 
00045 // ********************************************************************
00046 //
00047 // 5/14/01:  Converted comments to javadoc format
00048 // 7/29/98:  Includes units.h
00049 // 12/17/97: Includes matmath.h; added Tiny
00050 // 9/5/97:  Pulled out SIS functions to SIS.h
00051 // 8/13/97: Added SIS_max_harmonic().
00052 // 8/12/97: Added declarations for SIS data access functions.
00053 //          Stubs are in SISdef.cc
00054 // 8/1/97:  Added Temperature.
00055 // 8/1/97:  Fully tested.
00056 // 7/31/97: First Version. Compiles o.k., otherwise not tested.
00057 //
00058 // ********************************************************************
00059 #ifndef GLOBAL_H
00060 #define GLOBAL_H
00061 
00062 #include "SIScmplx.h"
00063 #include "matmath.h"
00064 
00065 // ====================================================================
00066 // Miscellaneous constants and limits:
00067 
00069 #define ZEROTOL (1.0e-6)
00070 
00071 // standard truth values
00072 #ifndef FALSE
00073 #define FALSE   0
00074 #endif
00075 
00076 #ifndef TRUE
00077 #define TRUE  ( ! FALSE )
00078 #endif
00079 
00080 const complex I(0.0,1.0);  // Useful complex number
00081 
00082 const double Pi = 3.1415926535897932384626433832795028841973;
00083 
00084 const double Tiny = 1.0E-100;
00085 
00086 const double Degree = 0.01745329251994329576923690768488612713443;
00087           // Degree == Pi/180
00088 
00089 const double RmsToPeak = 1.414213562373095048801688724209698078570;
00090           // RmsToPeak == sqrt(2.0), for converting RMS to peak values
00091 
00092 
00093 // ====================================================================
00094 // Master Units:
00095 //       All internally passed parameters should be normalized to
00096 //       multiples of the following.
00097 
00098 
00099 const double  mVolt  = 1.0;           //  millivolt RMS
00100 
00101 const double  Ohm    = 1.0;    
00102 
00103 const double  GHz    = 0.01;          //  100*Ghz == 1.0
00104 
00105 const double  Micron = 1.0;
00106 
00107 const double  Kelvin = 1.0;
00108 
00109 #include "units.h"
00110 
00111 // ====================================================================
00112 
00113 #endif /* GLOBAL_H */

Please direct comments and corrections to supermix@submm.caltech.edu
Go to the supermix home page
Generated by doxygen1.2.7