معرفی شرکت ها


electricalsim-0.0.6.8


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

Graphical user interface for simulating electrical networks based on pandapower library
ویژگی مقدار
سیستم عامل -
نام فایل electricalsim-0.0.6.8
نام electricalsim
نسخه کتابخانه 0.0.6.8
نگهدارنده []
ایمیل نگهدارنده []
نویسنده -
ایمیل نویسنده "PhD Ariel S. Loyarte" <aloyarte@frsf.utn.edu.ar>
آدرس صفحه اصلی -
آدرس اینترنتی https://pypi.org/project/electricalsim/
مجوز -
# Electrical Grid Simulator (EGS) The *Electrical Grid Simulator* (abbreviated as **EGS**) is a graphical user interface application for simulating electrical networks based on the [pandapower](https://www.pandapower.org/) library. The main objective is to allow the creation of mathematical models for steady-state electrical grids from a user-friendly interface. EGS is developed at the *National Technological University, Santa Fe Regional Faculty* ([UTN-FRSF](https://www.frsf.utn.edu.ar/)), at the *Center for Research and Development in Electrical Engineering and Energy Systems* ([CIESE](https://www.frsf.utn.edu.ar/investigacion-y-vinculacion/investigacion-y-vinculacion/centros-y-grupos/ciese)), Argentina. > __Warning__ <br> > <span style="color:red"> <b>This application is considered in alpha stage. So you can expect incomplete sections and some (or many) bugs. New changes may cause incompatibilities with older versions (old files that no longer work with newer versions of the program).</b> </span> ## Goals - Providing a minimalistic, modern and good-looking interface. - Multiplatform: GNU/Linux, MS Windows and Apple MacOS (not tested on MacOS). - Providing an extension system to expand its capabilities **(WIP, not available yet)**. ## How it is built EGS is built in Python and entirely from open source and free software. The main core components are: * The [Qt](https://www.qt.io/) toolkit with [PySide2](https://wiki.qt.io/Qt_for_Python) and [Qt.py](https://github.com/mottosso/Qt.py) bindings for the UI. * The [NodeGraphQt](https://github.com/jchanvfx/NodeGraphQt) library for building the graph (schematic network graphic). * The [PyQtDarkTheme](https://github.com/5yutan5/PyQtDarkTheme) package for applying modern themes (light and dark themes). * The [QtAwesome](https://github.com/spyder-ide/qtawesome) package for modern flat monochromatic icons. * The [matplotlib](https://matplotlib.org/) package for plotting calculation results. * Other scientific Python packages, mainly [NumPy](https://numpy.org/) and [pandas](https://pandas.pydata.org/). EGS is implemented as a Python package uploaded to the [PyPI repository](https://pypi.org/). ```pandapower``` and other packages listed above are set as dependencies. > __Note__ <br> > The ```NodeGraphQt``` is not available in PyPI. Hence, a copy of it is included within the EGS package. ## How it works Every time the user inserts and connects an element to the grid, the application replicates the addition in a ```pandapower``` network. Thus, the parameters of a component are updated in the ```pandapower``` network when they are modified from the graphical interface. The network configured from the interface is designated as **Graph**, while the corresponding ```pandapower``` model is denoted as **Data model**. This synchronization works in the **Graph -> Data model** direction, i.e. changes in the **Graph** are automatically registered into the **Data model**, and not the other way around. However, the contents of the **Data model** can be consulted at any time. According to the structure proposed by the ```pandapower``` library, the **Data model** consists of a set of tables ([pandas DataFrame type objects](https://en.wikipedia.org/wiki/Pandas_(software))). Each table (**DataFrame**) contains the parameters of a certain type of component. The types of components supported by ```pandapower``` are those indicated in [this documentation link](https://pandapower.readthedocs.io/en/latest/elements.html). At this moment, most of these components are also supported by EGS. The EGS main window is organized as follows: * The main work area can display either the **Graph** or the **Data model**. The **Data model** is shown as a set of tables arranged in tabs. For more information about this data (including the meaning of column names), see the [pandapower documentation](https://pandapower.readthedocs.io/). * The side toolbar lists the supported components. An element is added to the **Graph** by clicking on the corresponding icon. In some cases, an icon may represent a category (e.g., loads). In such cases, a dialog allows you to choose the required type within that category. For example, in the loads category, six different types are available. Switches work in a different way. According to ```pandapower```, switches can be added between two buses or between a bus and a line (AC line) or transformer. Thus, if you want to do the first, just select two buses and then click the switch button. On the contrary, if you want to add a switch next to a line (or transformer), select only the corresponding element and then click the switch button. In this case, a new dialog will allow you to select the bus. * The upper toolbar is divided into two parts. The left part contains the file functions and the calculation options. Here it is possible to open/save files, export only the **Data model** to JSON, or simply delete the network and start a new one. The *"play"* button opens the dialog for a power flow calculation. Meanwhile, the right side gives access to the basic network configuration (name, base system power and rated frequency) and to the application settings dialog. * The status bar at the bottom will notify when the grid has been modified and has not been saved. * The menu bar includes the same options as the toolbars. ## Simulations and calculations With EGS you can build and set up the model of an electrical grid in a graphical way. The application also allows you to perform *AC balanced power flow* calculations (other calculations supported by ```pandapower``` may be added in the future). For other types of simulations and calculations, you can proceed according to two alternatives: 1. Export the **Data model** and the last power flow results to a JSON format file ready to be imported from a Python script through ```pandapower```. Then, any calculation or processing can be done from the script. The export is done from the graphical interface, while the subsequent import is done as indicated [in the pandapower documentation](https://pandapower.readthedocs.io/en/latest/file_io.html#pandapower.from_json), using the ```pandapower.from_json()``` function. 2. Incorporate the required calculation functionality from an extension developed in Python. This way, the calculation is executed from within EGS. **Note that this feature is one of the main goals of EGS, but is not yet available in this early stage of development.** Models generated by EGS can be saved in a file containing both the **Graph** and the **Data model** (**.egs** file extension). You can then reopen the file whenever you need it and retrieve even the results of the last power flow run. ## Running an AC balanced power flow In order to run a power flow, click on the *"play"* button at the upper toolbar. A new dialog gets opened. The first tab allows you to configure the parameters of the numerical method (solver) and other model settings. Then, execute the calculation using the ***Run power flow*** button. The sencond tab shows the results in the ```pandapower``` way (tables), while the third tab includes some plots: * Voltage magnitudes. * Voltage box plot. * Voltage magnitudes at load buses. * AC line loading (percentage rate). * AC line voltages. * Two- and three-winding transformer loading. * Reactive power on PV buses (voltage controled generators). In bar voltage charts, the magnitud level is distinguished with different colors to emphasize acceptable values, under-voltages and over-voltages. Line and transformer overloads are also highlighted in red. In addition, the head of the plot usually includes some statistical results. After closing the power flow dialog and returning to the *graph view*, you can place the cursor on a particular node and get a tooltip with the main results. For example, an AC line shows the loading percentage, and the real and reactive power transmitted (at the *"from bus"* and *"to bus"*). Most of the nodes show this kind of information. ## Application settings The application settings are saved in a ```config.ini``` file outside the installation directory. This way, your settings are maintained after updating the program. However, you can change them from a dialog window. Settings are classified into four categories: * **General:** Includes the theme, the background grid visibility, the connection style and a default working directory. * **Network:** Defaults grid name, power system base and rated frequency. * **Power flow**: Mainly the default settings for the power flow solver. * **Default component parameters:** The defaults settings for every node type. ## Shortcuts | Shortcut | Description | | -------- | ----------- | | ```Ctrl+N``` | Create a new session | | ```Ctrl+O``` | Open session from a **.egs** file | | ```Ctrl+S``` | Save session to a **.egs** file | | ```Ctrl+Shift+S``` | Save session as... | | ```Ctrl+E``` | Export **Data model** to a JSON file | | ```Ctrl+Z``` | Undo | | ```Ctrl+Shift+Z``` | Redo | | ```Del``` | Delete selected components in the **Graph** | | ```Ctrl+A``` | Select all the nodes in the **Graph** | | ```Ctrl+Shift+A``` | Unselect what is selected | | ```D``` | Disable the selected nodes | | ```R``` | Flip the selected nodes (works only with nodes that have only one port) | | ```Ctrl++``` | Zoom in | | ```Ctrl+-``` | Zoom out | | ```=``` | Reset zoom | | ```F``` | Adjust the zoom level according to the selection | | ```V``` | Change selected nodes to the vertical layout | | ```H``` | Change selected nodes to the horizontal layout | > __Note__ <br> > * ```Undo``` and ```Redo``` only work for simple actions. > * Pressing ```F``` without selected nodes will adjust the zoom level to show all the grid. > * Pressing ```D``` will change the bool value for the ```in_service``` parameter in the **Data model**. This works for every component, except for switches. > * For selecting nodes in the **Graph** you can use the left mouse button (```LMB```). Just click with the ```LMB```, hold and drag to mark the selection area. > * Clicking with the ```LMB``` on the background will unselect all. > * You can use ```Shift+LMB``` on a node in order to add it to the selection. > * The mouse scroll wheel can be used to zoom in and out. > * Use the medium mouse button (```MMB```) to scroll over the **Graph**. Just click with the ```MMB```, hold and move. If you prefer to use the mouse instead of keyboard shortcuts, just right click on the **Graph** and access a context menu that complements the upper toolbar and the menu bar. # Installation EGS is installed using ```pip```, the official Python package manager. On GNU/Linux and MacOS execute the following order in a terminal: ```bash pip install electricalsim ``` On MS Windows you may prefer: ```bash python -m pip install electricalsim ``` ## Upgrading EGS In order to upgrade EGS via ```pip```, execute the following in a terminal: ```bash pip install electricalsim -U ``` On MS Windows you may prefer: ```bash python -m pip install electricalsim -U ``` ## Running EGS Once installed, you can run it with the command: ```bash egs ``` If you prefer to run the program in a more practical way, just execute this command only once: ```bash egs-create-shortcut ``` This will add a shortcut launcher to your desktop and to your application menu. Note that this launcher will not work if you are installing the application into a Python virtual environment. ## Uninstalling If you want to remove the application, execute: ```bash pip uninstall electricalsim ``` On MS Windows: ```bash python -m pip uninstall electricalsim ``` Note that shortcuts added with the ```egs-create-shortcut``` command are not removed. So you must delete them manually. # License This project uses the [MIT license](https://github.com/aloytag/electrical-grid-simulator/blob/main/LICENSE).


نیازمندی

مقدار نام
- lightsim2grid>=0.7.1
- matplotlib>=3.6.0
- numba>=0.56.4
- pandapower>=2.11.1
- platformdirs>=3.0.0
- pynput>=1.7.6
- pyqtdarktheme>=2.1.0
- pyshortcuts>=1.8.3
- pyside2>=5.15
- qt-py>=1.3.7
- qtawesome>=1.2.2
- qtpy>=2.3.0


زبان مورد نیاز

مقدار نام
>=3.8 Python


نحوه نصب


نصب پکیج whl electricalsim-0.0.6.8:

    pip install electricalsim-0.0.6.8.whl


نصب پکیج tar.gz electricalsim-0.0.6.8:

    pip install electricalsim-0.0.6.8.tar.gz