Runtime modules


Modules

 Commercial buildings (commercial)
 This module implements commercial building models.
 Reliability analysis module
 The reliability analysis modules implements an eventgen and metrics objects to permit the study of reliability impacts of technologies.
 Generators
 Matlab objects
 Matlab objects.
 Weather (climate)
 Climate implementation.
 Programmable logic controllers (plc)
 The PLC module can load any DLL that has the following exports.
 Distribution flow solver (radial)
 This module contains a model simulating a powerflow distribution network using Kersting's method outlined in his book: Distribution System Modeling and Analysis.
 Residential loads (residential)
 Players and recorders (tape)
 Tape players and recorders are used to manage the boundary conditions and record properties of objects during simulation.
 Transmission flow solver (network)
 The network module implements a balanced three-phase positive sequence power flow solver using the Gauss-Seidel method as described by Kundur [Kundur 1993, pp.259-260].

Typedefs

typedef MODULE *(* LOADER )(const char *, int, char *[])
 Load a runtime module.

Functions

MODULE * module_load (const char *file, int argc, char *argv[])
int module_saveobj_xml (FILE *fp, MODULE *mod)


Typedef Documentation

typedef MODULE*(* LOADER)(const char *, int, char *[])

Load a runtime module.

Returns:
a pointer to the MODULE structure NULL on failure, errno set to:
  • ENOEXEC to indicate init() not defined in module
  • EINVAL to indicate call to init failed
  • ENOENT to indicate class not defined by module

Definition at line 193 of file module.c.


Function Documentation

MODULE* module_load ( const char *  file,
int  argc,
char *  argv[] 
)

Parameters:
file  module filename, searches PATH
argc  count of arguments in argv
argv  arguments passed from the command line

Definition at line 194 of file module.c.

References class_get_first_class(), class_get_last_class(), find_file(), load_java_module(), load_python_module(), module_load(), output_error(), output_fatal(), and output_verbose().

Referenced by cmdarg_load(), cmex_module(), exec_debug_cmd(), module_load(), and output_xsd().

int module_saveobj_xml ( FILE *  fp,
MODULE *  mod 
)

< the stream to write to

Definition at line 537 of file module.c.

References convert_from_timestamp(), object_get_first(), PA_PUBLIC, and PA_REFERENCE.


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