Skip to main content

Permanent magnet temperature prediction

Project description

PMSM_PM_Temp_Predict

PMSM_PM_Temp_Predict is a project aimed at predicting the temperature of the permanent magnet in a Permanent Magnet Synchronous Motor (PMSM). The temperature of the permanent magnet is an important parameter that affects the performance and reliability of the motor

Description

This project utilizes machine learning techniques to develop a predictive model for estimating the temperature of the permanent magnet in a PMSM. The model takes into account various input parameters such as motor operating conditions, electrical voltages and currents, and environmental factors to make accurate temperature predictions. More specifically: the Random Forest Regressor is used for this project.

Features

  • API integration: The project provides an API that exposes the trained model, allowing other applications or systems to make temperature predictions programmatically
  • Feature scaling: input data is normalized to meet regression model requirements
  • Single sample processing: API contains the function to predict single temperature value based on current motor state
  • Data frame processing: API allows you to process pandas DataFrame and get results for a huge amount of samples with one function call.

Getting Started

To get started with the PMSM_PM_Temp_Predict project, follow these simple steps:

  1. Install package with pip install pmsm-pm-temp-predict This command will install this python package and all required dependencies.
  2. Integrate the trained model into your application using the provided API
  3. Start making temperature predictions using the API and your collected data

For detailed instructions and usage examples, please refer to the documentation included in the repository.

Contributing

Contributions to the PMSM_PM_Temp_Predict project are welcome. If you encounter any issues or have suggestions for improvements, please open an issue in the repository or submit a pull request with your proposed changes.

API

Two functions are provided by API of this package:

Single sample processing

temp_predict(u_q, u_d, i_d, i_q, coolant, stator_winding)

parameter type description
u_q float q-component of the motor voltage in V
u_d float d-component of motor voltage in V
i_d float q-component of the motor current in A
i_q float d-component of the motor current in A
coolant float coolant temperature in В°C
stator_winding float stator winding temperature in В°C

return value is a single float value which represents predicted temperature of the motor's permanent magnet.

Code example

import pmsm_pm_temp_predict as pms
print("Predicted permanent magnet temperature is: ", temp_predict(-0.450682,
                                                                   -0.350055,
                                                                   0.004419,
                                                                   0.000328,
                                                                   18.805172,
                                                                   19.086670))
Output: Predicted permanent magnet temperature is: 24.849657903061008

DataFrame processing

temp_predict_df(df)

parameter type description
df pandas DataFrame a pandas DataFrame object containing columns similar to the parameters of the temp_predict function

return value is an array of predicted temperatures of the motor's permanent magnet.

Code example

import pmsm_pm_temp_predict as pms
print("Predicted permanent magnet temperature is: ", temp_predict(-0.450682,
                                                                   -0.350055,
                                                                   0.004419,
                                                                   0.000328,
                                                                   18.805172,
                                                                   19.086670))

print("Predicted permanent magnet temperature is: ", temp_predict_df(pd.DataFrame({'coolant': [18.805172], 
                                                                                   'stator_winding': [19.086670],
                                                                                   'u_q': [-0.450682],
                                                                                   'u_d': [-0.350055],
                                                                                   'i_d': [0.004419],
                                                                                   'i_q': [0.000328]})))
Output: Predicted permanent magnet temperature is: [24.8496579]

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

pmsm_pm_temp_predict-0.0.6.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

pmsm_pm_temp_predict-0.0.6-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file pmsm_pm_temp_predict-0.0.6.tar.gz.

File metadata

  • Download URL: pmsm_pm_temp_predict-0.0.6.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.13

File hashes

Hashes for pmsm_pm_temp_predict-0.0.6.tar.gz
Algorithm Hash digest
SHA256 ace0039459e4df7997af9067718cad08b60252a8e2b480580c7bfade9d33a9e7
MD5 5567c950f62ef50ae2b3bce70e900c9c
BLAKE2b-256 df4f393f64d65c8feb5fd124f988b37a413d7eb929d2213e1a6f0a6d73a7d33e

See more details on using hashes here.

File details

Details for the file pmsm_pm_temp_predict-0.0.6-py3-none-any.whl.

File metadata

File hashes

Hashes for pmsm_pm_temp_predict-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 5a2bdb68c1a12fbff6564e137826830f2872c67ae8c958e7cd3af9a602bd9c94
MD5 6f1a143188e11a74a0fe7900bbe5e8f8
BLAKE2b-256 f44348739ea3e30d5676c99b4eecc803dc8649108fec7b4f79f2d402d289188d

See more details on using hashes here.

Supported by

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