Motor machinery design method and related device
The rapid digital design platform for motors automatically selects and verifies material property parameters and generates standardized reports, solving the problem of relying on experience and manual calculations in motor mechanical design. This achieves standardization and intelligence in the design process, improving design efficiency and report quality.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-01-04
- Publication Date
- 2026-04-10
AI Technical Summary
Electromechanical design relies on the personal experience of designers, the calculation process is cumbersome and non-standardized, knowledge acquisition is fragmented, data management is isolated, output is manual, and there is a lack of intelligent assistance, resulting in low efficiency and high quality risks.
The rapid digital design platform for motors utilizes automatic selection and verification of material property parameters, combined with preset object types and field relationships, to generate industry reports. It integrates a motor Q&A model and a data management system to achieve automatic input of material properties and automatic display of verification results, and supports one-click generation of standardized reports.
It simplifies the motor and mechanical design process, improves the accuracy of material property input, enables precise knowledge delivery and closed-loop data management, and enhances design efficiency and the standardization and uniformity of report generation.
Smart Images

Figure CN121833932A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of motor design technology, and in particular to a method for motor mechanical design and related apparatus. Background Technology
[0002] As the core equipment for electrical energy conversion, the mechanical structure design of the motor is a key aspect in ensuring product performance, reliability, and safety.
[0003] In related technologies, the design of electric motors and mechanical systems relies heavily on the personal experience of designers and manual calculations. Parameter estimation, formula iteration, and strength verification are usually accomplished using general-purpose calculation tools such as Microsoft Excel and MATLAB. For complex working conditions, professional simulation software such as Motor-CAD, ANSYS Mechanical, ANSYS Icepak, and COMSOL Multiphysics are used to solve nonlinear problems.
[0004] In summary, the mechanical design and operation of electric motors in related technologies are cumbersome. Summary of the Invention
[0005] In view of the above problems, this application provides a method and related apparatus for the mechanical design of electric motors, so as to simplify the mechanical design operation of electric motors. The specific solution is as follows:
[0006] The first aspect of this application provides a method for mechanical design of an electric motor, comprising:
[0007] In response to the operation of constructing a target object, the target material property parameter corresponding to the target material is selected from the material property parameters corresponding to multiple materials, wherein the target object is a component in the motor;
[0008] From the preset correspondence between object types and fields, find the first field corresponding to the target object type to which the target object belongs, the field including geometric dimension field and various working condition coefficient fields;
[0009] Get the value of the first field corresponding to the first field;
[0010] In response to the verification operation, the first verification result is obtained and displayed based on the first field value and the target material property parameters.
[0011] One possible implementation also includes:
[0012] In response to the operation of generating an industry report, the system searches for the target report template corresponding to the target object type of the target object from the preset correspondence between object types and report templates. The target report template includes placeholders corresponding to the target material attribute parameters, placeholders corresponding to the first field, and placeholders corresponding to the first verification result.
[0013] The target material property parameter is replaced with the corresponding placeholder in the target report template, the first field value is replaced with the corresponding placeholder in the target report template, and the first verification result is replaced with the corresponding placeholder in the target report template to obtain an industry report.
[0014] In one possible implementation, the step of obtaining the first verification result based on the first field value and the target material property parameter includes:
[0015] The target material property parameters and the first field value are substituted into a first preset calculation function to obtain the first verification result.
[0016] In one possible implementation, if the target object is an end-ring component, it further includes:
[0017] If the first verification result indicates that the verification has failed, the control prompts to add a guard ring component;
[0018] In response to the operation of constructing the retaining ring component, select the retaining ring material property parameter corresponding to the retaining ring material from the material property parameters corresponding to multiple materials;
[0019] From the preset correspondence between object types and fields, find the second field corresponding to the retaining ring component;
[0020] Get the value of the second field corresponding to the second field;
[0021] In response to the verification operation, a second verification result is obtained and displayed based on the target material property parameters, the first field value, the second field value, and the retaining ring material property parameters.
[0022] In one possible implementation, the step of obtaining and displaying the second verification result based on the target material property parameters, the first field value, the second field value, and the retaining ring material property parameters includes:
[0023] The target material property parameters, the retaining ring material property parameters, the first field value, and the second field value are substituted into the second preset calculation function to obtain the second verification result.
[0024] One possible implementation also includes:
[0025] In response to the operation of generating an industry report, the system searches for the comprehensive report template corresponding to the end ring component and the retaining ring component from the preset correspondence between object types and report templates. The comprehensive report template includes placeholders corresponding to the target material attribute parameters, the first field, the first verification result, the retaining ring material attribute parameters, the second field, and the second verification result.
[0026] The target material property parameter is replaced with the corresponding placeholder in the comprehensive report template, the first field value is replaced with the corresponding placeholder in the comprehensive report template, the first verification result is replaced with the corresponding placeholder in the comprehensive report template, the retaining ring material property parameter is replaced with the corresponding placeholder in the comprehensive report template, the second field value is replaced with the corresponding placeholder in the comprehensive report template, and the second verification result is replaced with the corresponding placeholder in the comprehensive report template to obtain the industry report.
[0027] One possible implementation also includes:
[0028] Obtain the correspondence between placeholders and preset data formats;
[0029] The data in the industry report is controlled to be displayed in the preset data format corresponding to the placeholders it replaces.
[0030] One possible implementation also includes:
[0031] Obtain the search vector for the search query targeting the motor design;
[0032] From the preset correspondence between knowledge vectors and text fragments, obtain the target text fragment corresponding to the knowledge vector with the highest similarity to the retrieval vector;
[0033] The target text fragment replaces the placeholder representing the context in the preset Prompt template, and the search statement replaces the placeholder representing the user's question in the preset Prompt template to obtain the Prompt text; the preset Prompt template also includes system instructions for instructing to answer the user's question in conjunction with the context;
[0034] The Prompt text is input into a pre-built motor question-and-answer model, and the answer is obtained through the motor question-and-answer model;
[0035] The control displays the answer.
[0036] One possible implementation also includes:
[0037] Controls the display of a form containing the values of multiple fields.
[0038] In one possible implementation, the step of controlling the display of a form containing field values corresponding to multiple fields includes:
[0039] Define the correspondence between different fields in the form and preset data formats, and add an event listener for each field;
[0040] For each field, the field value is displayed in the preset data format corresponding to the field.
[0041] In one possible implementation, the preset data format is a decimal with a second predetermined number of decimal places, and further includes:
[0042] Save the field values with the original data format corresponding to the different fields in the form to the originalValues object;
[0043] For each field, if the second input box of the field is in edit mode, the field value in the second input box is displayed in the original data format; if the second input box is in non-edit mode, the field value in the second input box is displayed in the preset data format.
[0044] In one possible implementation, the step of selecting the target material property parameter corresponding to the target material from the material property parameters corresponding to multiple materials in response to the operation of constructing the target object includes:
[0045] In response to the operation of constructing the target object, control the display of the first user interface, which includes object material buttons;
[0046] In response to the touch operation of the object material button, a drop-down list is displayed, which includes material property parameters corresponding to multiple materials;
[0047] The operation of obtaining the target material attribute parameters corresponding to the target material selected through the drop-down box.
[0048] A second aspect of this application provides an electromechanical design apparatus, comprising:
[0049] The first selection module is used to respond to the operation of constructing a target object and select the target material property parameter corresponding to the target material from the material property parameters corresponding to multiple materials. The target object is a component in the motor.
[0050] The first search module is used to search for the first field corresponding to the target object type to which the target object belongs from the preset correspondence between object types and fields. The field includes a geometric dimension field and various coefficient fields for working conditions.
[0051] The first acquisition module is used to acquire the value of the first field corresponding to the first field;
[0052] The second acquisition module is used to respond to the verification operation, obtain and display the first verification result based on the first field value and the target material property parameters.
[0053] A third aspect of this application provides a computer program product including computer-readable instructions that, when executed on an electronic device, cause the electronic device to implement the electromechanical design method of the first aspect or any implementation thereof.
[0054] A fourth aspect of this application provides an electronic device, including at least one processor and a memory connected to the processor, wherein:
[0055] The memory is used to store computer programs;
[0056] The processor is used to execute the computer program so that the electronic device can implement the electromechanical design method of the first aspect or any implementation thereof.
[0057] The fifth aspect of this application provides a computer storage medium carrying one or more computer programs, which, when executed by an electronic device, enable the electronic device to perform the electromechanical design method described in the first aspect or any implementation thereof.
[0058] By employing the above technical solution, this application provides a method for designing electromechanical components. In response to the operation of constructing a target object, the method selects the target material attribute parameter from multiple material attribute parameters. By actively selecting the material attribute parameter instead of manually entering it, the accuracy of material attribute input is improved. From a preset correspondence between object types and fields, the method searches for the first field corresponding to the target object type to which the target object belongs. The user then inputs the value of the first field. In response to a verification operation, the method automatically obtains and displays the first verification result based on the first field value and the target material attribute parameter, without requiring manual intervention. This simplifies the process of constructing the target object. Attached Figure Description
[0059] The above and other features, advantages, and aspects of the embodiments of this disclosure will become more apparent from the accompanying drawings and the following detailed description. Throughout the drawings, the same or similar reference numerals denote the same or similar elements. It should be understood that the drawings are schematic, and the originals and elements are not necessarily drawn to scale.
[0060] Figure 1 A schematic diagram of a system architecture is provided for this application;
[0061] Figure 2 A flowchart illustrating a mechanical design method for an electric motor provided in this application embodiment;
[0062] Figure 3 A schematic diagram illustrating the mapping relationship between material property parameters in the material database and the object database provided in this application embodiment;
[0063] Figure 4 A flowchart of the AI assistant function is provided for the embodiments of this application;
[0064] Figure 5 A schematic diagram illustrating one implementation of the motor mechanical design method provided in this application embodiment;
[0065] Figure 6 This is a schematic diagram of the structure of an electromechanical design device provided in an embodiment of this application;
[0066] Figure 7 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0067] The embodiments of this application are described below with reference to the accompanying drawings. The terminology used in the implementation section of this application is for explaining specific embodiments only and is not intended to limit the scope of this application.
[0068] The embodiments of this application will now be described with reference to the accompanying drawings. Those skilled in the art will recognize that, with technological advancements and the emergence of new scenarios, the technical solutions provided in the embodiments of this application are equally applicable to similar technical problems.
[0069] The terms "first," "second," etc., used in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such terms are interchangeable where appropriate; this is merely a way of distinguishing objects with the same attributes in the embodiments of this application. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion, so that a process, method, system, product, or apparatus that comprises a series of elements is not necessarily limited to those elements, but may include other elements not explicitly listed or inherent to those processes, methods, products, or apparatuses.
[0070] As the core equipment for electrical energy conversion, the mechanical structure design of the electric motor is a crucial link in ensuring product performance, reliability, and safety. In related technologies, electric motor mechanical design heavily relies on the designer's personal experience and manual calculations, typically using general-purpose calculation tools such as Microsoft Excel and MATLAB for parameter estimation, formula iteration, and strength verification. For complex operating conditions, specialized simulation software such as ANSYS Mechanical and COMSOL Multiphysics are used to solve nonlinear problems. However, the above technical approach has the following significant drawbacks in engineering practice:
[0071] Problem 1: The calculation process is discretized and non-standardized. Designers must manually consult material properties, empirical coefficients, and specification clauses in discrete design manuals, standard documents, and historical data before manually inputting parameters into the calculation spreadsheet. The Excel models created by different designers vary significantly in table structure, formula logic, and data format, lacking a unified design paradigm and data interface. This makes it difficult to reuse and collaboratively verify design results across projects and teams. If a formula or parameter is entered incorrectly, the error will propagate along the calculation chain, requiring unit-by-unit verification, resulting in low efficiency and high quality risk.
[0072] The second problem is the fragmented nature of knowledge acquisition and the lag in response. Motor design involves interdisciplinary knowledge from electromagnetics, mechanics, thermodynamics, and materials science. Designers often encounter difficulties in parameter selection, formula modification, and standard compliance assessment. Support for related technologies is mainly obtained by consulting paper or electronic technical manuals and senior engineers. This scattered knowledge source, time-consuming retrieval, and untimely feedback can easily lead to design bottlenecks or incorrect parameter selection, hindering R&D efficiency.
[0073] Problem three: data silos and difficulties in traceability. The massive amounts of parameters, intermediate calculation results, verification conclusions, and material performance data generated during the design process are scattered across individual files on personal computers, failing to form centralized, structured data assets. Decades of accumulated design experience, historical cases, and standard updates lack systematic archiving and lifecycle management, making it difficult to extract data value and meet the data-driven decision-making requirements of enterprise digital transformation.
[0074] Problem 4: Insufficient manualization and standardization in design output. After calculation, designers need to manually organize the data and compile calculation reports that conform to industry or company standards. This involves a large amount of repetitive work, and human factors can easily lead to inconsistent report formats and data errors, affecting the efficiency of technical review and archiving.
[0075] To address the aforementioned issues, while general question-answering systems based on large language models and pre-trained language models for the electromechanical industry have emerged, these models can only solve general and common-sense questions. They lack deep coupling with the electromechanical design and calculation process, fail to be embedded in the design process for real-time assistance, and public cloud deployment models cannot meet enterprises' requirements for secure control of core design data. Therefore, there is an urgent need for an embedded solution that organically integrates electromechanical design calculations, domain knowledge management, and intelligent assistance to achieve standardization of the design process, accurate knowledge delivery, closed-loop data management, and one-click output of results, thereby promoting the transformation and upgrading of electromechanical design from "experience-driven" to "data-driven" and "intelligent-driven."
[0076] The technical solutions involved in this application are described below.
[0077] See Figure 1 , Figure 1 A schematic diagram of a system architecture is shown. The system may include a terminal 100 and a server 200. The server 200 can provide the methods provided in the embodiments of this application to one or more terminals.
[0078] The terminal 100 may have an application installed on it. The application can provide an interface. The terminal 100 can receive relevant parameters input by the user on the interface, such as the value of the first field of the first field, and send the parameters to the server 200. The server 200 can obtain the processing result based on the received parameters and return the processing result to the terminal 100.
[0079] It should be understood that in some optional implementations, the terminal 100 can also complete the action of obtaining the processing result based on the received parameters on its own, without the need for the server to cooperate. This application embodiment is not limited to this.
[0080] The following description Figure 1 The product form of the mid-terminal 100;
[0081] The terminal 100 in this application embodiment can be a mobile phone, tablet computer, wearable device, vehicle device, augmented reality (AR) / virtual reality (VR) device, laptop computer, etc., and this application embodiment does not impose any restrictions on it.
[0082] Terminal 100 may include a radio frequency unit, memory, input unit, display unit, camera (optional), audio circuitry (optional), speaker (optional), microphone (optional), headphone jack (optional), processor, external interface, power supply, and other components. Those skilled in the art will understand that the above-mentioned components are merely examples and do not constitute a limitation on the terminal or multifunctional device; it may include more or fewer components, or a combination of certain components, or different components.
[0083] The input unit can be used to receive input numeric or character information, and to generate key signal inputs related to user settings and function control of the portable multi-functional device. Specifically, the input unit may include a touchscreen (optional) and / or other input devices. Other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, power buttons, etc.), trackball, mouse, joystick, etc.
[0084] Among them, the input device can receive input data, etc.
[0085] The display unit can be used to display information input by the user or information provided to the user, various menus of the terminal, interactive interfaces, file display, and / or playback of any multimedia file. In the embodiments of this application, the display unit can be used to display interfaces, processing results, etc.
[0086] The memory can be used to store software code related to the motor mechanical design method, the processor can execute the steps of the motor mechanical design method, and can also schedule other units (such as the above-mentioned input unit and display unit) to achieve the corresponding functions.
[0087] This radio frequency unit (optional) can be used to receive and send signals during information transmission or calls.
[0088] In this embodiment of the application, the radio frequency unit can send data to the server 200 and receive the processing results sent by the server 200.
[0089] It should be understood that this radio frequency unit is optional and can be replaced with other communication interfaces, such as a network port.
[0090] Terminal 100 also includes a power source (such as a battery) for supplying power to the various components.
[0091] Terminal 100 also includes an external interface, which can be a standard Micro USB interface or a multi-pin connector, which can be used to connect terminal 100 to other devices for communication or to connect a charger to charge terminal 100.
[0092] Server 200 includes a bus, a processor, a communication interface, and memory. The processor, memory, and communication interface communicate with each other via the bus.
[0093] The memory can be used to store software code related to the motor mechanical design method, the processor can execute the steps of the chip's motor mechanical design method, and can also schedule other units to achieve corresponding functions.
[0094] To address the aforementioned problems, this application provides a method for designing the mechanical structure of an electric motor. The method described below, with reference to the accompanying drawings, will be described in detail.
[0095] Reference Figure 2 , Figure 2 This is a flowchart illustrating a mechanical design method for an electric motor provided in an embodiment of this application, as shown below. Figure 2 As shown in the figure, the mechanical design method for an electric motor provided in this application embodiment may include steps S201 to S204, which are described in detail below.
[0096] Step S201: In response to the operation of constructing a target object, select the target material attribute parameter corresponding to the target material from the material attribute parameters corresponding to multiple materials respectively. The target object is a component in the motor.
[0097] For example, the target object can be an end ring part, a shaft part, a rotor part, a tapered part, etc.
[0098] For example, the correspondence between materials and material property parameters can be stored in a material database.
[0099] For example, this application refers to the software carrying the "mechanical design method of electric motor" as a rapid digital design platform system for electric motors.
[0100] For example, the rapid digital design platform system for motors is based on the Django framework to implement front-end and back-end interaction in a web application. Django is a Python back-end framework and a typical MVT architecture, including model, views, and templates. In addition, there are two other important components: routing (url) and forms.
[0101] For example, the frontend sends an (asynchronous) Ajax request; then the Django view receives the request and queries the materials database through the ORM interface; the materials database then returns the material attribute parameters corresponding to multiple materials, the view serializes them into JSON format and returns them to the frontend, and the frontend receives and displays the material attribute parameters corresponding to multiple materials.
[0102] For example, material property parameters characterize the intrinsic physical properties of a material, regardless of its geometry or operating conditions.
[0103] For example, material property parameters include, but are not limited to, one or more of the following: density (ρ), elastic modulus (E), yield strength (σs), coefficient of linear expansion (α), Poisson's ratio (μ), and tensile strength (σb).
[0104] For example, materials include, but are not limited to: 45 steel, 40Cr alloy steel, and Q235A carbon steel.
[0105] For example, the correspondence between materials and material property parameters can be stored in tabular form, as shown in Table 1.
[0106] Table 1
[0107] For example, the operation of constructing the target object can be a voice operation, a touch operation of the "target object" button, or a preset gesture operation. This application embodiment does not limit this.
[0108] For example, material property parameters corresponding to all materials can be retrieved from the material database. For example, material property parameters corresponding to multiple materials of the object type to which the target object belongs can be retrieved from the material database.
[0109] For example, the material property parameters corresponding to multiple materials have been preset by the user, as shown in Table 1. The material property parameters of each material have been preset and do not require user input.
[0110] For example, multiple material property parameters can be displayed through windows or drop-down lists for users to select.
[0111] Understandably, by actively selecting material property parameters instead of manually entering them, parameter errors caused by table lookup mistakes, unit confusion, or version lag are eliminated, improving the accuracy of material property parameter input and solving the hidden defect of "correct formula but incorrect parameter" in traditional Excel design (i.e., solving problem one in related technologies).
[0112] Step S202: From the preset correspondence between object types and fields, find the first field corresponding to the target object type to which the target object belongs. The field includes a geometric dimension field and various coefficient fields for working conditions.
[0113] For example, the number of the first field can be one or more.
[0114] For example, the object type of the target object can be end ring type, shaft type, rotor type, taper type, etc.
[0115] Understandably, in the process of constructing the target object, it is also necessary to design the geometric dimension parameters and various operating condition coefficient parameters of the target object. Among them, the field value of the geometric dimension field is the geometric dimension parameter, and the field value of the various operating condition coefficient fields is the various operating condition coefficient parameters.
[0116] For example, geometric dimension parameters refer to the structural dimensions of the target object.
[0117] For example, the various coefficient parameters of the working condition refer to the inputs used to obtain the dynamic response results of the target object under a certain working condition, such as the friction coefficient, gravitational acceleration, etc.
[0118] Understandably, geometric parameters determine the volume, mass distribution, and subsequent boundary conditions of the mechanical model of the target object.
[0119] It's understandable that fields corresponding to different object types can be the same or different. The following example illustrates this.
[0120] The first field corresponding to the end ring type includes: geometric dimension field (such as inner diameter, outer diameter) and various coefficient fields for working conditions (such as speed, safety factor, and maximum design interference).
[0121] The first field corresponding to the shaft type includes: geometric dimension fields (such as shaft outer diameter, shaft inner diameter, shaft length, keyway width) and various coefficient fields for operating conditions (such as moment of inertia, magnetic tensile stiffness, deflection).
[0122] The first field corresponding to the rotor type includes: geometric dimension fields (such as rotor outer diameter, rotor inner diameter, core length, number of slots, slot cross-sectional dimensions) and various coefficient fields for operating conditions (such as friction coefficient, working safety factor when stationary, and overspeed multiple).
[0123] The first field corresponding to the taper type includes: geometric dimension fields (such as large end diameter, small end diameter, fit length, surface roughness) and various working condition coefficient fields (such as connection importance coefficient, axial force, average calculated force deviation).
[0124] For example, the mapping between object types and fields can be stored in an object database.
[0125] Understandably, by modularizing and encapsulating object types and fields, if a new object type needs to be added, only the mapping between the object type and the field needs to be changed, without having to refactor the underlying code.
[0126] Step S203: Obtain the value of the first field corresponding to the first field.
[0127] For example, the first field can be displayed as a form, so that the value of the first field can be received by the user.
[0128] For example, a form containing the target material property parameters and the first field is displayed in a display window; the value of the first field corresponding to the first field is obtained through the input box corresponding to the first field of the form.
[0129] Step S204: Respond to the verification operation, obtain and display the first verification result based on the first field value and the target material property parameters.
[0130] For example, the target material property parameters and the first field value can be substituted into a first preset calculation function to obtain the first verification result.
[0131] The first preset calculation function can be located in the views file. The views file specifically refers to the Python physical file named views.py, which is the basic unit of code organization and is used to centrally store views and business logic auxiliary functions.
[0132] It's understandable that the views.py file contains two types of view functions: the main view function `defduanhuan()` and the specialized calculation function `def updatecal1()`. The first pre-defined calculation function can be the specialized calculation function `def updatecal1()`.
[0133] For example, the first verification result can be obtained by calling the specialized calculation function def updatecal1().
[0134] Understandably, the first preset calculation function does not need to be reconstructed; it only needs to be called. This eliminates the need for designers to spend too much time on formula modification and standard compliance checks, thus solving the second problem in the related technology.
[0135] This application provides a method for designing an electromechanical system. In response to an operation to construct a target object, the method selects the target material's corresponding material property parameter from multiple material property parameters. By actively selecting the material property parameter instead of manually entering it, the accuracy of material property input is improved. The method searches for the first field corresponding to the target object type from a preset correspondence between object types and fields; the user then inputs the value of the first field. In response to a verification operation, the method automatically obtains and displays the first verification result based on the first field value and the target material property parameter, without requiring manual intervention. This simplifies the process of constructing the target object.
[0136] In one optional implementation, the target material property parameters, the first field value, and the first verification result can be stored in an object database. This creates a searchable design snapshot, allowing for direct retrieval of historical design data packages during subsequent reviews, modifications, or fault analyses. This significantly improves knowledge reuse and meets the enterprise's design process traceability requirements. This addresses problem three in the related technologies.
[0137] For example, the data in the object database comes from two sources: one is that the designer directly inputs certain field values from the first user page, calculates and saves them to the object database; the other is that certain fixed values are directly stored in the object database and await retrieval.
[0138] In an optional implementation, the embodiments of this application further include steps A1 to A2.
[0139] Step A1: In response to the industry report generation operation, find the target report template corresponding to the target object type of the target object from the preset correspondence between object types and report templates.
[0140] The target report template includes placeholders corresponding to the target material property parameters, placeholders corresponding to the first field, and placeholders corresponding to the first verification result.
[0141] For example, a placeholder can be composed of any one or more characters.
[0142] It is understandable that the report templates for different object types may be different or the same.
[0143] For example, the report template can be in any format such as Word, PDF, or TXT, and this application does not impose any restrictions.
[0144] The following explanation uses an end-ring type object as an example.
[0145] The first field corresponding to the end ring type includes: geometric dimension fields (such as inner diameter, outer diameter) and various coefficient fields for operating conditions (such as overspeed, safety factor, and design maximum interference fit). The target material property parameters corresponding to the end ring type include density (ρ), elastic modulus (E), yield strength (σs), coefficient of linear expansion (α), Poisson's ratio (μ), and tensile strength (σb). Therefore, the placeholders for density (ρ), elastic modulus (E), yield strength (σs), coefficient of linear expansion (α), Poisson's ratio (μ), and tensile strength (σb) in the target report template can be, in order: ρ, E, σs, α, μ, σb. The placeholders for inner diameter, outer diameter, overspeed, safety factor, and design maximum interference fit in the target report template can be, in order: d_i, d_o, n, Kcu, ln.
[0146] Step A2: Replace the corresponding placeholders in the target report template with the target material attribute parameters, replace the corresponding placeholders in the target report template with the first field value, and replace the corresponding placeholders in the target report template with the first verification result to obtain the industry report.
[0147] This application's embodiment achieves automated generation of industry reports through a pre-defined intelligent correspondence between object types and report templates, along with a placeholder replacement mechanism. This fundamentally solves the technical problems of low efficiency, inconsistent formats, and susceptibility to errors in traditional manual report compilation. On one hand, the system's built-in correspondence library automatically matches report templates for different components such as end rings and shafts, eliminating the need for designers to manually select or adjust formats, significantly shortening the report compilation cycle. On the other hand, data such as material property parameters, geometric dimensions, and verification results are precisely injected into the pre-defined report templates through placeholders. This eliminates the risk of errors and omissions caused by manual data transcription and ensures absolute consistency in layout, terminology, and accuracy control of the output reports. Simultaneously, all placeholder replacement processes are based on real-time reading from the object database, achieving dynamic synchronization between design data and industry report content. This greatly reduces industry report generation time, significantly improves office efficiency, and helps enterprises transform and upgrade motor design from "experience-driven" to "standardized, digitalized, and intelligent." This solves the fourth problem related to the technology.
[0148] Understandably, if the target object is a shaft section, rotor section, or tapered section, and the first verification result is a verification failure, the user needs to execute steps S201 to S204 again. If the target object is an end ring section, and the first verification result is a verification failure, a retaining ring needs to be added. The following explains that if the target object is an end ring component, the process includes steps B11 to B15.
[0149] Step B11: If the first verification result indicates that the verification has failed, the control prompts to add a guard ring component.
[0150] For example, if the first verification result is a verification failure, a voice or text prompt can be used to add a guard ring component.
[0151] Step B12: In response to the operation of constructing the retaining ring component, select the retaining ring material property parameter corresponding to the retaining ring material from the material property parameters corresponding to multiple materials.
[0152] For example, material property parameters corresponding to all materials can be obtained from the material database. For example, material property parameters corresponding to multiple materials for the retaining ring component can be obtained from the material database.
[0153] For the material property parameters corresponding to the material, please refer to the explanation for step S201, which will not be repeated here.
[0154] For example, multiple material property parameters can be displayed through windows or drop-down boxes, allowing users to select the appropriate retaining ring material property parameters.
[0155] For example, the operation of constructing the guard ring component can be a voice operation, a touch operation of the "guard ring component" button, or a preset gesture operation, and this application embodiment does not limit this.
[0156] Step B13: Find the second field corresponding to the guard ring component from the preset correspondence between object type and field.
[0157] For example, the number of second fields can be one or more.
[0158] For example, the geometric dimension fields in the second field include, but are not limited to: inner diameter of the retaining ring and outer diameter of the retaining ring.
[0159] For example, the various coefficient fields for working conditions in the second field include, but are not limited to: retainer ring tangential stress, retainer ring temperature rise, and retainer ring working safety factor.
[0160] Step B14: Obtain the value of the second field corresponding to the second field.
[0161] For example, the second field can be displayed in the form of a form, so that the value of the second field can be received by user input.
[0162] For example, a form containing the protective ring material property parameters and the second field is displayed in a display window; the value of the second field corresponding to the second field is obtained through the input box corresponding to the second field of the form.
[0163] Step B15: Response verification operation, obtain and display the second verification result based on the target material property parameters, the first field value, the second field value and the retaining ring material property parameters.
[0164] For example, the target material property parameters, retaining ring material property parameters, the first field value, and the second field value can be substituted into the second preset calculation function to obtain the second verification result.
[0165] The second predefined calculation function can be located in the views file. The views file specifically refers to the Python physical file named views.py, which is the basic unit of code organization and is used to centrally store views and business logic auxiliary functions.
[0166] It's understandable that the views.py file contains two types of view functions: the main view function `defduanhuan01()` and the specialized calculation function `def updatecal2()`. The second preset calculation function can be the specialized calculation function `def updatecal2()`.
[0167] For example, the second verification result can be obtained by calling the specialized calculation function def updatecal2().
[0168] Understandably, the second preset calculation function does not need to be reconstructed; it only needs to be called. This eliminates the need for designers to spend too much time on formula modification and standard compliance checks, thus solving the second problem in the related technology.
[0169] Understandably, if the second verification result is a pass, the design of the end ring component and the guard ring component is complete. If the second verification result is a failure, the end ring component needs to be redesigned.
[0170] It is understood that after adding the retaining ring, an industry report can be generated. Based on this, the embodiments of this application may also include the following steps B21 to B22.
[0171] Step B21: In response to the industry report generation operation, search for the comprehensive report template corresponding to the end ring component and the guard ring component from the preset correspondence between object types and report templates. The comprehensive report template includes placeholders corresponding to the target material attribute parameters, placeholders corresponding to the first field, placeholders corresponding to the first verification result, placeholders for the guard ring material attribute parameters, placeholders corresponding to the second field, and placeholders for the second verification result.
[0172] Step B22: Replace the corresponding placeholders in the comprehensive report template with the target material attribute parameters, and replace the corresponding placeholders in the comprehensive report template with the first field value, and replace the corresponding placeholders in the comprehensive report template with the first verification result, and replace the corresponding placeholders in the comprehensive report template with the retaining ring material attribute parameters, and replace the corresponding placeholders in the comprehensive report template with the second field value, and replace the corresponding placeholders in the comprehensive report template with the second verification result, to obtain the industry report.
[0173] In one optional implementation, the target material property parameters, the first field, the first verification result, the retaining ring material property parameters, the second field, and the second verification result are stored in the object database.
[0174] Understandably, the target material property parameters and retaining ring material property parameters selected from the material database can be stored in the object database. For example, the material database and object database can interact with the model through the Django ORM framework. For example, the persistent storage and efficient management of the material database and object database mainly rely on the Django framework's ORM mechanism, achieving standardized data storage and dynamic association and retrieval through two structured data models: the material database and the object database.
[0175] When storing the target material property parameters and retaining ring material property parameters selected from the material database into the object database, attention needs to be paid to the mapping relationship of the naming of the material property parameters in the two databases. For example, this functionality can be achieved using front-end JavaScript variables and back-end data models. Figure 3 As shown, the names of material property parameters are inconsistent in the material database and the object database, and a mapping relationship needs to be established.
[0176] like Figure 3 As shown, density is represented by the "Density" field in the material database, while it is represented by the "ρ" field in the object database. Elastic modulus is represented by the "Elastic Modulus" field in the material database, while it is represented by the "Ec" field in the object database.
[0177] To help those skilled in the art better understand the process of generating industry reports, the following example illustrates the process.
[0178] For example, if a user clicks the "Generate Industry Report" button, the function defined in the Django view processes the request; then it reads data from the object database (the data for the end ring part is the target material attribute parameter, the first field, and the first verification result; the data for the retaining ring part is the retaining ring material attribute parameter, the second field, and the second verification result).
[0179] The pre-designed report template is loaded into memory to prepare for subsequent data rendering and template filling. Finally, the rendered industry report is saved, and users can download the generated "industry report" after executing the download operation. The generation of industry reports greatly shortens the processing cycle, freeing designers from tedious work, while the report format is standardized and conforms to company or industry standards.
[0180] Understandably, the data in the object database has a large number of decimal places, and to ensure the readability of industry reports, it is necessary to save a fixed number of decimal places; for example, the data needs to be formatted to retain a fixed number of decimal places.
[0181] For example, you can write a function `def format_data()` in the views to fix the number of decimal places in the data imported from the industry report. Specifically, this includes methods C1 through steps C2.
[0182] Step C1: Obtain the correspondence between placeholders and preset data formats.
[0183] It is understandable that the report template includes multiple placeholders, and different placeholders correspond to different data. The correspondence between placeholders and preset data formats can be preset. For example, the preset data formats corresponding to different placeholders may be different or the same.
[0184] The following example illustrates this. Assuming the industry report corresponds to the end-ring component, the correspondence between placeholders and preset data formats can be seen in Table 2.
[0185] Table 2
[0186] Step C2: Control the data in the industry report to be displayed in the preset data format corresponding to the placeholders it replaces.
[0187] When a user clicks "Generate Industry Report," the backend program (such as a Django view) reads the relationship content shown in Table 2 and loads it into memory, preparing for subsequent formatting. When populating the report template with real data, each data point must be converted according to the format defined in step C1.
[0188] Assuming the report template is:
[0189] [End Ring Mechanical Design Verification Report]
[0190] 1. Material properties
[0191] [P]- Material density: {ρ} kg / m³[ / P]
[0192] [P]- Elastic modulus: {E} Pa[ / P]
[0193] [P]- Yield strength: {σs} Pa[ / P]
[0194] [P]- Coefficient of linear expansion: {α} / °C[ / P]
[0195] 2. Geometric Dimensions
[0196] [P]- End ring inner diameter: {d_i} m[ / P]
[0197] [P]- End ring outer diameter: {d_o} m[ / P]
[0198] 3. Operating parameters
[0199] [P]- Rated speed: {n} r / min[ / P]
[0200] The industry report after replacing the placeholders is as follows:
[0201] [End Ring Mechanical Design Verification Report]
[0202] 1. Material properties
[0203] [P]- Material density: 7.85E+03 kg / m³[ / P]
[0204] [P]- Elastic modulus: 2.06E+11 Pa[ / P]
[0205] [P]- Yield strength: 355,000,000 Pa[ / P]
[0206] [P]- Coefficient of linear expansion: 1.15E-05 / °C[ / P]
[0207] 2. Geometric Dimensions
[0208] [P]- End ring inner diameter: 0.152 m[ / P]
[0209] [P]- End ring outer diameter: 0.236 m[ / P]
[0210] 3. Operating parameters
[0211] [P]- Rated speed: 12000 r / min[ / P]
[0212] Understandably, in order to ensure data precision and accuracy, object databases often store data with many decimal places. However, it is not possible to display all the decimal places in the user interface, as this is both unsightly and hinders user readability.
[0213] In an optional implementation, it further includes: controlling the display of target material property parameters and / or first field values and / or first verification results and / or retaining ring material property parameters and / or second field values and / or second verification results in a preset data format.
[0214] For example, the preset data format is scientific notation (retaining a first set number of decimal places), string format, or a decimal with a second set number of decimal places.
[0215] The following example illustrates this: if the first set number is 3, then the scientific notation can be 2.115 × 10⁻⁶. 4 If the second set number is 4, then the decimal can be 0.0004.
[0216] This application also includes: a form that controls the display of field values corresponding to multiple fields.
[0217] For example, a request to store a form in an object database is a POST request.
[0218] For example, multiple fields include, but are not limited to: the field corresponding to the target material property parameter, the first field, the field corresponding to the retaining ring material property parameter, the second field, the first verification result, and one or more of the second verification result.
[0219] Understandably, the form interface will present users with different field values at different times. For example, if the target object is an end ring component, the initial form contains fields corresponding to the target material parameters and a first field; after obtaining the field values corresponding to the target material parameters and the first field value corresponding to the first field, the form dynamically updates the corresponding field values; after the user triggers verification, the form dynamically displays the form containing the field value of the obtained first verification result; only when the first verification result is unqualified, the form expands to include the fields corresponding to the retaining ring material attribute parameters and a second field, and after obtaining the field values corresponding to the retaining ring material parameters and the second field value corresponding to the second field, the form dynamically updates the corresponding field values; after the user triggers verification, the form dynamically displays the form containing the field value of the obtained second verification result.
[0220] For example, controlling the display of a form containing field values corresponding to multiple fields includes the following steps D1 to D2.
[0221] Step D1: Set the correspondence between different fields in the form and the preset data format, and add an event listener for each field.
[0222] Step D2: For each field, display the field value in the preset data format corresponding to the field.
[0223] To help technical personnel better understand field values with their original data format and field values with their preset data format, examples are provided below, see Table 3 for details.
[0224] Table 3
[0225] In an optional implementation, if the preset data format is scientific notation, the following steps may also be included: for each field, if the event listener corresponding to the field detects an operation that modifies the first input box corresponding to the field, the field value in the original data format entered in the first input box is converted into a field value in the preset data format, and after clicking the "Calculate and Save" button, the field value with the original data format is stored in the object database.
[0226] For example, in scientific notation, it is defined as uppercase E.
[0227] For example, a formatting function `formatscientific()` is developed to convert a field value with its original data format, such as 210000, into a field value with a preset data format, such as scientific notation 2.10E+05. Simultaneously, a reformatting function `unformatscientific()` is developed to restore the user-input field value 2.10E+05 with its preset data format back to the field value 210000 with its original data format. After clicking the "Calculate and Save" button, the field value with its original data format is stored in the object database for use in background calculations, ensuring consistency between the displayed and stored precision.
[0228] Understandably, during form rendering, all fields marked with scientific notation can be iterated over, and the `formatscientific()` function can be automatically called to convert and render the field values. For example, the elastic modulus field is initialized from 210000 to 2.10E+05 MPa in real time, improving the readability of high-level data.
[0229] For example, add a blur event listener to each field. When the user manually changes 2.10E+05 to 2.15E+05 in the first input box of the field, the blur event listener immediately triggers the formatscientific() function to format the input value into standard scientific notation when the cursor leaves the first input box. After clicking the "Calculate and Save" button, the unformatscientific() function converts 2.15E+05 into 215000 in the background and stores it in the object database.
[0230] In one alternative implementation, to ensure the accuracy and readability of numerical calculations, scientific notation should be used for input and representation of field values that are significantly larger or smaller than the order of magnitude, in order to effectively prevent digit errors.
[0231] In an optional implementation, if the preset data format is a decimal with a second predetermined number of decimal places, it further includes:
[0232] Save the field values with the original data format corresponding to the different fields in the form to the originalValues object;
[0233] For each field, if the second input box of the field is in edit mode, the field value in the second input box is displayed in the original data format; if the second input box is in non-edit mode, the field value in the second input box is displayed in the preset data format.
[0234] For example, add a `change` event listener to each field and bind `focus` and `blur` focus events to each input box to lay the foundation for subsequent interactive responses. For instance, if the second input box of a field is in edit mode (i.e., `focus` event), it automatically restores the display of the field value with its original data format, such as the inner diameter 152.365478, allowing users to modify it precisely. After editing is complete (i.e., `blur` focus event), the field reverts to display mode, and the second input box is reformatted to 152.37 with two decimal places, ensuring a visually appealing and readable page. This mechanism responds to user interactions in real time, avoids formatting interference with data editing, and improves operational smoothness and accuracy.
[0235] Assuming the inner diameter of the end ring component is 152.365478, the original data format of 152.365478 is cached in the originalValues object to ensure that high-precision data is not lost.
[0236] For example, a second preset number of decimal places is set for each field. For example, the second preset number can be different or the same for different fields. For example, the user can click a drop-down list to select the second preset number. For example, the field display of the corresponding field is formatted in real time, using a rounding method.
[0237] In one optional implementation, for a clean and aesthetically pleasing page, length-type data is initially displayed with two decimal places, and coefficient-type data is displayed with one decimal place. According to design requirements, the design verification is considered successful when the working safety factor is greater than or equal to the allowable safety factor. If the allowable safety factor and working safety factor are the same, but the verification fails, the coefficient-type decimal controller can be set to three decimal places to view the specific design data for more precise design.
[0238] For example, displaying data in a preset data format can be achieved using JavaScript and Ajax.
[0239] In summary, this application allows control over the number of decimal places displayed for field values in the user interface without affecting the precision of the data in the object database. Furthermore, to avoid modifying the number of decimal places for individual field values, all fields can be divided into multiple field groups based on their properties, such as decimal place control for coefficients, lengths, and force variables. If the decimal place control for coefficients is set to 1, all data within that field group will be displayed with 1 decimal place on the platform page. Data containing a large number of zeros is a special case, in which case scientific notation is used for direct display on the page.
[0240] To help those skilled in the art better understand the electromechanical design method provided in the embodiments of this application, examples are given below.
[0241] like Figure 5 The diagram shown illustrates one implementation of the motor mechanical design method provided in this application. The process includes steps E1 to E20.
[0242] Step E1: In response to the operation of constructing the target object, control the display of the first user interface, which includes object material buttons.
[0243] like Figure 5 As shown, assuming the target object is the end ring portion, the first user interface is as follows: Figure 5 As shown.
[0244] like Figure 5 As shown, the operation to construct the target object is clicking the "End Ring Part" button. That is, in response to clicking the "End Ring Part" button, the first user interface is displayed.
[0245] like Figure 5 As shown, the names of the object material buttons for different object types can be determined based on the actual situation, such as... Figure 5 The object material button for the end ring section is named "End Ring Material".
[0246] Step E2: In response to the operation of pressing the object material button, control the display of the drop-down box, which includes material property parameters corresponding to multiple materials.
[0247] For example, the material property parameters corresponding to the multiple materials displayed in the drop-down list are obtained from the material database.
[0248] Step E3: Obtain the target material attribute parameters corresponding to the target material selected through the drop-down box.
[0249] Step E4: From the preset correspondence between object types and fields, find the first field corresponding to the target object type to which the target object belongs.
[0250] Step E5: Control the display of the form containing the target material property parameters and the first field.
[0251] like Figure 5 As shown, the form can be displayed in the "Design Data" window.
[0252] It is understandable that the field values in the form can be displayed using a preset data format. For example, this can be achieved through... Figure 5 The "Decimal digit controller" button in the settings allows you to set the preset data format for the field.
[0253] Step E6: Obtain the value of the first field corresponding to the first field through the form.
[0254] Step E7: Response verification operation, obtain the first verification result based on the first field value and the target material property parameters.
[0255] Combination Figure 5 It can be seen that the "verification operation" is the operation of clicking the "calculate and save" button. For example, after clicking the "calculate and save" button, the first field value, the target material attribute parameter, and the first verification result will also be stored in the object database.
[0256] Step E8: Control the display of the first verification result.
[0257] Combination Figure 5 As can be seen, the "First Verification Result" can be displayed at the bottom of the "Design Data" window, such as... Figure 5 In the process, the first verification result can be either "pass / verification successful" or "fail / verification failed".
[0258] Step E9: If the first verification result is unqualified / verification failed, the control prompts to add a retaining ring component.
[0259] Combination Figure 5 It can be seen that the prompt for adding a retaining ring component can be to display the "Add Retaining Ring" button.
[0260] Step E10: In response to the operation of building the retaining ring component, display the second user interface.
[0261] Combination Figure 5 It can be seen that "the operation of constructing the retaining ring component" can be the operation of clicking the "add retaining ring" button.
[0262] like Figure 5 As shown, the second user interface is used to select the retaining ring component, such as... Figure 5 As shown on the right.
[0263] Step E11: In response to the operation of pressing the object material button, control the display of the drop-down box, which includes material property parameters corresponding to multiple materials.
[0264] like Figure 5 As shown, the "Object Material" button in step E11 is the "Guarding Ring Material" button.
[0265] For example, the material property parameters corresponding to the multiple materials displayed in the drop-down list are obtained from the material database.
[0266] Step E12: Obtain the retaining ring material attribute parameters corresponding to the retaining ring material selected through the drop-down box.
[0267] Step E13: Find the second field corresponding to the guard ring component from the preset correspondence between object type and field.
[0268] Step E14: Control the display of a form containing target material property parameters, a first field, retaining ring material property parameters, and a second field.
[0269] like Figure 5 As shown, the form can be displayed in the "Design Data" window.
[0270] It is understandable that the field values in the form can be displayed using a preset data format. For example, this can be achieved through... Figure 5 The "Decimal digit controller" button in the settings allows you to set the preset data format for the field.
[0271] Step E15: Obtain the value of the second field corresponding to the second field through the form.
[0272] Step E16: Response verification operation, obtain the second verification result based on the target material property parameters, the first field, the retaining ring material property parameters, and the second field.
[0273] Combination Figure 5 It can be seen that the "verification operation" is the operation of clicking the "calculate and save" button. For example, after clicking the "calculate and save" button, the target material attribute parameters, the first field, the first verification result, the retaining ring material attribute parameters, the second field, and the second verification result will also be stored in the object database.
[0274] Step E17: Control the display of the second verification result.
[0275] Combination Figure 5 As can be seen, the "Second Verification Result" can be displayed at the bottom of the "Design Data" window, such as... Figure 5 In the process, the second verification result can be either "pass / verification successful" or "fail / verification failed".
[0276] Step E18: If the second verification result is unqualified / verification failed, return to step E2.
[0277] Understandably, if users encounter problems while building the target object, they can click the AI assistant button to display the AI assistant page and ask questions through it.
[0278] Step E19: Respond to the industry report generation operation by retrieving the target material attribute parameters, the first field, the first verification result, the retaining ring material attribute parameters, the second field, and the second verification result from the end-ring database.
[0279] like Figure 5 As shown, "Generate Industry Report" refers to the action of clicking the "Industry Report" button.
[0280] Step E20: Replace the corresponding placeholders in the comprehensive report template with the target material property parameters, and replace the corresponding placeholders in the comprehensive report template with the first field value, and replace the corresponding placeholders in the comprehensive report template with the first verification result, and replace the corresponding placeholders in the comprehensive report template with the retaining ring material property parameters, and replace the corresponding placeholders in the comprehensive report template with the second field value, and replace the corresponding placeholders in the comprehensive report template with the second verification result, to obtain the industry report.
[0281] In summary, in one optional implementation, steps E1 to E20 can be implemented using the Django framework, as follows: When a user accesses the first user page and clicks the "End Ring Material" button, the URL route redirects the request to the corresponding view function. The view function reads existing end ring data field values from the end ring database and initializes the form. Specifically, it can control the display of a form containing the target material attribute parameters and the first field. The front-end retrieves a list of all available materials via an Ajax call. After the user selects the target material from the dropdown menu, the system queries the material database in real time and automatically populates the material attribute parameters into the form. The user enters the field value corresponding to the first field and submits the form. The view function receives the first field value and the material attribute parameter value obtained from the form and stores them in the end ring database. A validation operation is then performed, executing the verification logic. If the validation fails, a prompt is made to add a retaining ring and the form is re-rendered. If it passes, the result is saved to the end ring database. Finally, the data to be displayed is passed to the HTML page for rendering, and a report download link is provided.
[0282] For example, the View function creates or updates the entire loop data through the Django ORM, and returns the data to the front-end page to complete the interaction after the data is successfully saved.
[0283] It is understandable that users may encounter problems in the process of designing target objects, namely, problem two in the related technology. Therefore, this application embodiment also provides an AI assistant, namely an intelligent question-and-answer method, which includes the following steps F1 to F5 in the implementation process.
[0284] Step F1: Obtain the search vector for the search statement for the motor design.
[0285] For example, users can click the "AI Assistant" button or issue a "voice query" command to trigger the display of the AI Assistant page.
[0286] For example, after a user clicks the "AI Assistant" button, the Django server returns HTML, and then the SDK.js file is loaded asynchronously to create a chat window, through which the user can enter search queries.
[0287] For example, users can enter search queries on the AI assistant page, such as, "What are the components of a motor?"
[0288] For example, a retrieval vector is a semantic vector representation of a retrieval statement.
[0289] For example, in the embodiments of this application, the preprocessing layer, the core layer, and the application layer interact with each other, and the search statement and answer generation are closely linked and work together to realize the establishment of an AI assistant.
[0290] To help those skilled in the art better understand the interaction between the preprocessing layer, the core layer, and the application layer, a schematic diagram is provided below, as follows: Figure 4 The diagram shown is a flowchart of the AI assistant function provided in an embodiment of this application.
[0291] For example, the AI assistant page is the user interface at the application layer, such as... Figure 4 As shown, when a user enters a search query in the AI assistant interface, the page response loads a script, which returns the specified JS code via a dynamic script service. Then, DOM operations are performed, i.e., the JS is executed to dynamically create a UI chat window. Next, a WebSocket is bound and a WebSocket connection is established for real-time communication to realize the search query and return the answer. Finally, the received answer is presented on the user interaction page like a chat log.
[0292] Step F2: From the preset correspondence between knowledge vectors and text fragments, obtain the target text fragment corresponding to the knowledge vector with the highest similarity to the retrieval vector.
[0293] It is understandable that the "correspondence between knowledge vectors and text fragments" is stored in a vertical domain knowledge base. The following explains the construction process of the "correspondence between knowledge vectors and text fragments".
[0294] This application embodiment achieves the construction of a vertical domain knowledge base through a preprocessing layer.
[0295] The preprocessing layer focuses on building a vertical domain knowledge base, transforming unstructured documents into searchable structured knowledge, specifically through three progressive steps:
[0296] The first step is data extraction: preprocessing locally collected enterprise case studies, literature resources, current national standards and other documents in various formats (supporting TXT, Markdown, PDF, DOCX, HTML, XLS, CSV, ZIP, etc.) to obtain high-quality corpus through text filtering and deduplication operations.
[0297] The second step is text segmentation and vectorization: long documents are decomposed into semantically coherent and appropriately sized segments using recursive segmentation based on tokens; then, an embedding model is used to convert the text segments into embedding vectors, i.e., knowledge vectors, for semantic search.
[0298] The third step is storage: establish a mapping relationship between the knowledge vector and its corresponding text fragment, and store them together in the vertical domain knowledge base.
[0299] At this point, the unstructured document has been transformed into "knowledge" that can be quickly retrieved in the vertical domain knowledge base, completing the construction of the vertical domain knowledge base.
[0300] Step F3: Replace the placeholder representing the context in the preset Prompt template with the target text fragment, and replace the placeholder representing the user question in the preset Prompt template with the search statement to obtain the Prompt text; the preset Prompt template also includes system instructions for instructing to answer the user question in conjunction with the context.
[0301] The following example illustrates the preset Prompt template.
[0302] The default Prompt template is:
[0303] {(1) System instruction: You are an expert in motor design. Please answer the employee question strictly according to the "context" provided below. If the answer cannot be found in the context, please reply directly that you do not know.}
[0304] (2) Context: [Placeholder representing the context].
[0305] (3) User problem: [Placeholder representing user problem]?
[0306] (4) Start answering}.
[0307] In the examples above, “【】” is used to indicate the position of the placeholder.
[0308] Suppose the search query is "What are the components of an electric motor?" and the target text fragment is "《Electric Motor Design Manual》 An electric motor consists of key components such as end rings, rotor, stator, shaft, frame, end covers, bearings, and fan. Each component undertakes multiple functions such as electromagnetic conversion, mechanical support, and thermal management. The design requires multi-physics coupling verification. End rings: As the closed conductor of the short-circuit winding of the squirrel-cage rotor, they are usually made of high-conductivity copper alloy or cast aluminum. They bear the rotational centrifugal force and thermal expansion stress. The tangential stress, radial deformation, and interference fit reliability with the rotor core of the ring body need to be verified. When the speed exceeds 6000 r / min, a retaining ring must be added for reinforcement. Rotor: Divided into squirrel-cage and wound-rotor types, it consists of an iron core, conductor bars (or windings), shaft, etc., and is the rotating component for electromagnetic energy conversion. The design needs to calculate the moment of inertia, centrifugal force distribution, and critical stress." For high-speed motors, rotor dynamics analysis is also required to avoid resonance, considering critical speed and unbalanced response. The stator, consisting of the frame, stator core, and stator windings, is the main channel of the motor's magnetic circuit and the fixed mounting reference. The design must consider electromagnetic loads (line loads, magnetic loads), thermal loads (temperature rise limits), core pressing force, and winding end binding strength to ensure electromagnetic performance and structural rigidity meet requirements. The shaft, connecting the rotor core to the external load, bears alternating torque, bending moment, and axial force. The design requires torsional shear strength verification, bending stiffness calculation, critical speed analysis, and fatigue safety factor assessment. Surface roughness at shaft extension mating parts must be controlled to ensure the reliability of interference fits. All components form a complete motor system through multi-physics coupling; the mechanical design must simultaneously meet four major constraints: electromagnetic performance, strength and stiffness, vibration and noise, and thermal management.
[0309] Therefore, the Prompt text is:
[0310] {(1) System instruction: You are an expert in motor design. Please answer the employee question strictly according to the "context" provided below. If the answer cannot be found in the context, please reply directly that you do not know.}
[0311] (2) Context: The "Electric Motor Design Manual" defines an electric motor as consisting of key components such as end rings, rotor, stator, shaft, frame, end cover, bearings, and fan. Each component performs multiple functions, including electromagnetic conversion, mechanical support, and thermal management. The design requires multi-physics coupling verification. End ring: As the closed conductor of the short-circuit winding of the squirrel-cage rotor, it is usually made of high-conductivity copper alloy or cast aluminum. It bears the rotational centrifugal force and thermal expansion stress. The tangential stress, radial deformation, and interference fit reliability with the rotor core of the ring body need to be verified. When the speed exceeds 6000 r / min, a retaining ring must be added for reinforcement. Rotor: Divided into squirrel-cage and wound-rotor types, it consists of an iron core, conductor bars (or windings), shaft, etc. It is the rotating component for electromagnetic energy conversion. The design needs to calculate the moment of inertia, centrifugal force distribution, critical speed, and unbalanced response. High-speed motors also need to perform rotor dynamics analysis to avoid resonance. Stator: Consists of the frame, stator core, and stator windings. It is the main channel of the motor's magnetic circuit and the fixed installation reference. The design must consider electromagnetic loads (line loads, magnetic loads), thermal loads (temperature rise limits), core pressing force, and winding end binding strength to ensure that electromagnetic performance and structural stiffness meet requirements. The shaft is the transmission component connecting the rotor core to the external load, bearing alternating torque, bending moment, and axial force. The design must include torsional shear strength verification, bending stiffness calculation, critical speed analysis, and fatigue safety factor assessment. Surface roughness at shaft extension mating areas must be controlled to ensure the reliability of interference fits. All components form a complete motor system through multi-physics coupling; the mechanical design must simultaneously meet four major constraints: electromagnetic performance, strength and stiffness, vibration and noise, and thermal management.
[0312] (3) User question: What are the components of a motor?
[0313] (4) Start answering}.
[0314] Step F5: Input the Prompt text into the pre-built motor question-answering model and obtain the answer through the motor question-answering model.
[0315] This application embodiment implements the answer retrieval function through a core layer. The core layer is the brain of the entire AI assistant implementation, mainly running a question-and-answer API service on a container platform, which has advantages such as simplified installation, security and stability, and environmental isolation and consistency.
[0316] In this embodiment, the user's search query is obtained through the AI assistant page in the application layer and sent to the container platform in the core layer via a WebSocket connection to run the question-and-answer API service.
[0317] For example, the motor question-and-answer model is a locally hosted, private, large-scale model. Deploying a locally hosted, private, large-scale language model ensures that all data and models are stored locally, guaranteeing absolute data security and privacy. Enterprises can leverage their core private knowledge base to fine-tune the model, creating an AI assistant that truly understands and accurately interprets their business needs.
[0318] Step F6: Control the display of the answer.
[0319] For example, API services running on a container platform provide real-time feedback to the application layer.
[0320] For example, the answer is rendered onto the chat interface via the SDK.
[0321] The above describes a motor mechanical design method provided by the embodiments of this application. The following will describe the apparatus for performing the above-described motor mechanical design method.
[0322] Please see Figure 6 , Figure 6 This is a schematic diagram of the structure of a motor mechanical design device provided in an embodiment of this application. Figure 6 As shown, the motor mechanical design device includes:
[0323] The first selection module 601 is used to respond to the operation of constructing a target object and select the target material attribute parameter corresponding to the target material from the material attribute parameters corresponding to multiple materials respectively. The target object is a component in the motor.
[0324] The first lookup module 602 is used to look up the first field corresponding to the target object type to which the target object belongs from the preset correspondence between object types and fields. The field includes a geometric dimension field and various coefficient fields for working conditions.
[0325] The first acquisition module 603 is used to acquire the value of the first field corresponding to the first field;
[0326] The second acquisition module 604 is used to respond to the verification operation, obtain and display the first verification result based on the first field value and the target material property parameters.
[0327] In one alternative implementation, it also includes:
[0328] The second search module is used to respond to the industry report generation operation and search for the target report template corresponding to the target object type to which the target object belongs from the preset correspondence between object types and report templates. The target report template includes placeholders corresponding to the target material attribute parameters, placeholders corresponding to the first field, and placeholders corresponding to the first verification result.
[0329] The first replacement module is used to replace the corresponding placeholders in the target report template with the target material property parameters, replace the corresponding placeholders in the target report template with the first field value, and replace the corresponding placeholders in the target report template with the first verification result, so as to obtain an industry report.
[0330] In one optional implementation, the second acquisition module includes:
[0331] The first calculation unit is used to input the target material property parameters and the first field value into a first preset calculation function to obtain the first verification result.
[0332] In an optional implementation, if the target object is an end-ring component, it further includes:
[0333] The first control module is used to prompt the addition of a guard ring component if the first verification result indicates that the verification has failed.
[0334] The second selection module is used to respond to the operation of constructing the retaining ring component and select the retaining ring material property parameter corresponding to the retaining ring material from the material property parameters corresponding to multiple materials;
[0335] The third search module is used to search for the second field corresponding to the guard ring component from the preset correspondence between object types and fields;
[0336] The third acquisition module is used to acquire the value of the second field corresponding to the second field.
[0337] The fourth acquisition module is used to respond to the verification operation, and obtain and display the second verification result based on the target material property parameters, the first field value, the second field value, and the retaining ring material property parameters.
[0338] In one optional implementation, the fourth acquisition module includes:
[0339] The second calculation unit is used to input the target material property parameters, the retaining ring material property parameters, the first field value, and the second field value into the second preset calculation function to obtain the second verification result.
[0340] In one alternative implementation, it also includes:
[0341] The fourth search module is used to respond to the industry report generation operation. It searches for the comprehensive report template corresponding to the end ring component and the guard ring component from the preset correspondence between object types and report templates. The comprehensive report template includes placeholders corresponding to the target material attribute parameters, placeholders corresponding to the first field, placeholders corresponding to the first verification result, placeholders for the guard ring material attribute parameters, placeholders corresponding to the second field, and placeholders for the second verification result.
[0342] The second replacement module is used to replace the corresponding placeholders in the comprehensive report template with the target material property parameters, and to replace the corresponding placeholders in the comprehensive report template with the first field value, and to replace the corresponding placeholders in the comprehensive report template with the first verification result, and to replace the corresponding placeholders in the comprehensive report template with the retaining ring material property parameters, and to replace the corresponding placeholders in the comprehensive report template with the second field value, and to replace the corresponding placeholders in the comprehensive report template with the second verification result, so as to obtain an industry report.
[0343] In one alternative implementation, it also includes:
[0344] The fifth acquisition module is used to obtain the correspondence between placeholders and preset data formats;
[0345] The second control module is used to control the display of the data in the industry report in the preset data format corresponding to the placeholders it replaces.
[0346] In one alternative implementation, it also includes:
[0347] The sixth acquisition module is used to acquire the retrieval vector of the retrieval statement for the motor design;
[0348] The seventh acquisition module is used to acquire the target text fragment corresponding to the knowledge vector with the highest similarity to the retrieval vector from the preset correspondence between knowledge vectors and text fragments;
[0349] The eighth acquisition module is used to replace the placeholders representing the context in the preset Prompt template with the target text fragment, and to replace the placeholders representing the user question in the preset Prompt template with the search statement, so as to obtain the Prompt text; the preset Prompt template also includes system instructions for instructing to answer the user question in conjunction with the context;
[0350] The ninth acquisition module is used to input the Prompt text into a pre-built motor question-and-answer model and obtain the answer through the motor question-and-answer model;
[0351] The third control module is used to control the display of the answer.
[0352] In one alternative implementation, it also includes:
[0353] The fourth control module is used to control the display of a form containing the values of multiple fields.
[0354] In one alternative implementation, the fourth control module includes:
[0355] The first setting unit is used to set the correspondence between different fields in the form and preset data formats, and to add an event listener for each field;
[0356] The first display unit is used to display the field value of each field in the preset data format corresponding to the field.
[0357] In an optional implementation, the preset data format is a decimal with a second predetermined number of decimal places, and the fourth control module further includes:
[0358] The first storage unit is used to save the field values with original data format corresponding to different fields in the form to the originalValues object;
[0359] The second display unit is configured to, for each of the fields, if the second input box of the field is in an edit state, display the field value in the second input box in the original data format; if the second input box is in a non-edit state, display the field value in the second input box in the preset data format.
[0360] In one alternative implementation, the first selection module includes:
[0361] A first control unit is configured to respond to an operation of constructing a target object and control the display of a first user interface, the first user interface including object material buttons;
[0362] The second control unit is used to respond to the operation of pressing the object material button and control the display of the drop-down box, which includes material property parameters corresponding to multiple materials.
[0363] The second acquisition unit is used to acquire the target material attribute parameters corresponding to the target material selected through the drop-down box.
[0364] This application also provides an electronic device in its embodiments. (See reference...) Figure 7The diagram illustrates a structural schematic suitable for implementing the electronic device in the embodiments of this application. The electronic device in the embodiments of this application may include, but is not limited to, fixed terminals such as mobile phones, laptops, PDAs (personal digital assistants), PADs (tablet computers), desktop computers, etc. Figure 7 The electronic device shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments of this application.
[0365] like Figure 7 As shown, the electronic device may include a processing unit (e.g., a central processing unit, a graphics processing unit, etc.) 701, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 702 or a program loaded from a storage device 708 into a random access memory (RAM) 703. When the electronic device is powered on, the RAM 703 also stores various programs and data required for the operation of the electronic device. The processing unit 701, ROM 702, and RAM 703 are interconnected via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.
[0366] Typically, the following devices can be connected to I / O interface 705: input devices 706 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, etc.; output devices 707 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 708 including, for example, memory cards, hard drives, etc.; and communication devices 709. Communication device 709 allows electronic devices to communicate wirelessly or wiredly with other devices to exchange data. Although Figure 7 Electronic devices with various devices are shown, but it should be understood that it is not required to implement or have all of the devices shown. More or fewer devices may be implemented or have alternatively.
[0367] This application also provides a computer program product including computer-readable instructions, which, when executed on an electronic device, cause the electronic device to implement any of the electromechanical design methods provided in this application.
[0368] This application also provides a computer-readable storage medium that carries one or more computer programs. When the one or more computer programs are executed by an electronic device, the electronic device can implement any of the electromechanical design methods provided in this application.
[0369] It should also be noted that the device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. In addition, in the device embodiment drawings provided in this application, the connection relationship between modules indicates that they have a communication connection, which can be implemented as one or more communication buses or signal lines.
[0370] Through the above description of the embodiments, those skilled in the art can clearly understand that this application can be implemented by means of software plus necessary general-purpose hardware, or it can be implemented by special-purpose hardware including application-specific integrated circuits, special-purpose CPUs, special-purpose memory, special-purpose components, etc. Generally, any function performed by a computer program can be easily implemented by corresponding hardware, and the specific hardware structure used to implement the same function can also be diverse, such as analog circuits, digital circuits, or special-purpose circuits. However, for this application, software program implementation is more often the preferred implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a readable storage medium, such as a computer floppy disk, USB flash drive, mobile hard disk, ROM, RAM, magnetic disk, or optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, training equipment, or network device, etc.) to execute the methods described in the various embodiments of this application.
[0371] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented, in whole or in part, as a computer program product.
[0372] The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions may be transmitted from one website, computer, training device, or data center to another website, computer, training device, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that a computer can store or a data storage device such as a training device or data center that integrates one or more available media. The available media may be magnetic media (e.g., floppy disks, hard disks, magnetic tapes), optical media (e.g., DVDs), or semiconductor media (e.g., solid-state drives (SSDs)).
Claims
1. A method for designing the mechanical structure of an electric motor, characterized in that, include: In response to the operation of constructing a target object, the target material property parameter corresponding to the target material is selected from the material property parameters corresponding to multiple materials, wherein the target object is a component in the motor; From the preset correspondence between object types and fields, find the first field corresponding to the target object type to which the target object belongs, the field including geometric dimension field and various working condition coefficient fields; Get the value of the first field corresponding to the first field; In response to the verification operation, the first verification result is obtained and displayed based on the first field value and the target material property parameters.
2. The motor mechanical design method according to claim 1, characterized in that, Also includes: In response to the operation of generating an industry report, the system searches for the target report template corresponding to the target object type of the target object from the preset correspondence between object types and report templates. The target report template includes placeholders corresponding to the target material attribute parameters, placeholders corresponding to the first field, and placeholders corresponding to the first verification result. The target material property parameter is replaced with the corresponding placeholder in the target report template, the first field value is replaced with the corresponding placeholder in the target report template, and the first verification result is replaced with the corresponding placeholder in the target report template to obtain an industry report.
3. The motor mechanical design method according to claim 1, characterized in that, The steps for obtaining the first verification result based on the first field value and the target material property parameters include: The target material property parameters and the first field value are substituted into a first preset calculation function to obtain the first verification result.
4. The motor mechanical design method according to any one of claims 1 to 3, characterized in that, If the target object is an end ring component, it also includes: If the first verification result indicates that the verification has failed, the control prompts to add a guard ring component; In response to the operation of constructing the retaining ring component, select the retaining ring material property parameter corresponding to the retaining ring material from the material property parameters corresponding to multiple materials; From the preset correspondence between object types and fields, find the second field corresponding to the retaining ring component; Get the value of the second field corresponding to the second field; In response to the verification operation, a second verification result is obtained and displayed based on the target material property parameters, the first field value, the second field value, and the retaining ring material property parameters.
5. The motor mechanical design method according to claim 4, characterized in that, The step of obtaining and displaying the second verification result based on the target material property parameters, the first field value, the second field value, and the retaining ring material property parameters includes: The target material property parameters, the retaining ring material property parameters, the first field value, and the second field value are substituted into the second preset calculation function to obtain the second verification result.
6. The motor mechanical design method according to claim 4, characterized in that, Also includes: In response to the operation of generating an industry report, the system searches for the comprehensive report template corresponding to the end ring component and the retaining ring component from the preset correspondence between object types and report templates. The comprehensive report template includes placeholders corresponding to the target material attribute parameters, the first field, the first verification result, the retaining ring material attribute parameters, the second field, and the second verification result. The target material property parameter is replaced with the corresponding placeholder in the comprehensive report template, the first field value is replaced with the corresponding placeholder in the comprehensive report template, the first verification result is replaced with the corresponding placeholder in the comprehensive report template, the retaining ring material property parameter is replaced with the corresponding placeholder in the comprehensive report template, the second field value is replaced with the corresponding placeholder in the comprehensive report template, and the second verification result is replaced with the corresponding placeholder in the comprehensive report template to obtain the industry report.
7. The motor mechanical design method according to claim 2 or 6, characterized in that, Also includes: Obtain the correspondence between placeholders and preset data formats; The data in the industry report is controlled to be displayed in the preset data format corresponding to the placeholders it replaces.
8. The mechanical design method for an electric motor according to claim 1, characterized in that, Also includes: Obtain the search vector for the search query targeting the motor design; From the preset correspondence between knowledge vectors and text fragments, obtain the target text fragment corresponding to the knowledge vector with the highest similarity to the retrieval vector; Replace the placeholders representing the context in the preset Prompt template with the target text fragment, and replace the placeholders representing the user's question in the preset Prompt template with the search statement to obtain the Prompt text; The preset Prompt template also includes system instructions for instructing users to answer questions in conjunction with context. The Prompt text is input into a pre-built motor question-and-answer model, and the answer is obtained through the motor question-and-answer model; The control displays the answer.
9. The motor mechanical design method according to claim 1, characterized in that, Also includes: Controls the display of a form containing the values of multiple fields.
10. The mechanical design method for an electric motor according to claim 9, characterized in that, The control display of the form, which includes the values of multiple fields, includes the following steps: Define the correspondence between different fields in the form and preset data formats, and add an event listener for each field; For each field, the field value is displayed in the preset data format corresponding to the field.
11. The motor mechanical design method according to claim 9, characterized in that, The preset data format is a decimal with a second predetermined number of decimal places, and also includes: Save the field values with the original data format corresponding to the different fields in the form to the originalValues object; For each field, if the second input box of the field is in edit mode, the field value in the second input box is displayed in the original data format; if the second input box is in non-edit mode, the field value in the second input box is displayed in the preset data format.
12. The motor mechanical design method according to claim 1, characterized in that, The operation of constructing a target object in response includes the step of selecting the target material property parameter corresponding to the target material from the material property parameters corresponding to multiple materials, which includes: In response to the operation of constructing the target object, control the display of the first user interface, which includes object material buttons; In response to the touch operation of the object material button, a drop-down list is displayed, which includes material property parameters corresponding to multiple materials; The operation of obtaining the target material attribute parameters corresponding to the target material selected through the drop-down box.
13. A mechanical design device for an electric motor, characterized in that, include: The first selection module is used to respond to the operation of constructing a target object and select the target material property parameter corresponding to the target material from the material property parameters corresponding to multiple materials. The target object is a component in the motor. The first search module is used to search for the first field corresponding to the target object type to which the target object belongs from the preset correspondence between object types and fields. The field includes a geometric dimension field and various coefficient fields for working conditions. The first acquisition module is used to acquire the value of the first field corresponding to the first field; The second acquisition module is used to respond to the verification operation, obtain and display the first verification result based on the first field value and the target material property parameters.
14. A computer program product, characterized in that, It includes computer-readable instructions that, when executed on an electronic device, cause the electronic device to implement the electromechanical design method as described in any one of claims 1 to 12.
15. An electronic device, characterized in that, It includes at least one processor and a memory connected to the processor, wherein: The memory is used to store computer programs; The processor is used to execute the computer program to enable the electronic device to implement the electromechanical design method as described in any one of claims 1 to 12.
16. A computer storage medium, characterized in that, The storage medium carries one or more computer programs that, when executed by an electronic device, enable the electronic device to implement the electromechanical design method as described in any one of claims 1 to 12.