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.2.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.2-py3-none-any.whl (28.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cimulate-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 4729474a34e4c4bc44a6c72b8a7dfe7da3501ae2202ec02629e249668d231e75
MD5 621b7ec3f86ef86237fa2e51c4acc18e
BLAKE2b-256 c61c2a84704a44f5170f7024aaa20a7f50301a18c6c7bf59fa37272c270bbbf9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cimulate-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 24feef677f45788341a806a8f642bbc4d3436265908f519018ef4c504a54c324
MD5 9835727b338e22462ff30820cf8d6697
BLAKE2b-256 348ece8f1eab5d80022853f6bd72e8e37a25232b3a2aab843be3574a588c505f

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