CN116186816B - Rotary machine parameter display method, storage medium and electronic device - Google Patents

Rotary machine parameter display method, storage medium and electronic device Download PDF

Info

Publication number
CN116186816B
CN116186816B CN202310460627.4A CN202310460627A CN116186816B CN 116186816 B CN116186816 B CN 116186816B CN 202310460627 A CN202310460627 A CN 202310460627A CN 116186816 B CN116186816 B CN 116186816B
Authority
CN
China
Prior art keywords
parameter
attribute
parameters
industrial design
rotary machine
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202310460627.4A
Other languages
Chinese (zh)
Other versions
CN116186816A (en
Inventor
李强
峁政波
魏征
刘驰
郝帅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shaanxi Aerospace Information Technology Co ltd
Original Assignee
Shaanxi Aerospace Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shaanxi Aerospace Information Technology Co ltd filed Critical Shaanxi Aerospace Information Technology Co ltd
Priority to CN202310460627.4A priority Critical patent/CN116186816B/en
Publication of CN116186816A publication Critical patent/CN116186816A/en
Application granted granted Critical
Publication of CN116186816B publication Critical patent/CN116186816B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Testing And Monitoring For Control Systems (AREA)
  • Control Of Electric Motors In General (AREA)

Abstract

The disclosure provides a rotating machinery parameter display method, a storage medium and electronic equipment; relates to the technical field of computers. The method comprises the following steps: in response to a selection operation of a type of rotary machine on an industrial design interface, acquiring a first parameter required for industrial design of the current rotary machine from a preset database; wherein the first parameter comprises a second parameter and a third parameter associated with a candidate subparameter included in the second parameter; determining a third parameter associated with the target sub-parameter in the candidate sub-parameters, and displaying the third parameter in the industrial design interface according to the preset attribute of the third parameter; and responding to the switching operation of the target subparameter, modifying the preset attribute of the third parameter into the current attribute, and updating the display state of the third parameter according to the current attribute. According to the method and the device, the parameter attribute is managed through the preset database, dynamic modification of the parameter attribute can be achieved without modifying a software code, and flexibility of rotating machinery parameter display is greatly improved.

Description

Rotary machine parameter display method, storage medium and electronic device
Technical Field
The present disclosure relates to the field of computer technology, and in particular, to a method for displaying parameters of a rotating machine, a computer-readable storage medium, and an electronic device.
Background
Rotary machines are widely used in the fields of aviation, electric power, machinery, chemical industry, etc., and it is necessary to perform computer modeling, analysis and design of the rotary machines.
Currently, in related industrial design software, it is often necessary to dynamically adjust the properties of related parameters in different scenarios. For rotary machine design, when industrial design of rotary machines involves massive parameters (thousands of parameters), due to complex and changeable relationships between parameters, a situation that a certain type of parameter is displayed in multiple category interfaces often occurs. Wherein, the display state of the parameter is usually fixed, resulting in poor flexibility of parameter display. In addition, if the display state of a certain parameter needs to be adjusted, all software codes related to the parameter need to be modified, so that the flexibility of parameter display is further reduced.
It should be noted that the information disclosed in the above background section is only for enhancing understanding of the background of the present disclosure and thus may include information that does not constitute prior art known to those of ordinary skill in the art.
Disclosure of Invention
An embodiment of the disclosure is directed to a method for displaying parameters of a rotating machine, a computer-readable storage medium, and an electronic device, so as to solve the problem of poor flexibility of parameter display in a design process of the rotating machine at least to a certain extent.
Other features and advantages of the present disclosure will be apparent from the following detailed description, or may be learned in part by the practice of the disclosure.
According to a first aspect of an embodiment of the present disclosure, there is provided a method for displaying parameters of a rotary machine, including:
in response to a selection operation of a type of rotary machine on an industrial design interface, acquiring a first parameter required for industrial design of the current rotary machine from a preset database; wherein the first parameter comprises a second parameter and a third parameter associated with a candidate subparameter contained in the second parameter;
determining a third parameter associated with a target sub-parameter in the candidate sub-parameters, and displaying the third parameter in the industrial design interface according to a preset attribute of the third parameter;
and responding to the switching operation of the target sub-parameters, modifying the preset attribute of the third parameter into the current attribute, and updating the display state of the third parameter according to the current attribute.
According to a second aspect of embodiments of the present disclosure, there is provided a rotary machine parameter display device including:
the parameter acquisition module is used for responding to the selection operation of the type of the rotating machinery on the industrial design interface and acquiring a first parameter required by industrial design of the current rotating machinery from a preset database; wherein the first parameter comprises a second parameter and a third parameter associated with a candidate subparameter contained in the second parameter;
the parameter display module is used for determining a third parameter associated with a target sub-parameter in the candidate sub-parameters and displaying the third parameter in the industrial design interface according to the preset attribute of the third parameter;
and the parameter updating module is used for responding to the switching operation of the target subparameter, modifying the preset attribute of the third parameter into the current attribute, and updating the display state of the third parameter according to the current attribute.
According to a third aspect of embodiments of the present disclosure, there is provided an electronic device, comprising: a processor; and a memory having stored thereon computer readable instructions that when executed by the processor implement the rotary machine parameter display method of the first aspect.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the rotating machinery parameter display method in the first aspect.
The technical scheme provided by the embodiment of the disclosure can comprise the following beneficial effects:
in response to a selection operation of a rotating machine type on an industrial design interface, acquiring a first parameter required for industrial design of a current rotating machine from a preset database; wherein the first parameter comprises a second parameter and a third parameter associated with a candidate subparameter contained in the second parameter; determining a third parameter associated with a target sub-parameter in the candidate sub-parameters, and displaying the third parameter in the industrial design interface according to a preset attribute of the third parameter; and responding to the switching operation of the target sub-parameters, modifying the preset attribute of the third parameter into the current attribute, and updating the display state of the third parameter according to the current attribute. On one hand, the parameter attribute is managed through the preset database, and the parameter attribute is supported to be dynamically modified, so that the flexibility of the parameter display of the rotary machine is improved compared with the parameter display state which is fixed in the related technology; on the other hand, parameter attributes are configured through a preset database, and parameter attribute changes are controlled according to the logic relation among the parameter attributes, compared with the method for realizing parameter attribute changes by modifying software codes in the related art, the method for displaying corresponding parameters on an industrial design interface, and the method for displaying the parameters further improves flexibility of rotating machinery parameter display and reduces complexity of parameter display.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure. It will be apparent to those of ordinary skill in the art that the drawings in the following description are merely examples of the disclosure and that other drawings may be derived from them without undue effort.
Fig. 1 shows a schematic diagram of a system architecture to which a rotary machine parameter display method of an embodiment of the present disclosure may be applied.
Fig. 2 is a flow chart illustrating a method for displaying parameters of a rotary machine according to an embodiment of the disclosure.
FIG. 3 illustrates a schematic diagram of an industrial design interface in an embodiment of the present disclosure.
FIG. 4 illustrates a schematic diagram of another industrial design interface in an embodiment of the present disclosure.
Fig. 5 is a flow chart illustrating another method for displaying parameters of a rotary machine according to an embodiment of the present disclosure.
Fig. 6 shows a block diagram of a rotary machine parameter display device in an embodiment of the present disclosure.
Fig. 7 shows a schematic diagram of an electronic device suitable for use in implementing embodiments of the present disclosure.
In the drawings, the same or corresponding reference numerals indicate the same or corresponding parts.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. However, the exemplary embodiments may be embodied in many forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of the example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
Furthermore, the drawings are merely schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus a repetitive description thereof will be omitted. Some of the block diagrams shown in the figures are functional entities and do not necessarily correspond to physically or logically separate entities. These functional entities may be implemented in software or in one or more hardware modules or integrated circuits or in different networks and/or processor devices and/or microcontroller devices.
Fig. 1 shows a schematic diagram of a system architecture to which a rotary machine parameter display method of an embodiment of the present disclosure may be applied.
As shown in fig. 1, the system architecture 100 may include one or more of a desktop computer 101, a portable computer 102, a smart phone 103, and other terminal devices, a network 104, and a server 105. The network 104 is the medium used to provide communication links between the terminal devices and the server 105. The network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others. The terminal device may be various electronic devices with data processing functions, which have a display screen thereon for presenting the industrial design interface and the rotating mechanical parameters in the interface to the user, including but not limited to the desktop computer, portable computer, smart phone, tablet computer, etc. described above. It should be understood that the number of terminal devices, networks and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation. For example, the server 105 may be a server cluster formed by a plurality of servers.
The method for displaying the parameters of the rotating machine provided by the embodiment of the disclosure is generally executed by the terminal device, and accordingly, the display device of the parameters of the rotating machine is generally disposed in the terminal device. However, it will be readily understood by those skilled in the art that the method for displaying a rotating machine parameter provided in the embodiment of the present disclosure may be performed by the server 105, and accordingly, the rotating machine parameter display device may be disposed in the server 105, which is not particularly limited in the present exemplary embodiment.
In an exemplary embodiment of the present disclosure, a method for displaying parameters of a rotating machine is provided first, and a terminal device is used to execute the method as an example, to describe the method for displaying parameters of a rotating machine in the embodiment of the present disclosure in detail. Referring to fig. 2, a flow chart of a method for displaying parameters of a rotary machine is shown, which may include the following steps S210 to S230:
step S210, responding to the selection operation of the type of the rotating machinery on an industrial design interface, and acquiring a first parameter required for industrial design of the current rotating machinery from a preset database; wherein the first parameter comprises a second parameter and a third parameter associated with a candidate subparameter contained in the second parameter;
step S220, determining a third parameter associated with a target sub-parameter in the candidate sub-parameters, and displaying the third parameter in the industrial design interface according to a preset attribute of the third parameter;
step S230, in response to the switching operation on the target sub-parameter, modifying the preset attribute of the third parameter to a current attribute, and updating the display state of the third parameter according to the current attribute.
According to the rotating machinery parameter display method in the example embodiment, on one hand, parameter attributes are managed through a preset database, and dynamic modification of the parameter attributes is supported, so that the flexibility of rotating machinery parameter display is improved compared with the parameter display state which is fixed in the related art; on the other hand, parameter attributes are configured through a preset database, and parameter attribute changes are controlled according to the logic relation among the parameter attributes, compared with the method for realizing parameter attribute changes by modifying software codes in the related art, the method for displaying corresponding parameters on an industrial design interface, and the method for displaying the parameters further improves flexibility of rotating machinery parameter display and reduces complexity of parameter display.
Next, the above steps of the present exemplary embodiment will be described in more detail.
In step S210, in response to a selection operation of a type of the rotating machine on the industrial design interface, acquiring a first parameter required for industrial design of the current rotating machine from a preset database; wherein the first parameter includes a second parameter and a third parameter associated with a candidate subparameter included in the second parameter.
The rotary machine may be a steam turbine, a gas turbine, a centrifugal compressor, a generator, a water pump, a water turbine, a ventilator, or the like. It is to be understood that the present disclosure is not particularly limited as to the type of rotary machine.
The rotary machine parameter display method of the present disclosure may be used to design an entire rotary machine, as well as to design certain components in a rotary machine. Taking a component in a rotary machine as an example, after a user selects the component on an industrial design interface, a first parameter involved in designing the component may be obtained from a preset database.
In an example embodiment of the present disclosure, the preset database includes a data structure table and an initialization data template, where the data structure table further includes a first data table and a second data table. Specifically, the first data table is used for storing a first parameter, including a first parameter identifier and a first parameter attribute. The second data table is used for storing candidate sub-parameters contained in the second parameter, and comprises a second parameter identifier, a candidate sub-parameter attribute and a third parameter attribute associated with the candidate sub-parameter. The initialization data template is used for storing initial values of first parameters corresponding to various types of rotary machines, namely, different types of rotary machines correspond to different initialization data templates, and the corresponding initialization data templates can be obtained according to the types of the rotary machines, and can be solved according to the initial values of the parameters in the initialization data templates so as to obtain data values of display parameters in an industrial design interface.
Illustratively, the first data table is used to define all parameters involved in the industrial design of the rotary machine. The first data table may also be used to define some of the parameters involved in the industrial design of the rotary machine, depending on the specific use requirements of the user, as this disclosure is not limited.
Taking the impeller as an example, the first parameters stored in the first data table are all parameters required for designing the impeller, including but not limited to, parameters such as inflow form, outlet pressure, inlet pressure, rotating speed, inlet total temperature, outlet total temperature and the like. The first data table includes a parameter identifier, such as a parameter ID, a parameter name, etc., of each first parameter, and also includes a parameter attribute, such as, but not limited to input, output, header, hidden, metaheader, unavailable, etc., of each parameter. Wherein input represents input parameters required by a solver for impeller design, output represents output parameters after the solver for impeller design operates, header represents parameters which can be used as titles after classifying the parameters through a filter file, hidden represents parameters as a hidden state, metaheader represents parameters as the first title of a part, a stage or a component, and available represents parameters as an unavailable state. For example, for the parameter of the outlet pressure, 13 (variable ID), outlet pressure (variable name) and output (variable attribute) are stored correspondingly in the first data table. In addition, in the metaheader attribute, for example, when the component involved in the attribute is a turbine of an aeroengine, the corresponding stage means a movable blade and a stationary blade included in the turbine, each stage is independent from the other, and the component means a certain blade on the stage.
It should be noted that the first parameter includes not only the visual parameter in the industrial design interface, but also all parameters, menus, option names, etc. required in the internal logic of the industrial design software. By way of example, referring to fig. 3, an industrial design interface is schematically shown, the currently selected component is an impeller, and basic information, air intake parameters, pneumatic parameters, blade settings, solution settings, incoming flow forms, total inlet pressure, total inlet temperature, absolute air intake angle, absolute air outlet angle, rotational speed and inlet mass flow related to the impeller displayed in the interface are all first parameters and stored in a first data table. The basic information, the air inlet parameters, the pneumatic parameters, the blade setting and solving are set as category parameters, the inlet total pressure, the inlet total temperature, the absolute air inlet angle, the absolute air outlet angle, the rotating speed and the inlet mass flow are selected parameters, the incoming flow is a pull-down selected parameter, and the method also comprises two candidate sub-parameters of radial uniform flow and radial non-uniform flow.
As can be seen from fig. 3, when the incoming flow is in the form of a radially uniform flow, the parameters associated with the radially uniform flow are the total inlet pressure, the total inlet temperature, the absolute inlet angle, the absolute outlet angle, the rotational speed, the inlet mass flow. In addition, information such as data values, units and the like of each option parameter can be displayed in the industrial design interface shown in fig. 3, for example, the total inlet pressure is 965KPa. It will be appreciated that the user can manually edit the data values for the option parameters at the industrial design interface.
In example embodiments of the present disclosure, a first parameter including a candidate sub-parameter may be recorded as a second parameter, and the candidate sub-parameter included in the second parameter may be stored in a second data table. In addition, the first parameter associated with the candidate subparameter included in the second parameter may be noted as the third parameter. Taking the industrial design interface shown in fig. 3 as an example, for example, when the candidate sub-parameter is radial uniform flow, the second parameter to which the candidate sub-parameter belongs is in the form of incoming flow, and the third parameter associated with the candidate sub-parameter is inlet total pressure, inlet total temperature, absolute air inlet angle, absolute air outlet angle, rotating speed and inlet mass flow.
Specifically, the second data table includes a parameter ID, a parameter name, a candidate subparameter attribute, and a third parameter attribute associated with the candidate subparameter for each second parameter. Similarly, candidate subparameter attributes may be represented by attribute codes, e.g., encoding input, output, header, hidden, metaheader, unavailable or like attributes as six different attribute codes, 0, 1, 2, 3, 4, 5. In other examples, each sub-parameter attribute may also be encoded into an attribute code in other representations, as this disclosure is not limited in this regard.
For example, for the candidate subparameter of the radial uniform flow, 1 (second parameter ID), the incoming flow form (second parameter name), ht_constant/radial uniform flow (candidate subparameter name), 0 (candidate subparameter attribute), and action (parameter attribute relationship) are correspondingly stored in the second data table. The second data table may also store display names for each candidate subparameter corresponding in the industrial design interface. It should be noted that, the action may include a plurality of attribute relationships of the third parameters associated with the candidate sub-parameters, so as to determine whether the attribute of each third parameter corresponds to a display state or a hidden state.
In step S220, a third parameter associated with the target sub-parameter of the candidate sub-parameters is determined, and the third parameter is displayed in the industrial design interface according to a preset attribute of the third parameter.
In an example embodiment of the present disclosure, the preset database further includes a filtering file, where the filtering file may be used to filter the first parameter, so as to implement classification, display and hiding logic of the first parameter. For example, after the first parameter is obtained from the preset database, a filter file corresponding to the type of the current rotary machine may be loaded from the preset database, and the first parameter may be filtered by using the filter file.
For example, 2000 first parameters are obtained from a preset database, and according to actual use requirements, only 500 first parameters are included in a preconfigured filter file. When the first parameters are filtered by the filtering file, 500 first parameters obtained by filtering can be classified according to the use scene and the functions of each parameter, and the filtering file can be also understood as storing custom parameter classification rules, so that the parameters can be edited efficiently and conveniently after being classified. And the parameter redundancy can be reduced, the updating efficiency of the parameters is improved, and the flexibility of the parameter display is further improved.
In an example embodiment of the present disclosure, an initialization data template corresponding to a type of a current rotating machine may be further loaded from a preset database, and an initial value of the first parameter may be obtained from the initialization data template. In this example, the corresponding initialized data templates are read according to the type of the rotary machine, and the solver performs data conversion and outputs initialized parameters, so as to dynamically adjust default values of the parameters.
After the initial value of the first parameter is obtained, a third parameter associated with the target subparameter in the candidate subparameter can be determined, so that a data value of the third parameter associated with the target subparameter is obtained by solving according to the initial value of the first parameter, and then the third parameter and the data value of the third parameter are correspondingly displayed in an industrial design interface according to the preset attribute of the third parameter.
Still taking the industrial design interface shown in fig. 3 as an example, when the target subparameter is a radial uniform flow, the data values of the third parameter associated with the radial uniform flow, such as the total inlet pressure, the total inlet temperature, and the like, can be directly obtained from the initialized data template. Whereas for the inlet mass flow, the initial value of the unit fluid mass and the initial value of the unit time are obtained from the initialization data template, the initial value of the inlet mass flow is not directly obtained. Therefore, it is necessary to calculate the data value of the inlet mass flow rate from the initial value of the unit fluid mass and the initial value of the unit time, for example, the calculated inlet mass flow rate is 54Kg/s. The preset database is configured with preset attributes of all third parameters, such as input of the total inlet pressure, the total inlet temperature and other parameters, and the total inlet pressure 965KPa and the total inlet temperature 500K can be correspondingly displayed on an industrial design interface.
In step S230, in response to the switching operation on the target sub-parameter, a preset attribute of the third parameter is modified to a current attribute, and a display state of the third parameter is updated according to the current attribute.
Taking the target sub-parameter as a radial uniform flow as an example, when the user switches the target sub-parameter through the drop-down option box, the attribute of the third parameter related to the target sub-parameter can be modified. In fig. 3, the preset attributes of the parameters of the inlet total pressure, the inlet total temperature, the absolute air inlet angle, the absolute air outlet angle, the rotating speed, the inlet mass flow and the like associated with the radial uniform flow are all inputs. In the interface of impeller-air inlet parameter-incoming flow form, when the radial uniform flow is switched into radial non-uniform flow in the drop-down option box, the attribute of part of parameters in the industrial design interface shown in fig. 3 is changed, and after the attribute list is refreshed again, the interface display parameter is changed.
In an example embodiment, the switching from radially uniform to radially non-uniform flow in the drop-down option box of FIG. 3 may be switched from the industrial design interface shown in FIG. 3 to the industrial design interface shown in FIG. 4. The total inlet pressure, total inlet temperature and absolute inlet angle are changed from a preset attribute input to a current attribute hidden, and the total inlet pressure, total inlet temperature and absolute inlet angle are correspondingly canceled from being displayed on an industrial design interface. The absolute gas outlet angle, the rotating speed and the inlet mass flow are unchanged in attribute, and the display state in the industrial design interface is unchanged.
It can be understood that, in response to the switching operation on the target sub-parameter, a third parameter associated with the switched current sub-parameter may also be obtained, a current attribute of the third parameter associated with the switched current sub-parameter is determined according to a preset judgment condition, and the third parameter is correspondingly displayed in the industrial design interface according to the current attribute of the third parameter. For example, when the radial uniform flow is switched to the radial non-uniform flow in the pull-down option box, parameters such as total blade tip inlet pressure, total blade root inlet pressure, total blade tip inlet temperature, total blade root inlet temperature, absolute blade tip inlet angle, absolute blade root inlet angle and the like associated with the radial non-uniform flow can be obtained. The preset judging condition is a constraint condition for judging the attribute relation of each parameter. For example, the preset judgment conditions are: if the attribute of the total inlet temperature is hidden, the attribute of the total blade tip inlet temperature and the total blade root inlet temperature is input. As the current attribute of the inlet total pressure, the inlet total temperature and the absolute air inlet angle is changed into hidden, the total blade tip inlet pressure and the total blade root inlet pressure can be judged, and the total blade tip inlet temperature, the total blade root inlet temperature, the absolute blade tip air inlet angle and the absolute blade root air inlet angle are changed from the preset attribute hidden into the current attribute input and correspondingly displayed in an industrial design interface.
For example, the parameter mapping relationship may be refreshed by calling a function to switch the display parameters of the interface. For example, a mapping relationship among the first parameter, the level or component ID where the first parameter is located, and the third parameter related to the level or component ID is established through a defined function AllDocument () →getclass () →classmaps (), and an attribute path map of the first parameter is established, so that a display parameter of a current interface can be obtained according to an attribute path change when the interface is switched. It can be understood that the mapping relationship may be a mapping relationship established between the first parameter, the second parameter and the third parameter based on a certain attribute relationship, and the effect of the mapping relationship is to obtain the display attribute of the target third parameter based on the first parameter no matter how the mapping relationship changes, so as to display the target third parameter of the corresponding interface. It will be appreciated that the present embodiment displays the parameter with the attribute of input in the industrial design interface, and correspondingly, the parameter with the attribute of hidden in the same industrial design interface is not displayed.
In this example, the parameter attribute is configured through the database, so that the parameter mapping relation, that is, the corresponding relation between the parameter and the parameter attribute, can be read according to the subparameter selected by the user from the drop-down option parameter, the parameter attribute is controlled through the preset judging condition, and the updating of the interface parameter is realized after the whole attribute list is refreshed. Compared with the mode of modifying parameters by codes in the related art, the method greatly improves the flexibility of parameter display and reduces the code quantity of parameter updating.
In an exemplary embodiment, the data structure table in the preset database further includes a third data table, where the third data table is used to initialize a correspondence between parameter names of all parameters and interface display names, that is, parameter identifiers, such as parameter IDs and parameter names, of visual parameters in the industrial design interface are stored in the third data table, and further includes parameter prompt information of the visual parameters, where the parameter prompt information may be an explanation for a certain visual parameter, a legend corresponding to the visual parameter, and a legend name, and the disclosure is not limited to this. For example, for the incoming FLOW form in the industrial design interface shown in fig. 3, corresponding stored in the third data table are 1 (parameter ID), flow_process/incoming FLOW form (parameter name), mechanical inlet FLOW distribution (parameter explanation), FLOW.
For example, in response to a touch operation on the target visualization parameters on the industrial design interface, parameter prompt information corresponding to the target visualization parameters is displayed in the industrial design interface. For example, for the "incoming flow form" in the industrial design interface shown in fig. 3, when the user clicks on the location of the parameter, a sub-interface may be displayed in any area in the industrial design interface, where the sub-interface is used to display an explanation for the parameter, i.e. the sub-interface is displayed with a word "mechanical inlet flow distribution" to help the user design each parameter more accurately. In other examples, when the user clicks on the location of "incoming flow form", a legend for characterizing "incoming flow form" may also be presented in any area in the industrial design interface, which is not limited by the present disclosure.
In other words, the preset database is composed of three data tables, and the first data table contains the initial attributes of all parameters. The second data table contains all parameters influenced by Chinese and English translations of candidate subparameters in the parameters of the drop-down options and the currently selected target subparameter, and dynamic change of the parameter attribute can be realized through preset judgment conditions. The third data table contains Chinese and English translations, parameter prompt information and parameter legend names of all visual parameters (except for each candidate subparameter in the drop-down option parameters) of the industrial design interface.
In the exemplary embodiment of the disclosure, the data in the preset database may be managed, specifically, three data tables in the preset database may be read respectively and stored in a specified data structure, such as a memory data structure. Analyzing the first data table, and adding initial attributes of all parameters in the first data table. And analyzing the second data table, and adding the Chinese-English translation, default attribute and parameter judgment logic influenced by the currently selected target subparameter of each candidate subparameter in the drop-down option parameters. And analyzing the third data table, and adding Chinese and English translations, parameter prompt information and parameter legend names of all the visual parameters in the third data table.
In an example embodiment, as shown in fig. 5, flexible display of rotating machine parameters in an industrial design interface may be achieved according to steps S510 through S590.
Step S510, selecting a rotary machine type;
step S520, loading database files: and loading corresponding database files from a preset database according to the selected rotating machine type, wherein the database files comprise three data tables and store parameters and parameter information required by the design of the rotating machine. After the database file is successfully loaded, step S530 is executed, and if the database file is loaded in error, the process is ended;
step S530, analyzing and mapping the parameter attribute to generate a memory data structure;
step S540, loading an initialization data template: loading an initialization data template from a preset database according to the selected rotary machine type, and reading the initial values, units and other information of all parameters in the initialization data template;
step S550, loading a filter file: loading a filtering file from a preset database according to the selected type of the rotary machine, and classifying parameters related to the design of the rotary machine by utilizing the filtering file;
step S560, initializing a solver; and according to the parameter initial value in the initialized data template, performing data conversion by using a solver and outputting the data conversion to design software as the data initial value of the display parameter. After obtaining the data initial value of the display parameter by the solver, executing step S570, if the solving is wrong, if the total temperature obtained by the solving is negative, ending the flow;
Step S570, UI interface display;
step S580, modifying the candidate sub-parameters in the pull-down option parameters;
and step S590, refreshing the parameter attribute mapping relation to realize that different parameters are displayed on different pages under the same menu.
It should be noted that, the execution sequence of the step S540 and the step S550 is not specifically limited in this disclosure, the step S540 may be executed first to load the initialization data template, then the step S550 may be executed to load the filter file, or the step S550 may be executed first to load the filter file, and then the step S540 may be executed to load the initialization data template.
According to the rotating machinery parameter display method in the example embodiment, on one hand, parameter attributes are managed through a preset database, and dynamic modification of the parameter attributes is supported, so that the flexibility of rotating machinery parameter display is improved compared with the parameter display state which is fixed in the related art; on the other hand, parameter attributes are configured through a preset database, and parameter attribute changes are controlled according to the logic relation among the parameter attributes, compared with the method for realizing parameter attribute changes by modifying software codes in the related art, the method for displaying corresponding parameters on an industrial design interface, and the method for displaying the parameters further improves flexibility of rotating machinery parameter display and reduces complexity of parameter display.
Further, in the present exemplary embodiment, a rotating machine parameter display device is also provided. Referring to fig. 6, the rotating machine parameter display device 600 may include a parameter acquisition module 610, a parameter display module 620, and a parameter update module 630, wherein:
a parameter obtaining module 610, configured to obtain, from a preset database, a first parameter required for performing industrial design on a current rotary machine in response to a selection operation of a type of the rotary machine on an industrial design interface; wherein the first parameter comprises a second parameter and a third parameter associated with a candidate subparameter contained in the second parameter;
a parameter display module 620, configured to determine a third parameter associated with a target sub-parameter of the candidate sub-parameters, and display the third parameter in the industrial design interface according to a preset attribute of the third parameter;
and a parameter updating module 630, configured to respond to a switching operation on the target subparameter, modify a preset attribute of the third parameter to a current attribute, and update a display state of the third parameter according to the current attribute.
In an alternative embodiment, the preset database comprises a data structure table and an initialization data template, the data structure table comprises a first data table and a second data table, wherein,
The first data table is used for storing the first parameter, and comprises a first parameter identifier and a first parameter attribute;
the second data table is used for storing candidate sub-parameters contained in the second parameter, and comprises a second parameter identifier, a candidate sub-parameter attribute and a third parameter attribute associated with the candidate sub-parameter;
the initialization data template is used for storing initial values of first parameters corresponding to various rotary machines.
In an alternative embodiment, the preset database includes a filter file; the rotating machine parameter display device 600 further includes a parameter filtering module, where the parameter filtering module is configured to load a filtering file corresponding to the current rotating machine type from the preset database, and filter the first parameter by using the filtering file, so as to implement classification, display and hiding of the first parameter.
In an alternative embodiment, the rotating machine parameter display device 600 further includes a parameter initialization module configured to load an initialization data template corresponding to the type of the current rotating machine from the preset database, and obtain an initial value of the first parameter from the initialization data template.
In an alternative embodiment, parameter display module 620 is configured to determine a third parameter associated with a target subparameter of the candidate subparameters; and solving according to the initial value of the first parameter to obtain a data value of the third parameter, and correspondingly displaying the third parameter and the data value of the third parameter in the industrial design interface according to the preset attribute of the third parameter.
In an alternative embodiment, the parameter update module 630 is further configured to obtain a third parameter associated with the switched current sub-parameter; and determining the current attribute of the third parameter according to a preset judging condition, and correspondingly displaying the third parameter in the industrial design interface according to the current attribute of the third parameter.
In an alternative embodiment, the data structure table includes a third data table, where the third data table is used to store parameter identifiers and parameter prompt information of visual parameters in the industrial design interface.
In an alternative embodiment, the rotary machine parameter display device 600 further includes a prompt display module configured to display parameter prompts corresponding to the target visualization parameters in the industrial design interface in response to a touch operation on the target visualization parameters on the industrial design interface.
The specific details of each module in the above-mentioned rotating machine parameter display device are already described in detail in the corresponding rotating machine parameter display method, so that they will not be described in detail here.
Exemplary embodiments of the present disclosure also provide a computer-readable storage medium having stored thereon a program product capable of implementing the method described above in the present specification. In some possible implementations, aspects of the present disclosure may also be implemented in the form of a program product comprising program code for causing an electronic device to carry out the steps according to the various exemplary embodiments of the disclosure as described in the "exemplary methods" section of this specification, when the program product is run on an electronic device. The program product may employ a portable compact disc read-only memory (CD-ROM) and comprise program code and may be run on an electronic device, such as a personal computer. However, the program product of the present disclosure is not limited thereto, and in this document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium can be, for example, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium would include the following: an electrical connection having one or more wires, a portable disk, a hard disk, random Access Memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The computer readable signal medium may include a data signal propagated in baseband or as part of a carrier wave with readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A readable signal medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C#, C++ or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of remote computing devices, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., connected via the Internet using an Internet service provider).
The exemplary embodiment of the disclosure also provides an electronic device capable of implementing the method. An electronic device 700 according to such an exemplary embodiment of the present disclosure is described below with reference to fig. 7. The electronic device 700 shown in fig. 7 is merely an example and should not be construed as limiting the functionality and scope of use of the disclosed embodiments.
As shown in fig. 7, the electronic device 700 may be embodied in the form of a general purpose computing device. Components of electronic device 700 may include, but are not limited to: at least one processing unit 710, at least one memory unit 720, a bus 730 connecting the different system components (including the memory unit 720 and the processing unit 710), and a display unit 740.
The storage unit 720 stores program code that can be executed by the processing unit 710, so that the processing unit 710 performs the steps according to various exemplary embodiments of the present disclosure described in the above-described "exemplary method" section of the present specification. For example, the processing unit 710 may perform the method steps in fig. 1. The storage unit 720 may be used to store three data tables, an initialization data template, a filtering file, etc. in a preset database, which is not limited in this disclosure.
The storage unit 720 may include readable media in the form of volatile storage units, such as a Random Access Memory (RAM) 721 and/or a Cache memory (Cache) 722, and may further include a Read Only Memory (ROM) 723.
The storage unit 720 may also include a program/utility 724 having a set (at least one) of program modules 725, such program modules 725 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment.
Bus 730 may be a bus representing one or more of several types of bus structures including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
The electronic device 700 may also communicate with one or more external devices 800 (e.g., keyboard, pointing device, bluetooth device, etc.), one or more devices that enable a user to interact with the electronic device 700, and/or any device (e.g., router, modem, etc.) that enables the electronic device 700 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 750. Also, electronic device 700 may communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN) and/or a public network, such as the Internet, through network adapter 760. As shown, network adapter 760 communicates with other modules of electronic device 700 over bus 730. It should be appreciated that although not shown, other hardware and/or software modules may be used in connection with electronic device 700, including, but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
From the above description of embodiments, those skilled in the art will readily appreciate that the example embodiments described herein may be implemented in software, or may be implemented in software in combination with the necessary hardware. Thus, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (may be a CD-ROM, a U-disk, a mobile hard disk, etc.) or on a network, including several instructions to cause a computing device (may be a personal computer, a server, a terminal device, or a network device, etc.) to perform the method according to the exemplary embodiments of the present disclosure.
Furthermore, the above-described figures are only schematic illustrations of processes included in the method according to the exemplary embodiments of the present disclosure, and are not intended to be limiting. It will be readily appreciated that the processes shown in the above figures do not indicate or limit the temporal order of these processes. In addition, it is also readily understood that these processes may be performed synchronously or asynchronously, for example, among a plurality of modules.
It should be noted that although in the above detailed description several modules or units of a device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit in accordance with embodiments of the present disclosure. Conversely, the features and functions of one module or unit described above may be further divided into a plurality of modules or units to be embodied.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any adaptations, uses, or adaptations of the disclosure following the general principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (8)

1. A method for displaying parameters of a rotary machine, comprising:
in response to a selection operation of a type of rotary machine on an industrial design interface, acquiring a first parameter required for industrial design of the current rotary machine from a preset database; wherein the first parameter comprises a second parameter and a third parameter associated with a candidate subparameter contained in the second parameter;
Determining a third parameter associated with a target sub-parameter in the candidate sub-parameters, and displaying the third parameter in the industrial design interface according to a preset attribute of the third parameter;
responding to the switching operation of the target sub-parameters, modifying the preset attribute of the third parameter into a current attribute, and updating the display state of the third parameter according to the current attribute; and
acquiring a third parameter associated with the switched current sub-parameter;
determining the current attribute of the third parameter according to a preset judging condition, and correspondingly displaying the third parameter in the industrial design interface according to the current attribute of the third parameter;
the preset database comprises a data structure table and an initialization data template, wherein the data structure table comprises a first data table and a second data table, and the first data table is used for storing the first parameter and comprises a first parameter identifier and a first parameter attribute; the second data table is used for storing candidate sub-parameters contained in the second parameter, and comprises a second parameter identifier, a candidate sub-parameter attribute and a third parameter attribute associated with the candidate sub-parameter; the initialization data template is used for storing initial values of first parameters corresponding to various rotary machines.
2. The method of claim 1, wherein the predetermined database comprises a filter file; the method further comprises the steps of:
and loading a filtering file corresponding to the type of the current rotary machine from the preset database, and filtering the first parameter by utilizing the filtering file to realize classification, display and hiding of the first parameter.
3. The rotary machine parameter display method according to claim 1, characterized in that the method further comprises:
loading an initialization data template corresponding to the type of the current rotary machine from the preset database, and acquiring an initial value of the first parameter from the initialization data template.
4. A rotary machine parameter display method in accordance with claim 3, wherein said determining a third parameter associated with a target sub-parameter of said candidate sub-parameters and displaying said third parameter in said industrial design interface according to a preset attribute of said third parameter comprises:
determining a third parameter associated with a target subparameter of the candidate subparameters;
and solving according to the initial value of the first parameter to obtain a data value of the third parameter, and correspondingly displaying the third parameter and the data value of the third parameter in the industrial design interface according to the preset attribute of the third parameter.
5. The method of claim 1, wherein the data structure table includes a third data table for storing parameter identification and parameter prompt information for the visual parameters in the industrial design interface.
6. The method of claim 5, further comprising:
and responding to touch operation on the target visual parameters on an industrial design interface, and displaying parameter prompt information corresponding to the target visual parameters in the industrial design interface.
7. A computer-readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processing unit, implements the method of displaying a rotating machine parameter according to any one of claims 1-6.
8. An electronic device, comprising:
a processing unit; and
a storage unit configured to store executable instructions of the processing unit;
wherein the processing unit is configured to perform the rotary machine parameter display method of any one of claims 1-6 via execution of the executable instructions.
CN202310460627.4A 2023-04-26 2023-04-26 Rotary machine parameter display method, storage medium and electronic device Active CN116186816B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310460627.4A CN116186816B (en) 2023-04-26 2023-04-26 Rotary machine parameter display method, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310460627.4A CN116186816B (en) 2023-04-26 2023-04-26 Rotary machine parameter display method, storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN116186816A CN116186816A (en) 2023-05-30
CN116186816B true CN116186816B (en) 2023-09-08

Family

ID=86444623

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310460627.4A Active CN116186816B (en) 2023-04-26 2023-04-26 Rotary machine parameter display method, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN116186816B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110413276A (en) * 2019-07-31 2019-11-05 网易(杭州)网络有限公司 Parameter edit methods and device, electronic equipment, storage medium
CN111030111A (en) * 2019-12-30 2020-04-17 广东电网有限责任公司电力调度控制中心 Method, device, system and medium for configuring stable control section parameters of power system
CN114115864A (en) * 2021-12-01 2022-03-01 中国建设银行股份有限公司 Interface generation method and device and electronic equipment
CN114115869A (en) * 2020-08-31 2022-03-01 菜鸟智能物流控股有限公司 User interface UI processing method and device
CN115858905A (en) * 2022-12-05 2023-03-28 中国建设银行股份有限公司 Data processing method and device, electronic equipment and storage medium
CN115906718A (en) * 2023-03-09 2023-04-04 陕西空天信息技术有限公司 Rotating machinery CFD system
CN116205009A (en) * 2023-05-05 2023-06-02 陕西空天信息技术有限公司 Impeller model structure analysis method and device, electronic equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8019579B1 (en) * 2007-10-16 2011-09-13 The Mathworks, Inc. Graphical user interface for viewing or editing an executable block diagram model

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110413276A (en) * 2019-07-31 2019-11-05 网易(杭州)网络有限公司 Parameter edit methods and device, electronic equipment, storage medium
CN111030111A (en) * 2019-12-30 2020-04-17 广东电网有限责任公司电力调度控制中心 Method, device, system and medium for configuring stable control section parameters of power system
CN114115869A (en) * 2020-08-31 2022-03-01 菜鸟智能物流控股有限公司 User interface UI processing method and device
CN114115864A (en) * 2021-12-01 2022-03-01 中国建设银行股份有限公司 Interface generation method and device and electronic equipment
CN115858905A (en) * 2022-12-05 2023-03-28 中国建设银行股份有限公司 Data processing method and device, electronic equipment and storage medium
CN115906718A (en) * 2023-03-09 2023-04-04 陕西空天信息技术有限公司 Rotating machinery CFD system
CN116205009A (en) * 2023-05-05 2023-06-02 陕西空天信息技术有限公司 Impeller model structure analysis method and device, electronic equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
耦合多学科设计系统中参数映射方法;王成恩等;《机械工程学报》;第45卷(第04期);第231-237页 *

Also Published As

Publication number Publication date
CN116186816A (en) 2023-05-30

Similar Documents

Publication Publication Date Title
US8074203B2 (en) Graphical program execution with distributed block diagram display
US6237004B1 (en) System and method for displaying data using graphical user interface control elements
JPH0760326B2 (en) Programmable logic controller hardware form for use on a first programmable logic controller for use on a second programmable logic controller and corresponding control program conversion method
CN110688145B (en) Android MVP code automatic generation method and device, medium and electronic equipment
EP3309638B1 (en) Exportation of field data in multiple worksheets
CN109739600A (en) Data processing method, medium, device and calculating equipment
CN109471580B (en) Visual 3D courseware editor and courseware editing method
CN104823158A (en) Method and system for simplified knowledge engineering
CN110704749A (en) Recommendation engine customization system, recommendation method, recommendation system and electronic equipment
CN114237582A (en) Project construction method, device, medium and electronic equipment
CN115495069A (en) Model-driven coal industry software flow implementation method, device and equipment
CN113703755A (en) Code generation method and code generation device
US9596654B2 (en) Association of applications to clusters mapped to logical battery partitions
CN114048415A (en) Form generation method and device, electronic equipment and computer readable storage medium
CN116186816B (en) Rotary machine parameter display method, storage medium and electronic device
CN113626017A (en) Heterogeneous program analysis method and device, computer equipment and storage medium
CN117390796A (en) Inducer modeling method and device, storage medium and electronic equipment
CN113138760B (en) Page generation method and device, electronic equipment and medium
CN116028062A (en) Target code generation method, NPU instruction display method and device
CN116483707A (en) Test method, test device, test apparatus, test program, and test program
KR101734306B1 (en) Multi program code automatic developing system
US11741715B2 (en) Automatic creation and annotation of software-related instructional videos
CN114816972A (en) Coloring language testing method and device, electronic equipment and storage medium
CN113179183A (en) Service switch state control device and method
CN111736828A (en) System configuration interface generation method and system applied to detection software

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant