DC/AC circuits simulation