Beispiel #1
0
        /// <summary>
        /// Extract
        /// </summary>
        /// <param name="data"></param>
        /// <returns></returns>
        public override double Extract(SimulationData data)
        {
            switch (data.Circuit.State.Domain)
            {
            case CircuitState.DomainTypes.Frequency:
            case CircuitState.DomainTypes.Laplace:
                return(data.GetDb(Node, Reference));

            default:
                return(20.0 * Math.Log10(data.GetVoltage(Node, Reference)));
            }
        }