network/pw_model.cpp File Reference

Copyright (C) 2012 Battelle Memorial Institute. More...

Go to the source code of this file.

Functions

int check_COM_output (_variant_t output)
 Scans the argument to validate its VARIANT type, and to perform basic error checking.

Detailed Description

Copyright (C) 2012 Battelle Memorial Institute.

Author:
Matt Hauer d3p988
Version:
3.0

An interface with PowerWorld and a single model file. Constructs and destructs the SimAuto COM connection. Tracks if any of the attached loads has requested a model calculation, and detects if the powerflow could not converge to a solution.

Definition in file pw_model.cpp.


Function Documentation

int check_COM_output ( _variant_t  output  ) 

Scans the argument to validate its VARIANT type, and to perform basic error checking.

Parameters:
output expected to be a two-element variant of types VT_VARIANT | VT_ARRAY ("array of variants")
Returns:
positive logic: 1 if input reports success, 0 if input reports failure

Definition at line 98 of file pw_model.cpp.


GridLAB-D™ Version 4.1
An open-source smart grid simulator created by PNNL for the US Department of Energy Office of Electricity