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 ecm 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.0.tar.gz
(40.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
cimulate-0.1.0-py3-none-any.whl
(28.8 kB
view details)
File details
Details for the file cimulate-0.1.0.tar.gz.
File metadata
- Download URL: cimulate-0.1.0.tar.gz
- Upload date:
- Size: 40.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d62208b277607e247053df357020b1f8e84e48180cbed7f08714ea1b4c5c3115
|
|
| MD5 |
76420acf47b36ebe4823849f8a71265a
|
|
| BLAKE2b-256 |
4b88ccee055d88192aa4c0910add5f71823798f1df2d9af1f1c110b8b846f200
|
File details
Details for the file cimulate-0.1.0-py3-none-any.whl.
File metadata
- Download URL: cimulate-0.1.0-py3-none-any.whl
- Upload date:
- Size: 28.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4139b48fe440e00ed8d0ce5a45e33ee5c96174dfe29cfded72605ffb74f8668d
|
|
| MD5 |
ca60b8bf07cf1f1ba69deb43d0e02d76
|
|
| BLAKE2b-256 |
20bc9b574ec550a5922e30580a689d8805ace07dc0e4ed5a9280dd29073bb3d7
|