A simple Analog Circuit Simulator using C++.
Install C++ and CMake
sudo apt update
sudo apt install build-essential cmakeInstall gdb for debugging
sudo apt update
sudo apt install gdbVerify installation
g++ --version
cmake --version
gdb --versionInstall Eigen for solving matrices
sudo apt install libeigen3-devBuild and Run the Project
cmake -S . -B build
cmake --build build
./build/simulatorThis simulator is tested againest NGSpice. The results were minimal (on the order of 1e-5 or better). To test the simulator, run the simulator using the following command on the large_example.net netlist file
sh run.shThen, install ngspice library using the following command:
sudo apt install ngspiceThen run ngspice simulator on the same file, then compare the outputs.
Note that: For NGSpice, you need to add the following commands to the end of the file:
.control
op
print all
.endc
.end