Skip to content

Commit 9309ffe

Browse files
committed
Updates for v0.13.3
- Use DSS C-API 0.13.3 - Add DSSCompatFlags.SaveCalcVoltageBases - Port the comment about WdgCurrents/Voltages and open terminals
1 parent d4029b2 commit 9309ffe

File tree

4 files changed

+24
-7
lines changed

4 files changed

+24
-7
lines changed

dss_sharp.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<NoWarn>1591</NoWarn>
1010
<PlatformTarget>x64</PlatformTarget>
1111
<Authors>Paulo Meira, DSS-Extensions contributors</Authors>
12-
<PackageVersion>0.13.2</PackageVersion>
12+
<PackageVersion>0.13.3</PackageVersion>
1313
<Title>DSS Sharp</Title>
1414
<Description>
1515
DSS Sharp is a C# wrapper to the native DSS C-API library, a multiplatform multiarchitecture implementation of EPRI's OpenDSS engine.
@@ -22,8 +22,8 @@
2222
</Description>
2323
<PackageId>dss_sharp</PackageId>
2424
<license>BSD-3-Clause AND LGPL</license>
25-
<AssemblyVersion>0.13.2.0</AssemblyVersion>
26-
<FileVersion>0.13.2.0</FileVersion>
25+
<AssemblyVersion>0.13.3.0</AssemblyVersion>
26+
<FileVersion>0.13.3.0</FileVersion>
2727
<PackageProjectUrl>https://github.com/dss-extensions/dss_sharp/</PackageProjectUrl>
2828
<PackageTags>dss;opendss;linux;windows;macos;dss-extensions;powerflow;distribution;electric;simulator</PackageTags>
2929
<PackageIcon>docs/images/dss_sharp.png</PackageIcon>

examples/WinFormsAppSample/WinFormsAppSample.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
</PropertyGroup>
1010

1111
<ItemGroup>
12-
<PackageReference Include="dss_sharp" Version="0.13.2" />
12+
<PackageReference Include="dss_sharp" Version="0.13.3" />
1313
<PackageReference Include="ScottPlot.WinForms" Version="4.1.61" />
1414
</ItemGroup>
1515

scripts/download_native_libs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
if [ -z ${DSS_CAPI_TAG+x} ]; then
2-
DSS_CAPI_TAG=0.13.2
2+
DSS_CAPI_TAG=0.13.3
33
fi
44

55
rm -rf runtimes messages

src/dss_sharp.cs

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -295,9 +295,17 @@ public enum DSSCompatFlags {
295295

296296
/// <summary>
297297
/// Toggle some InvControl behavior introduced in OpenDSS 9.6.1.1. It could be a regression
298-
/// but needs further investigation, so we added this flag in the time being.
298+
/// but needs further investigation, so we added this flag in the time being.
299299
/// </summary>
300-
InvControl9611 = 0x00000004
300+
InvControl9611 = 0x00000004,
301+
302+
/// <summary>
303+
/// When using "save circuit", the official OpenDSS always includes the "CalcVoltageBases" command in the
304+
/// saved script. We found that it is not always a good idea, so we removed the command (leaving it commented).
305+
/// Use this flag to enable the command in the saved script.
306+
/// </summary>
307+
SaveCalcVoltageBases = 0x00000008
308+
301309
};
302310

303311
public class Bus : ContextState
@@ -20604,6 +20612,9 @@ public double kVA
2060420612

2060520613
/// <summary>
2060620614
/// Complex array of voltages for active winding
20615+
///
20616+
/// WARNING: If the transformer has open terminal(s), results may be wrong, i.e. avoid using this
20617+
/// in those situations. For more information, see https://github.com/dss-extensions/dss-extensions/issues/24
2060720618
/// </summary>
2060820619
public double[] WdgVoltages
2060920620
{
@@ -20623,6 +20634,9 @@ public double[] WdgVoltages
2062320634

2062420635
/// <summary>
2062520636
/// All Winding currents (ph1, wdg1, wdg2,... ph2, wdg1, wdg2 ...)
20637+
///
20638+
/// WARNING: If the transformer has open terminal(s), results may be wrong, i.e. avoid using this
20639+
/// in those situations. For more information, see https://github.com/dss-extensions/dss-extensions/issues/24
2062620640
/// </summary>
2062720641
public double[] WdgCurrents
2062820642
{
@@ -20642,6 +20656,9 @@ public double[] WdgCurrents
2064220656

2064320657
/// <summary>
2064420658
/// All winding currents in CSV string form like the WdgCurrents property
20659+
///
20660+
/// WARNING: If the transformer has open terminal(s), results may be wrong, i.e. avoid using this
20661+
/// in those situations. For more information, see https://github.com/dss-extensions/dss-extensions/issues/24
2064520662
/// </summary>
2064620663
public string strWdgCurrents
2064720664
{

0 commit comments

Comments
 (0)