GithubHelp home page GithubHelp logo

afod22 / ngspice.jl Goto Github PK

View Code? Open in Web Editor NEW

This project forked from juliacomputing/ngspice.jl

0.0 0.0 0.0 105 KB

This package wraps NgSpice for Julia users

License: MIT License

Julia 100.00%

ngspice.jl's Introduction

NgSpice

Stable Dev Build Status Coverage

This repository provides a Julia wrapper for NgSpice library.

Usage:

In a Julia REPL,

] add https://github.com/JuliaComputing/NgSpice.jl
using NgSpice

To start an an interactive mode,

using Plots
NgSpice.interactive()
  • Hit ~ for initializing the NgSpice

Run the Ngspice simulations commands!
For example:

source /filepath/netlist # without quotes
display                  # prints all vectors and constants
plot vector1 vector2     # plots the real part of vector by default

Note: It is not necessary for .cir to be placed in bin folder as long as full path is specified.

Additional to usual plot parameters, different modes of retrieval can be set with:
plot -x space seperated vectorlist
where x takes following modes:

Modes Description
-r, --real Real part of vector
-i, --imaginary Imaginary part of vector
-m, --magnitude Magnitude of vector
-p, --phase Phase of vector

For a non-interactive and more Julia-like experience checkout this tutorial.

Additionally, to simulate a complex_circuit.sp file with multiple plotting statements, run

using NgSpice
using Plots
source_sp("path/to/the/complex_circuit.sp")

ngspice.jl's People

Contributors

ven-k avatar glenhertz avatar github-actions[bot] avatar keno avatar martinuzzifrancesco avatar viralbshah avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.