Calculate Method
Declaration Description Parameters Method Result See Also Example

<< Click to Display Table of Contents >>

Navigation:  Additional Resources > OLE/COM Automation > Methods > Calculation >

Calculate Method
Declaration Description Parameters Method Result See Also Example

Previous pageReturn to chapter overviewNext page

 

Section

Declaration

function Calculate(FlatStartFlag, Method: Integer; out Msg: WideString): Integer;

Section

Description

Performs a Network Solve using the Selected Method.

Section

Parameters

 

Input Parameter

Usage

FlatStartFlag

0 - Don't do a Flat Start

1 - Do a Flat Start first.

Method

Calculation Method

0 : Gauss-Seidel

1 : Full Newton-Rhapson

2 : Fast Decoupled Newton-Rhapson

Output Parameter

Usage

Msg

Error Message

 

Section

Method Result

0 - Successful

1 - Blown

2 - Couldn't Converge

Section

Example

Success := PowaMasterObj.Calculate(1, 1, Msg);

if Success <> 0 then ShowMessage(Msg);

Section

See Also

CalculateFault

CalculateHarmonics

Section