Menu

7,6,4,38 Beta build posted: Enhanced @var capability

The variable facility (@var) in OpenDSS has been enhanced. You can now use variables to define element names and bus connections.

This allows you to define a generic description of an subnetwork that might be used repeatedly and use the var facility to set the actual values. As an example, see:

https://sourceforge.net/p/electricdss/code/HEAD/tree/trunk/Distrib/Examples/Scripts/ZigZagTransformerWithVar.DSS

This example is a variable-ized form of a Zig-Zag definition. Here is an example script could use it:

~~~~
Clear
New circuit.Test

// Test ZZ transformer with vars

New Transformer.TR1 conns=[delta wye] kvs=[115 28.4] kvas=[10000 10000] buses=[sourcebus myZZbus]

var @ZZ=MyZZName
var @B1=MyZZBus
var @kV=16.4
var @kva=920.4
var @ZZXHL=0.468
var @ZZNR=23.8
var @ZZNX=0

Redirect ZigZagTransformerWithVar.DSS ! generic definition of a zig-zag

solve

// add a SLG Fault
New Fault.F1 phases=1 Bus1=MyZZBus.1

Solve

show V LN Nodes
Show curr elements

~~~~~

Posted by Roger Dugan 2015-01-26

Log in to post a comment.