<< Click to Display Table of Contents >> Navigation: Macros > Macro commands and parameters > Macro calculating commands > Load flow |
Purpose:
Calculation of the load flow of a network. Parameters are the number of years for the growth, load pattern, motor start, automatic transformer tap changers control and percentages.
General notation:
Loadflow ( [year] , [extra] , [transformercontrol] , [PQcontrol], [generation], [load], [PV], [wind] , [suntime], [transformer control tactics], [profile files] )
The parameters may be omitted from the last to the front. The parameters may also left blank. When omitted or left blank, the default value counts.
The parameters correspond with the load flow settings form.
year: number of years from present in order to establish growth (default 0)
extra: text value for extended loadflow calculation (default ''; possible: '', 'ms', 'n-1', 'n-2', 'pf', 'pfp', 'prd')
transformercontrol: true/false for adapting tap changers (default true)
PQcontrol: true/false for applying/not applying the capacitor and coil controls and P and Q controls of load, PV, wind turbine and battery (default true)
generation: generation scaling percentage (default 100)
load: load scaling percentage (default 100)
PV: PV scaling percentage (default 100)
wind: wind scaling percentage (default 100)
sun time: date time as a broken number (around 44000; default 0/n.a.)
transformer control tactics: 0:nothing special; -1:control to low voltage; 1:control to high voltage
profile files: path+file name, possibly with wildcards to select multiple files
After a successful execution the standard objects Network.Result and Object.Result will be equal to 'LF', otherwise 'NO'.
The results of the load flow with profiles and the load flow over a period are available only as an export file, with the ExportResult command.
Load flow calculation with motor start:
Loadflow( year , 'ms' , transformercontrol )
The asynchronous motors which are 'selected' will start. The attribute Selected can be changed by the macro. Initially the 'selected' attributes have the value true if they are selected in the network; false otherwise. Calculated voltage and current are the values during the motorstart.
Examples:
Perform a load flow for year 3 and with automatic transformer tap changer control turned on:
Loadflow ( 3 , , true )
Perform a load flow with variables for year 5 and with automatic transformer tap changer control disabled:
Set( year, 5 )
Set( transformercontrol, false )
Loadflow ( year , , transformercontrol )
Perform a load flow with with motor start:
Set( AsynMot( 'MyMotor' ).Selected , true )
Set( transformercontrol, false )
Loadflow ( 0 , 'ms' , transformercontrol )
Back to Macro calculating commands