CreateHarmonicSource Method
Declaration Description Parameters Method Result See Also Example

<< Click to Display Table of Contents >>

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

CreateHarmonicSource Method
Declaration Description Parameters Method Result See Also Example

Previous pageReturn to chapter overviewNext page

 

Section

Declaration

 

function CreateHarmonicSource(

const BusName: WideString;

Status: Integer;

const Name, Number, Descr: WideString;

X, Y, PulseType: Integer;

const P, Q, LoadCategory: WideString;

SF, CF: Double;

EnableLoadFLow: Integer;

SingkingCurrent: Double;

const HarmonicSpectrum: WideString

): WideString;

Section

Description

Creates a Harmonic Source onto a Bus Bar with the parameters passed to the function.

Should there be a name conflict, it returns the actual name of the Harmonic Source.

Section

Parameters

 

Parameter

Usage

BusName

Bus Name the Harmonic Source should be connected to.

Status

Status of the Harmonic Source (1 - in service, 0 - out of service)

Name

Unique Name. If not unique, it will be changed and the new name returned by the method.

Number

Unique Number

Description

A Description for the Harmonic Source if it is required.

X

X  Co-ordinate of the Harmonic Source (allows placement of the Harmonic Source along the length of the bus)

Y

Y Co-ordinate of the Harmonic Source

PulseType

6, 12 or 24

P

The Active Power of the Harmonic Source can be specified for example as either 10000 or 10MW

Q

The Reactive Power of the Harmonic Source can be specified for example as either 2000 or 2MVAR

LoadCategory

Specifies the Load Category this Harmonic Source belongs to

SF

Scale Factor of the Harmonic Source.

CF

Co-incident Factor of the Harmonic Source with respect to System Peak.

EnableLoadFlow

If Enabled the Load will be used in the Load Flow Calculation

SingkingCurrent

Specifies the % of current that this device will absorb due to "lumping" of loads, etc.

HarmonicSpectrum

Specifies the Harmonic Current Spectrum of this Harmonic Source.

Section

Method Result

Unique Harmonic Source Name.

Section

Example

NewName := PowaMasterObj.CreateHarmonicSource( BusName1, 1, OldName, NumberStr, DescriptionStr, 10, 110, 24, '10MW', '2MVAR', 'General',  0.9, 1, 1, 0, "1 100 23 4.3 25 4 47 2.1 49 2");
 

if CompareText(NewName, OldName) <> 0 then ShowMessage('The Name has been changed');

Section

See Also

CreateBus

CreateGenerator

CreateLoad

CreateMotor

CreateInductionMotor

CreateShuntCap

CreateCoGen

CreateBranch

CreateBranchSection

CreateTrfrBranch

CreateProtectionDevice

CreateSeriesCap

CreateSeriesReactor

Section