示例#1
0
        /// <summary>
        /// Instantiates a new <see cref="OpenDSSSimulator"/>.
        /// </summary>
        public OpenDSSSimulator()
        {
            ResultAccuracy = 1e-7;

            //Start DSS engine, throw exception if it didn't work.
            dss = new OpenDSSengine.DSS();
            if (!dss.Start(0))
            {
                throw new Exception("Could not start OpenDSS Engine.");
            }
        }
示例#2
0
        /// <summary>
        /// Instantiates a new <see cref="OpenDSSSimulator"/>.
        /// </summary>
        public OpenDSSSimulator()
        {
            ResultAccuracy = 1e-7;

            //Start DSS engine, throw exception if it didn't work.
            dss = new OpenDSSengine.DSS();
            if (!dss.Start(0))
            {
                throw new Exception("Could not start OpenDSS Engine.");
            }
        }