Free/Open Source Electricity/Circuit software

I’m curious if there are any softwares out there which allow the user to draw up electrical schematics and run simulations on them (ideally open source).

I’m getting into electricity some (as it relates to computer logic) and I think it would be neat to design some mini-computers.