network/network.h

00001 /* network.h
00002  *
00003  */
00004 
00005 #ifndef _NETWORK_H
00006 #define _NETWORK_H
00007 
00008 #include "gridlabd.h"
00009 
00010 #ifdef _GLOBALS_C
00011 #ifdef __cplusplus
00012 #error "_GLOBALS_C must be defined in a C file"
00013 #else
00014 #define GLOBAL_EXPORT EXPORT
00015 #define GLOBAL
00016 #define INIT(A) =(A);
00017 #endif
00018 #else
00019 #ifdef __cplusplus
00020 #define GLOBAL_EXPORT EXPORT
00021 #define GLOBAL CDECL
00022 #else
00023 #define GLOBAL_EXPORT EXPORT extern
00024 #define GLOBAL CDECL extern
00025 #endif
00026 #define INIT(A)
00027 #endif
00028 
00029 GLOBAL_EXPORT int major INIT(MAJOR);
00030 GLOBAL_EXPORT int minor INIT(MINOR);
00031 
00032 /* power flow properties */
00033 GLOBAL double nominal_frequency_Hz INIT(60.0);
00034 
00035 /* Gauss-Seidel solver default controls */
00036 GLOBAL double acceleration_factor INIT(1.0);
00037 GLOBAL double convergence_limit INIT(0.001);
00038 GLOBAL double mvabase INIT(1.0);
00039 GLOBAL double kvbase INIT(12.5);
00040 GLOBAL int16 model_year INIT(2000);
00041 GLOBAL char8 model_case INIT("S");
00042 GLOBAL char32 model_name INIT("(unnamed)");
00043 
00044 #ifdef _DEBUG
00045 GLOBAL int16 debug_node INIT(0);
00046 GLOBAL int16 debug_link INIT(0);
00047 #endif
00048 
00049 #ifdef __cplusplus
00050 
00051 /* needed for initialization of CPP globals */
00052 #ifdef DLMAIN
00053 #undef INIT
00054 #define INIT(A) =(A);
00055 #endif
00056 
00057 #include "capbank.h"
00058 #include "fuse.h"
00059 #include "relay.h"
00060 #include "regulator.h"
00061 #include "transformer.h"
00062 #include "meter.h"
00063 #include "generator.h"
00064 
00065 #endif /* __cplusplus */
00066 
00067 #endif

GridLAB-DTM Version 1.0
An open-source project initiated by the US Department of Energy