-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from geddy11/update
chore: transfer files from temporary project
- Loading branch information
Showing
47 changed files
with
11,739 additions
and
341 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,2 @@ | ||
# Changelog | ||
|
||
<!--next-version-placeholder--> | ||
|
||
## v0.1.0 (29/02/2024) | ||
|
||
- First release of `sysloss`! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
cff-version: 1.2.0 | ||
title: sysLoss | ||
message: >- | ||
If you use this software, please cite it using the | ||
metadata from this file. | ||
type: software | ||
authors: | ||
- given-names: Geir | ||
family-names: Drange | ||
affiliation: Inventas AS | ||
orcid: 'https://orcid.org/0009-0009-6795-8583' | ||
repository-code: 'https://github.com/geddy11/sysloss' | ||
url: 'https://github.com/geddy11/sysloss' | ||
abstract: sysLoss is a tool for analyzing system power and losses. | ||
keywords: | ||
- system | ||
- power | ||
- loss | ||
license: MIT | ||
version: 1.0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# Welcome to sysLoss | ||
*sysLoss* is a tool for analyzing system power and losses. From the smallest IoT sensor to large industrial installations. The tool is efficient and easy to use, the analysis result provides a detailed report on voltages, currents, power and efficiency for every component defined in the system. Output format is Pandas DataFrame: Create charts, plots and export to Excel and other formats. | ||
|
||
## Installation | ||
To get started with *sysLoss*, install the python package from PyPI with: | ||
```bash | ||
$ pip install sysloss | ||
``` | ||
Upgrade to the latest release with: | ||
```bash | ||
$ pip install --upgrade sysloss | ||
``` | ||
|
||
## First system model | ||
A simple, battery-powered Bluetooth sensor can be defined as simple as this: | ||
```python | ||
from sysloss.components import * | ||
from sysloss.system import System | ||
|
||
bts = System("Bluetooth sensor", Source("CR2032", vo=3.0, rs=10)) | ||
bts.add_comp("CR2032", comp=Converter("Buck 1.8V", vo=1.8, eff=0.87)) | ||
bts.add_comp("Buck 1.8V", comp=PLoad("MCU", pwr=13e-3)) | ||
bts.add_comp("CR2032", comp=Converter("Boost 5V", vo=5.0, eff=0.82)) | ||
bts.add_comp("Boost 5V", comp=RLoss("RC filter", rs=6.8)) | ||
bts.add_comp("RC filter", comp=ILoad("Sensor", ii=6e-3)) | ||
bts.tree() | ||
``` | ||
``` | ||
Bluetooth sensor | ||
└── CR2032 | ||
├── Boost 5V | ||
│ └── RC filter | ||
│ └── Sensor | ||
└── Buck 1.8V | ||
└── MCU | ||
``` | ||
```python | ||
bts.solve() | ||
``` | ||
![result](bts.png) | ||
|
||
## Next step | ||
The best way to learn *sysLoss* is to explore the tutorials section. The tutorials are Jupyter Notebooks that can also be found in the GitHub repository under docs/nb. | ||
|
||
```{tableofcontents} | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.