Macro command Divide

<< Click to Display Table of Contents >>

Navigation:  Macros > Macro commands and parameters > Macro alteration commands >

Macro command Divide

Purpose:

Divides an attribute or a variable by a value.

 

General notation:

Divide( Object( ObjectName ).Attribute , value )

of

Divide( Variable , value )

 

Examples:

Lower load with name 'MyLoad' with 10%:

 Divide( Load ( 'MyLoad' ).Pl , 1.1 )

Divide load (P and Q) with name 'MyLoad' at node 'MyNode' by the value of the growth of load behaviour with name 'MyLoadBehaviour':

 Divide( Load( 'MyLoad:MyNode' ).Pl ) , LoadBehaviour( 'MyLoadBehaviour' ).Growth )

 Divide( Load( 'MyLoad:MyNode' ).Ql ) , LoadBehaviour( 'MyLoadBehaviour' ).Growth )