Skip to main content

No project description provided

Project description

cimulate

The cimulate package provides a framework for modeling electrical components and calculating their impedance. Components can be combined in series and parallel, with easy access to impedance calculations over a range of frequencies.

Example

from cimulate import Resistor, Capacitor, Inductor
import numpy as np

# Create components
r = Resistor(100)  # 100 Ohms
c = Capacitor(1e-6)  # 1 µF
l = Inductor(1e-3)  # 1 mH

# Combine components in series (+) and parallel (/)
circuit = r + c / l

# You can calculate the impedance (remember to use angular frequency)
frequency = np.linspace(0.001, 1000, 1000)  # 1 mHz to 1 kHz
omega = 2 * np.pi * frequency
impedance = circuit.impedance(omega)

# You can even simulate voltages with a driving current
time = np.linspace(0, 60, 1000)
current = time / 6
voltage = circuit.voltage(current)

Roadmap

  • Automatic fitting of all circuit parameters
  • Voltage simulation given a driving current, and vice versa
  • More circuit elements

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cimulate-0.1.1.tar.gz (40.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cimulate-0.1.1-py3-none-any.whl (28.9 kB view details)

Uploaded Python 3

File details

Details for the file cimulate-0.1.1.tar.gz.

File metadata

  • Download URL: cimulate-0.1.1.tar.gz
  • Upload date:
  • Size: 40.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.8

File hashes

Hashes for cimulate-0.1.1.tar.gz
Algorithm Hash digest
SHA256 84a82219ea48d37b375cabadee7e990c08628af124d8053d10c699c2c30238ed
MD5 b328e3b5daa6167227ce39cb5c2f1ef9
BLAKE2b-256 1877bda0e2447f2d284b1ae5752d3039db20fd4715c8b462456a93f4c3bc3003

See more details on using hashes here.

File details

Details for the file cimulate-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: cimulate-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 28.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.8

File hashes

Hashes for cimulate-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 79bfe2c753fef73f73901dc46b06510c4a8036b2b30338be55014bc60045af73
MD5 7fe7967fb40f49197a3d091918779c10
BLAKE2b-256 501181b2b098bd5247a4d64a732c6fa4e1cee742a95a68a60c0dc7d665dce2e3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page