Graphical interface-based user-defined CFD (computational fluid dynamics) simulation software GUI (graphical user interface) generation technology

Through the graphic tool design interface, the interface controls are associated with model parameters and a standardized design script file collection is generated, which solves the problem that the GUI interface in the existing technology cannot adapt to different models and algorithms, and realizes the flexible interface generation of CFD simulation software.

CN120277742APending Publication Date: 2025-07-08SICHUAN UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510419562.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-03
Publication Date
2025-07-08

AI Technical Summary

Technical Problem

Existing graphical user interface tools cannot directly associate interface controls with model algorithms, and cannot dynamically generate GUI interfaces that adapt to different models and algorithms.

Method used

Through a graphical tool design interface, the interface's controls are associated with model parameters, a standardized design script file set is generated, and the graphical interface generation framework interacts with the domain controller to dynamically generate the solver user interface.

Benefits of technology

It realizes dynamic generation of GUI interfaces based on different models and algorithms, simplifies the interface design process of CFD simulation software, and improves design efficiency and flexibility.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120277742A_ABST
    Figure CN120277742A_ABST
Patent Text Reader

Abstract

The invention discloses a graphical interface-based user-defined CFD simulation software GUI generation technology, which is applied to a graphical user interface system, and the system comprises an interactive interface file set, a graphical design interface, a general module library, a GUI control library, an interface design file set, a parameter design file set, a graphical interface generation framework, a parameter conversion engine and a domain controller. By means of the graphical user interface generation method, a user can directly design an interface in a dragging and clicking mode, meanwhile, controls of the interface are associated to model parameters, after design is completed, a corresponding design file set can be automatically generated, and a graphical interface generation frame can automatically generate the corresponding design file set according to the generated design file. And dynamically generating a CFD simulation software GUI (Graphical User Interface).
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of computer technology, and particularly relates to a technology for generating a graphical user interface (GUI) of a user-defined CFD simulation software with a graphical interface. Background Art

[0002] Tools for designing and constructing graphical user interfaces are widely used in developing application programs and user interfaces. Such tools usually provide a graphical design interface, and in the interface design, the application program interface is designed and laid out by means of drag and drop. The tools include some basic elements for quickly constructing the interface, such as basic controls: buttons, labels, texts, etc.; provide a property window where various properties of the controls can be edited: size, text, color, etc. Provide layout management for arranging the controls: horizontal layout, vertical layout, etc., and perform some signal associations: click event, value change event, etc.

[0003] Computational Fluid Dynamics (CFD) is a scientific and engineering discipline that uses numerical analysis and algorithms to solve problems involving fluid flow. The application fields of CFD are very extensive, covering aerospace, automotive industry, energy, chemical engineering, environmental engineering, construction engineering, medicine and bioengineering, industrial manufacturing, etc. Therefore, in the CFD solution calculation, for different models and different algorithms, there are different parameter and process settings. Currently, the tools for designing and constructing graphical user interfaces can only construct individual graphical interfaces, and cannot directly associate the interface controls with the model algorithms, and cannot dynamically generate a GUI (graphical user interface) according to different models and algorithms. Summary of the Invention

[0004] The technical problem to be solved by the present invention is to provide a technology for generating a GUI of a user-defined CFD simulation software with a graphical interface. Through a graphical tool, the GUI interface is designed, the controls of the interface are associated with the model parameters, and a standardized set of design script files is generated; then, according to the set of design script files and the parameter rules sent by the domain controller, the graphical interface generation framework dynamically generates a solver user interface, realizing the process control and parameter setting driven by the domain controller.

[0005] To solve the above technical problem, the present invention is implemented in the following way:

[0006] A technology for generating a GUI of a user-defined CFD simulation software with a graphical interface is applied to a graphical user interface system. The system includes an interactive interface file set, a graphical design interface, a general module library, a GUI control library, an interface design file set, a parameter design file set, a graphical interface generation framework, a parameter conversion engine, and a domain controller;

[0007] The interactive interface file set generates a graphical design interface, which specifies the configurable content of each module in the design interface, including a control library file, an attribute configuration file, a constraint configuration file, an interaction configuration file, and a beautification configuration file. The design interface is used to design the user interface of the CFD software;

[0008] In the graphical design interface, the user operates through the graphical interface. The operations include adding, deleting, and arranging controls, as well as designing the attribute content, constraint relationship, style beautification, and interaction logic of the controls. According to the user's operations, a parameter design file set and an interface design file set are generated;

[0009] The general module library predefines modules such as a menu bar, a toolbar, and a process tree;

[0010] The GUI control library encapsulates common controls and provides a set of basic controls for users to use. The controls in the GUI control library can be directly used to construct the CFD interface;

[0011] The parameter design file set includes a parameter attribute file and a parameter constraint file, and sets the parameters of each node of the solver according to different models, including the parameters that need to be set for each node, the value range of the parameters, and the constraint association between the parameters;

[0012] The interface design file set includes a control structure file, a control interaction file, and a style beautification file, which are used for the control layout, interaction logic between controls, and beautification style of the interface respectively;

[0013] In the graphical interface generation framework, based on the generated design script, a GUI user interface is created based on the general module and the control library;

[0014] The parameter conversion engine interacts with the domain controller, packs the parameters of the CFD simulation software interface and sends them to the domain controller. The domain controller calculates the returned parameters, unpacks them and automatically associates them with the corresponding controls for parameter display;

[0015] The domain controller calculates with the selected model according to the data passed in by the parameter conversion engine, generates relevant parameters, and hands them over to the parameter conversion engine to associate and display the parameters with the controls, dynamically generating a user interface.

[0016] The graphical design interface includes a menu bar, a toolbar, a control layout area, a preview window, and a property setting area. Among them, the control layout area is used to display the configuration tree or the GUI control library. The configuration tree is used to add and arrange large modules and basic controls, and the GUI control library is used to display the provided basic control styles; the preview window is used to display the style and behavior of the user interface accurately when the user designs the interface or changes the configuration in the software; the property setting area includes four parts: properties, constraints, interaction, and beautification, which are used to set the property content, constraint relationship, style beautification, and interaction logic of the controls respectively. The properties that can be designed by the graphical design interface are controlled by the files in the interactive interface file set. When the designed properties are changed, only the files in the interactive interface file set need to be changed, and the graphical design interface automatically generates design options according to the interactive interface file set.

[0017] Further, the control library file is used to record basic controls. When using it for design, it intuitively provides the types of controls, and the design is carried out by directly dragging the controls on the interactive interface;

[0018] The property configuration file is used to record the properties that can be set for each control, including the unit, name, alignment method of the control, and the associated relationship with the solver parameters;

[0019] The constraint configuration file is used to control the constraint content that can be set between different controls, including the conditions that can be used for the four state switches of display, hide, disable, and enable;

[0020] The interaction configuration file is used to record the interaction behaviors of the design interface during user interaction, including page display, interface events, control operations, file operations, and advanced operations;

[0021] The beautification configuration file is used to record the interface beautification modules that can be designed, including fonts, borders, backgrounds, sizes, and margins. The beautification modules perform style beautification design for the controls.

[0022] Preferably, the parameter design file set is used to record information related to solver parameters, the parameter attribute file is used to record the solver parameter objects associated with the controls, and the information that needs to be sent during parameter communication, and the parameter constraint file is used to record the relationship between the control behaviors and the parameter values.

[0023] The interface design file set is used to record information related to the CFD software user interface design. The control structure file is used to record the position information and layout method between the controls on the CFD user interface. The control interaction file is used to record the associated reactions of the interface controls and the interaction logic between different controls. The style beautification file is used to record the font, border, background, size, and margin information of the controls.

[0024] Further, for the technology of generating a graphical interface-based user-defined CFD simulation software GUI, the specific process is as follows:

[0025] S1. The system generates a graphical design interface through an interactive interface file set;

[0026] S2. The user adds and arranges large modules through a control configuration area, such as a menu bar, a process tree, etc.;

[0027] S3. The user designs the quantity and arrangement of basic controls in each large module;

[0028] S4. The user designs the attribute content, data association, constraint relationship, style beautification, and interaction logic of each control;

[0029] S5. The system automatically generates an interface design file set and a parameter design file set according to the user's design;

[0030] S6. After the design is completed, if the designed interface is used, the graphical interface generation framework will create the main user interface of the CFD software based on the interface design file set, the general module, and the control library;

[0031] S7. The user selects a parameter node to be configured through the process tree. The graphical interface generation framework queries the required parameter information through the parameter design file set, generates the parameter configuration interface for this node according to the interface design file set, and binds the control to the parameter;

[0032] S8. The user sets parameters, and the parameter conversion engine automatically packages and sends the changed parameter information to the domain controller;

[0033] S9. The domain controller obtains the parameter values and parameter status required for the current node according to the selected algorithm and model, and packages and returns the data to the parameter conversion engine;

[0034] S10. The parameter conversion engine unpacks the returned data, and maps the parameter values and status in each control according to the binding relationship between the parameter and the control;

[0035] S11. Repeat steps S7 to S10 until the parameter settings of all nodes are completed;

[0036] S12. After the parameter settings are completed, start the calculation through the domain controller, and perform simulation calculations according to the selected model, algorithm, and set parameters.

[0037] Compared with the prior art, the beneficial effects of the present invention are:

[0038] Through the graphical user interface generation method of the present invention, users can directly design the interface by dragging and clicking, and at the same time use graphical tools for GUI interface design, associate the controls of the interface with model parameters. After the design is completed, a corresponding set of design files will be automatically generated. The graphical interface generation framework will dynamically generate the CFD simulation software GUI interface according to the generated design files, and then through the graphical interface generation framework, dynamically generate the solver user interface according to the design file set and the parameters sent by the domain controller, realizing the process control and parameter setting driven by the domain controller. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] Figure 1 It is a schematic structural diagram of the graphical user interface generation method of the present invention;

[0040] Figure 2 It is a schematic operation flow diagram of the graphical user interface generation method of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0041] The following further details the specific embodiments of the present invention in conjunction with the drawings and specific embodiments.

[0042] As Figures 1 to 2 shown, the graphical user-defined CFD simulation software GUI generation technology of the graphical interface is applied to the graphical user interface system. The system includes an interactive interface file set, a graphical design interface, a general module library, a GUI control library, an interface design file set, a parameter design file set, a graphical interface generation framework, a parameter conversion engine, and a domain controller;

[0043] The interactive interface file set generates a graphical design interface, which stipulates the configurable content of each module in the design interface, including a control library file (setting available controls), an attribute configuration file (setting the configurable attribute content of each control), a constraint configuration file (setting the configurable constraint conditions of each control), an interaction configuration file (setting available interaction content), and a beautification configuration file (setting available beautification options). The design interface is used to design the user interface of the CFD software;

[0044] In the graphical design interface, the user operates through the graphical interface, which is convenient for the user to understand and use the software. The operations include adding, deleting, and arranging controls, designing the attribute content, constraint relationship, style beautification, and interaction logic of the controls, and generating a parameter design file set and an interface design file set according to the user's operations;

[0045] The general module library predefines modules such as a menu bar, a toolbar, and a process tree;

[0046] The GUI control library encapsulates common controls and provides a set of basic controls for users to use. The controls in the GUI control library can be directly used to complete the construction of the CFD interface;

[0047] The parameter design file set includes parameter attribute files and parameter constraint files, and sets the parameters of each node of the solver according to different models, including the parameters to be set for each node, the value ranges of the parameters, and the constraint associations between the parameters;

[0048] The interface design file set includes control structure files, control interaction files, and style beautification files, which are used for the layout of controls on the interface, the interaction logic between controls, and the beautification style of the interface respectively;

[0049] In the graphical interface generation framework, according to the generated design script, a GUI user interface is created based on the general module and the control library;

[0050] The parameter conversion engine interacts with the domain controller, packs the parameters of the CFD simulation software interface and sends them to the domain controller. The domain controller calculates the returned parameters, unpacks them and automatically associates them with the corresponding controls for parameter display;

[0051] The domain controller calculates based on the data passed in by the parameter conversion engine and the selected model, generates relevant parameters, and hands them over to the parameter conversion engine to associate and display the parameters with the controls, dynamically generating the user interface.

[0052] The graphical design interface includes a menu bar, a toolbar, a control layout area, a preview window, and an attribute setting area. Among them, the menu bar and the toolbar mainly display common options and tools. The main areas are the control layout area, the attribute setting area, and the preview window. The control layout area is used to display the configuration tree or the GUI control library. The configuration tree is used to add and arrange large modules and basic controls, and the GUI control library is used to display the styles of the provided basic controls; the preview window is used to accurately reflect the style and behavior of the user interface when the user designs the interface or changes the configuration in the software; the attribute setting area includes four parts: attributes, constraints, interaction, and beautification, which are used to set the attribute content, constraint relationships, style beautification, and interaction logic of the controls respectively. The attributes that can be designed in the graphical design interface are controlled by the files in the interaction interface file set. When the designed attributes are changed, only the files in the interaction interface file set need to be changed, and the graphical design interface automatically generates design options according to the interaction interface file set.

[0053] The control library file is used to record basic controls. When using it for design, it intuitively provides the types of controls, and the design is carried out by directly dragging the controls on the interaction interface;

[0054] The attribute configuration file is used to record the attributes that can be set for each control, including the unit, name, alignment mode of the control, and the association relationship with the solver parameters;

[0055] The constraint configuration file is used to control the constraint content that can be set between different controls, including the conditions for four state transitions: display, hide, disable, and enable. This module sets the four constraint conditions for the interface controls by judging the control values, adds and deletes a set of conditions during design, adds and deletes individual conditions within the group, and sets the logical relationship between the conditions;

[0056] The interaction configuration file is used to record the interaction behaviors of the design interface during user interaction, including page display, interface events, control operations, file operations, and advanced operations; Interaction behaviors are divided into direct interaction behaviors and configuration - type interaction behaviors. Direct interaction behaviors do not require settings and execute the corresponding interaction behaviors after being added. Configuration - type interaction behaviors require setting relevant behavior parameters, and configuration - type interaction behaviors without set behavior parameters will not execute the interaction behavior actions; Direct interaction behaviors include updating the title - bar text and refreshing page data, and the rest of the interaction behaviors belong to configuration - type interaction behaviors; Configuration - type interaction behaviors include displaying parameter pages, displaying dialog boxes, printing real - time information, modifying control data, opening files, saving files, selecting folders, and executing functions.

[0057] The beautification configuration file is used to record the interface beautification modules that can be designed, including fonts, borders, backgrounds, sizes, and margins. The beautification module designs the styles for controls. It can design for a class of controls or only for a single control. Different controls have some different settings. For example, for controls that can set pictures, there are picture - related settings. When using this instance to design the CFD software user interface, operations can be directly performed through the above - mentioned visual interface, completing the design of the CFD software user interface and directly associating with the solver parameters to achieve data - driven interface behaviors.

[0058] The parameter design file set is used to record information related to the solver parameters, including the parameter attribute file and the parameter constraint file. The parameter attribute file is used to record the solver parameter objects associated with the controls and the information that needs to be sent during parameter communication. The parameter constraint file is used to record the relationship between control behaviors and parameter values.

[0059] The interface design file set is used to record information related to the design of the CFD software user interface, including the control structure file, the control interaction file, and the style beautification file. The control structure file is used to record the position information and layout method between controls on the CFD user interface. The control interaction file is used to record the associated reactions of the interface controls and the interaction logic between different controls. The style beautification file is used to record the font, border, background, size, and margin information of the controls.

[0060] After the design is completed, the graphical interface generation framework designs the parameter design file set and the interface design file set according to the generated parameters, creates a GUI user interface based on the general module library and the GUI control library, sets the association logic between the controls, and associates the controls with the solver parameters through the parameter conversion engine. When the value of a control changes, the automatic generation framework automatically packs and sends the data to the solver, updates the data returned by the solver to the control, and refreshes the interface constraints according to the value.

[0061] Furthermore, the GUI generation technology for user-defined CFD simulation software with a graphical interface has the following specific process:

[0062] S1. The system generates a graphical design interface through the interactive interface file set;

[0063] S2. The user adds and arranges large modules through the control configuration area, such as the menu bar, process tree, etc.;

[0064] S3. The user designs the number and arrangement of basic controls in each large module;

[0065] S4. The user designs the attribute content, data association, constraint relationship, style beautification, and interaction logic of each control;

[0066] S5. The system automatically generates an interface design file set and a parameter design file set according to the user's design;

[0067] S6. After the design is completed, if the designed interface is used, the graphical interface generation framework will create the main user interface of the CFD software based on the interface design file set, the general module, and the control library;

[0068] S7. The user selects a parameter node to be configured through the process tree. The graphical interface generation framework queries the required parameter information through the parameter design file set, generates the parameter configuration interface for this node according to the interface design file set, and binds the control to the parameter;

[0069] S8. The user sets the parameters, and the parameter conversion engine automatically packs and sends the changed parameter information to the domain controller;

[0070] S9. The domain controller obtains the parameter values and parameter status required for the current node according to the selected algorithm and model, and packs and returns the data to the parameter conversion engine;

[0071] S10. The parameter conversion engine unpacks the returned data, and maps the parameter values and status to each control according to the binding relationship between the parameter and the control;

[0072] S11. Repeat steps S7 to S10 until the parameter settings of all nodes are completed;

[0073] After the parameters are set, start the calculation through the domain controller, and perform simulation calculations according to the selected model, algorithm, and set parameters.

[0074] The above are only the implementation manners of the present invention. Once again, it is stated that for those of ordinary skill in the art, without departing from the principle of the present invention, several improvements can still be made to the present invention, and these improvements are also included in the protection scope of the claims of the present invention.

Claims

1. The technology for generating a graphical user interface (GUI) of a graphically interfaced user-defined CFD simulation software, which is applied to a graphical user interface system, is characterized in that: The system includes an interactive interface file set, a graphical design interface, a general module library, a GUI control library, an interface design file set, a parameter design file set, a graphical interface generation framework, a parameter conversion engine, and a domain controller; The interactive interface file set generates a graphical design interface, which specifies the configurable content of each module in the design interface, including a control library file, an attribute configuration file, a constraint configuration file, an interaction configuration file, and a beautification configuration file. The design interface is used to design the user interface of the CFD software; In the graphical design interface, the user operates through the graphical interface. The operations include adding, deleting, and arranging controls, and designing the attribute content, constraint relationship, style beautification, and interaction logic of the controls. According to the user's operations, a parameter design file set and an interface design file set are generated; The general module library predefines a menu bar, a toolbar, and a process tree module; The GUI control library encapsulates common controls and provides a set of basic controls for users to use. The controls in the GUI control library can be directly used to construct the CFD interface; The parameter design file set includes a parameter attribute file and a parameter constraint file, and sets the parameters of each node of the solver according to different models, including the parameters that need to be set for each node, the value range of the parameters, and the constraint association between the parameters; The interface design file set includes a control structure file, a control interaction file, and a style beautification file, which are used for the control layout of the interface, the interaction logic between controls, and the beautification style of the interface respectively; In the graphical interface generation framework, according to the generated design script, a GUI user interface is created based on the general module and the control library; The parameter conversion engine conducts data interaction with the domain controller, packs the parameters of the CFD simulation software interface and sends them to the domain controller. The domain controller calculates the returned parameters, unpacks them, and automatically associates them with the corresponding controls for parameter display; The domain controller calculates based on the data passed in by the parameter conversion engine and the selected model, generates relevant parameters, and hands them over to the parameter conversion engine to associate and display the parameters with the controls, dynamically generating a user interface.

2. The graphical interface-based user-defined CFD simulation software GUI generation technology according to claim 1, wherein: The graphical design interface includes a menu bar, a toolbar, a control layout area, a preview window, and an attribute setting area. Among them, the control layout area is used to display the configuration tree or the GUI control library. The configuration tree is used to add and arrange large modules and basic controls, and the GUI control library is used to display the styles of the provided basic controls; the preview window is used to accurately reflect the style and behavior of the user interface when the user designs the interface or changes the configuration in the software; the attribute setting area includes four parts: attribute, constraint, interaction, and beautification, which are used to set the attribute content, constraint relationship, style beautification, and interaction logic of the controls respectively. The attributes that can be designed by the graphical design interface are controlled by the files in the interactive interface file set. When the designed attributes are changed, only the files in the interactive interface file set need to be changed, and the graphical design interface automatically generates design options according to the interactive interface file set.

3. The graphical interface-based user-defined CFD simulation software GUI generation technology according to claim 1, characterized in that: The control library file is used to record basic controls. When it is used for design, it intuitively provides the types of controls, and the design is carried out by directly dragging the controls on the interaction interface; The property configuration file is used to record the properties that can be set for each control, including the unit, name, alignment method of the control, and the associated relationship with the solver parameters; The constraint configuration file is used to control the constraint content that can be set between different controls, including the conditions for using the four state switches of display, hide, disable, and enable; The interaction configuration file is used to record the interaction behaviors of the design interface during user interaction, including page display, interface events, control operations, file operations, and advanced operations; The beautification configuration file is used to record the interface beautification modules that can be designed, including fonts, borders, backgrounds, sizes, and margins. The beautification module designs the styles for the controls.

4. The graphical interface-based user-defined CFD simulation software GUI generation technology according to claim 1, characterized in that: The parameter design file set is used to record information related to solver parameters. The parameter attribute file is used to record the solver parameter objects associated with the controls, as well as the information that needs to be sent during parameter communication. The parameter constraint file is used to record the relationship between control behaviors and parameter values.

5. The graphical interface-based user-defined CFD simulation software GUI generation technology according to claim 1, characterized in that: The interface design file set is used to record information related to the CFD software user interface design. The control structure file is used to record the position information and layout method between the controls on the CFD user interface. The control interaction file is used to record the associated reactions of the interface controls, as well as the interaction logic between different controls. The style beautification file is used to record the font, border, background, size, and margin information of the controls.

6. The graphical interface-based user-defined CFD simulation software GUI generation technology according to claim 1, characterized in that: The specific process is as follows: S1. The system generates a graphical interface-based design interface through the interaction interface file set; S2. The user adds and arranges large modules through the control configuration area, such as the menu bar, process tree, etc.; S3. The user designs the number and arrangement of basic controls in each large module; S4. The user designs the property content, constraint relationship, style beautification, and interaction logic of the controls; S5. The system automatically generates an interface design file set and a parameter design file set according to the user's design; S6. After the design is completed, if the designed interface is used, the graphical interface generation framework will create the main CFD software user interface based on the interface design file set, using the general modules and the control library; S7. The user selects a parameter node to be configured through the process tree. The graphical interface generation framework queries the required parameter information through the parameter design file set, generates the parameter configuration interface for this node according to the interface design file set, and binds the controls to the parameters; S8. The user sets the parameters, and the parameter conversion engine automatically packages and sends the changed parameter information to the domain controller; S9. The domain controller obtains the required parameter values and parameter status of the current node according to the selected algorithm and model, and packs the data and returns it to the parameter conversion engine; S10. The parameter conversion engine unpacks the returned data, and maps the parameter values and status to each control according to the binding relationship between the parameters and the controls; S11. Repeat steps S7 to S10 until the parameter settings of all nodes are completed; S12. After the parameter settings are completed, start the calculation through the domain controller, and perform simulation calculations according to the selected model, algorithm and set parameters.