/// <summary>
        /// Create states
        /// </summary>
        /// <param name="states">Pool of all states</param>
        public override void CreateStates(StatePool states)
        {
            if (states == null)
            {
                throw new ArgumentNullException(nameof(states));
            }

            // We just need a history without integration here
            StateChargeBe             = states.CreateDerivative();
            StateChargeBc             = states.CreateDerivative();
            StateChargeCs             = states.CreateDerivative();
            StateChargeBx             = states.CreateDerivative();
            StateExcessPhaseCurrentBc = states.CreateHistory();
        }
        /// <summary>
        /// Create states
        /// </summary>
        /// <param name="states">States</param>
        public override void CreateStates(StatePool states)
        {
            if (states == null)
            {
                throw new ArgumentNullException(nameof(states));
            }

            VoltageBs = states.CreateHistory();
            VoltageGs = states.CreateHistory();
            VoltageDs = states.CreateHistory();
            CapGs     = states.CreateHistory();
            CapGd     = states.CreateHistory();
            CapGb     = states.CreateHistory();
            ChargeGs  = states.CreateDerivative();
            ChargeGd  = states.CreateDerivative();
            ChargeGb  = states.CreateDerivative();
            ChargeBd  = states.CreateDerivative();
            ChargeBs  = states.CreateDerivative();
        }
Exemple #3
0
        /// <summary>
        /// Create states
        /// </summary>
        /// <param name="states">States</param>
        public override void CreateStates(StatePool states)
        {
            if (states == null)
            {
                throw new ArgumentNullException(nameof(states));
            }

            _vgs   = states.CreateHistory();
            _vds   = states.CreateHistory();
            _vbs   = states.CreateHistory();
            _capgs = states.CreateHistory();
            _capgd = states.CreateHistory();
            _capgb = states.CreateHistory();
            _qgs   = states.CreateDerivative();
            _qgd   = states.CreateDerivative();
            _qgb   = states.CreateDerivative();
            _qbd   = states.CreateDerivative();
            _qbs   = states.CreateDerivative();
        }