メインコンテンツまでスキップ

InputControl

The MS_InputControl class is a base class for all analysis types in the eMotorSolution API. It provides a common interface and shared functionality for managing analysis input data, including puring, serialization, the dictionary representation of the pyemsol input, etc.

Methods

MethodDescription
update()Updates the input control based on the project data (e.g., materials, stator winding, rotor speed, etc.).
init_network()Initializes the network settings for the analysis. It may vary based on the type of child class.
init_time_functions()Initializes the time functions for the analysis. It may vary based on the type of child class.
save_json()Saves the analysis data to a JSON file.
purge_all()Purges all the data in the analysis, resetting it to its default state.

Attributes

AttributeDescription
namestr The name of the analysis.
directorystr The directory where the analysis data is saved. ⚠️ read-only
pathstr The file path to the analysis JSON file. ⚠️ read-only
input_controldict The dictionary representation of the pyemsol input for the analysis.