{"id":13728928,"url":"https://github.com/SpiceSharp/SpiceSharp","last_synced_at":"2025-05-08T01:30:30.932Z","repository":{"id":49149037,"uuid":"93537226","full_name":"SpiceSharp/SpiceSharp","owner":"SpiceSharp","description":"Spice# is a cross-platform electronic circuit simulator based on Berkeley Spice - the mother of commercial industry-standard circuit simulators.","archived":false,"fork":false,"pushed_at":"2024-12-04T10:26:49.000Z","size":15921,"stargazers_count":264,"open_issues_count":5,"forks_count":51,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-05-07T06:19:34.835Z","etag":null,"topics":["berkeley-spice","circuit","cross-platform","csharp","electronics","net-core","net-framework","net-standard","nuget","simulator","simulators","spice"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SpiceSharp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-06-06T15:59:45.000Z","updated_at":"2025-05-05T13:34:58.000Z","dependencies_parsed_at":"2022-08-25T16:02:20.159Z","dependency_job_id":"35d7f31f-da96-47ee-bbbc-36f8fec2f9fd","html_url":"https://github.com/SpiceSharp/SpiceSharp","commit_stats":{"total_commits":1062,"total_committers":3,"mean_commits":354.0,"dds":0.04519774011299438,"last_synced_commit":"dace7bddaadf7ac22bc32abd2dc61b4d28afb13d"},"previous_names":["svenboulanger/spicesharp"],"tags_count":31,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpiceSharp%2FSpiceSharp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpiceSharp%2FSpiceSharp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpiceSharp%2FSpiceSharp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SpiceSharp%2FSpiceSharp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SpiceSharp","download_url":"https://codeload.github.com/SpiceSharp/SpiceSharp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252981362,"owners_count":21835415,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["berkeley-spice","circuit","cross-platform","csharp","electronics","net-core","net-framework","net-standard","nuget","simulator","simulators","spice"],"created_at":"2024-08-03T02:00:52.406Z","updated_at":"2025-05-08T01:30:25.909Z","avatar_url":"https://github.com/SpiceSharp.png","language":"C#","readme":"# \u003cimg src=\"https://spicesharp.github.io/SpiceSharp/api/images/logo_full.svg\" width=\"45px\" /\u003e Spice# (SpiceSharp)\n\nSpice# is a Spice circuit simulator written in C#. The framework is made to be compatible with the original Berkeley Spice simulator, but bugs have been squashed and features can and will probably will be added.\n\n## Documentation\n\nYou can find documentation at [https://spicesharp.github.io/SpiceSharp/](https://spicesharp.github.io/SpiceSharp/). There you can find a guide for **getting started**, as well as more information about:\n\n- Supported types of analysis.\n- The general structure of Spice#.\n- A tutorial on how to implement your own *custom* model equations (prerequisite knowledge needed).\n- An example of changing parameters during simulation.\n- etc.\n\n## Quickstart\n\nSimulating a circuit is relatively straightforward. For example:\n\n```csharp\nusing System;\nusing SpiceSharp;\nusing SpiceSharp.Components;\nusing SpiceSharp.Simulations;\n\nnamespace SpiceSimulation\n{\n    class Program\n    {\n        static void Main(string[] args)\n        {\n            // Build the circuit\n            var ckt = new Circuit(\n                new VoltageSource(\"V1\", \"in\", \"0\", 0.0),\n                new Resistor(\"R1\", \"in\", \"out\", 1.0e3),\n                new Resistor(\"R2\", \"out\", \"0\", 2.0e3)\n                );\n\n            // Create a DC sweep and register to the event for exporting simulation data\n            var dc = new DC(\"dc\", \"V1\", 0.0, 5.0, 0.001);\n\n            // Run the simulation\n            foreach (int exportType in dc.Run(ckt))\n            {\n                Console.WriteLine(dc.GetVoltage(\"out\"))\n            }\n        }\n    }\n}\n```\n\nMost standard Spice-components are available, and building your own custom components is also possible!\n\n## Installation\n\nSpice# is available as a **NuGet Package**.\n\n[![NuGet Downloads](https://img.shields.io/nuget/dt/SpiceSharp?label=Spice%23)](https://www.nuget.org/packages/SpiceSharp/)\n\n## Current build status\n\n|    | Status |\n|:---|-------:|\n| Windows | ![Windows Tests](https://github.com/SpiceSharp/SpiceSharp/workflows/Windows%20Tests/badge.svg) |\n| MacOS | ![MacOS Tests](https://github.com/SpiceSharp/SpiceSharp/workflows/MacOS%20Tests/badge.svg) |\n| Linux/Ubuntu | ![Linux Tests](https://github.com/SpiceSharp/SpiceSharp/workflows/Linux%20Tests/badge.svg) |\n\n## Aim of Spice#?\n\nSpice# aims to be:\n\n- A **Library** rather than a standalone piece of software like most simulators currently are.\n- **Accessible** for both the amateur and advanced electronics enthusiast (and perhaps professional designer). In order to decrease the hurdle, a [Spice# parser](https://github.com/SpiceSharp/SpiceSharpParser) is also being developed. This also includes it being cross-platform (.NET and Mono).\n- **Compatible** with the *original Spice 3f5* software (without the bugs). There's a reason why this has become the industry standard.\n- **Customizable** with custom simulations, custom models, integration methods, solver, etc.\n- **Performance**, but still completely managed code. Nobody wants a slow simulator.\n\n## What Spice# is not\n\nHaving been implemented in the .NET framework does have some limitations:\n\n- Unmanaged C/C++ code can often be optimized more than managed code.\n- Spice# uses *Reflection* to give you a better experience. However if you decide to use reflection, you may feel some performance hit.\n","funding_links":[],"categories":["C#"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSpiceSharp%2FSpiceSharp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FSpiceSharp%2FSpiceSharp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSpiceSharp%2FSpiceSharp/lists"}