A method for packaging knowledge of hydrogen and oxygen engines
By sorting out business logic and establishing a characteristic knowledge image model, the knowledge sharing and sorting difficulties in hydrogen-oxygen engine knowledge encapsulation are solved, the structured and automated delivery of hydrogen-oxygen engine design knowledge is realized, and R&D efficiency and professional construction are improved.
Patent Information
- Application Number
- CN202210306668.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-25
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2042-03-25
AI Technical Summary
The existing hydrogen-oxygen engine knowledge encapsulation method has problems such as too general knowledge, difficulty for designers to collect and share knowledge, and insufficient knowledge sorting and mining. As a result, knowledge cannot be effectively integrated into business processes and affects research and development work.
Adopting a hydrogen-oxygen engine knowledge encapsulation method, by sorting out business logic, using industrial mapping software and knowledge centers to establish characteristic knowledge image models and algorithm models, realizing the structured and automated delivery of knowledge, forming an executable design APP to support hydrogen Oxygen engine development.
It achieves the characteristic definition and encapsulation of hydrogen-oxygen engine design knowledge, improves research and development efficiency, solves the problem of knowledge accumulation and uneven organizational capabilities, and promotes the professional construction of hydrogen-oxygen engines.
Smart Images

Figure CN114741802B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of hydrogen-oxygen engine knowledge packaging, and in particular to a hydrogen-oxygen engine knowledge packaging method. Background Art
[0002] Knowledge encapsulation is a way of integrating data resources. Through knowledge encapsulation, relevant knowledge is organized and combined into database information, which is then convenient for reference.
[0003] Commonly used knowledge encapsulation usually adopts Figure 4 Method:
[0004] (1) Original data resources, such as technical plans, drawings, reports, experiences, methods, standards, specifications, etc., are uploaded as unstructured documents to form a document knowledge base for reference.
[0005] (2) After being standardized, data resources are processed to form various engineering databases for reference.
[0006] (3) Analyzing and organizing data resources to form reports with specific conclusions can further enhance their knowledge characteristics.
[0007] (4) Strengthen the knowledge characteristics of information resources through data structuring, and use classification, clustering, summarization, labeling, thematicization, semantic analysis and other means to form various knowledge bases after structured processing for reference.
[0008] 2. There are defects or problems in the existing process
[0009] (1) Knowledge is too general; designers do not know how to collect and share knowledge, or even do not realize that they have knowledge.
[0010] (2) There are problems in organizing and mining knowledge. The relationship between knowledge and work is often weak, and the knowledge is of little use.
[0011] (3) When encountering a problem, designers search for knowledge, but either they find too much irrelevant knowledge or too little knowledge, which makes it difficult to support R&D work and the knowledge cannot be integrated into the business process.
[0012] To this end, we propose a knowledge encapsulation method for hydrogen-oxygen engines. Summary of the invention
[0013] The purpose of the present invention is to solve or at least alleviate the problems existing in the prior art.
[0014] To achieve the above objectives, the present invention is implemented through the following technical solutions:
[0015] A method for packaging hydrogen-oxygen engine knowledge includes the following features:
[0016] S1. Determine the object of knowledge encapsulation:
[0017] Sort out various business logic descriptions in the R&D, design, manufacturing or operation and maintenance process of the knowledge encapsulation object and define its complete business logic;
[0018] S2. Establish the design process of the knowledge encapsulation object:
[0019] Adopt industrial drawing software adapter to realize the integration of commercial software, self-developed programs and algorithms, so that the knowledge encapsulation object can call and drive the industrial drawing software to complete the modeling. At the same time, cooperate with the knowledge center to establish the characteristic knowledge image model, parameter logic model and algorithm model of the knowledge encapsulation object;
[0020] S3, then input the corresponding characteristic parameters and obtain the corresponding results;
[0021] According to the algorithms related to the feature parameter logic model, the data interaction between each feature parameter and the result is clarified, and the key feature parameters that need to be interacted are extracted and defined in the feature parameter logic model to achieve fast and automatic delivery. The data interaction interface should also have information that can reflect the relevant feature parameter results of the business described by the knowledge;
[0022] S4. After submitting the task, the design process is packaged in the form of an APP;
[0023] After the model calculation, the corresponding results can be obtained. By submitting the task, the design process can be encapsulated in the form of an APP.
[0024] Optionally, the industrial drawing software includes various two-dimensional and three-dimensional drawing software.
[0025] Optionally, the knowledge center in S2 includes various means of acquiring the industry knowledge, such as knowledge solidification, knowledge search, knowledge recommendation, knowledge base management and personal knowledge management. In S2, the knowledge center is also used as a basis to define the logical relationship between each feature parameter and the corresponding result in the knowledge encapsulation object, and to construct a feature parameter logic model and an algorithm model.
[0026] Optionally, data interaction can also be used to transmit data between multiple knowledge packages.
[0027] Optionally, the characteristic parameters include input data, output data, reference data and other data, specifically including: name, symbol, value, unit and the like.
[0028] Optionally, S3 also includes a data interaction interface, which extracts the key feature parameters that need to be interacted with and defines them into a feature-based knowledge image model to achieve fast and automatic delivery. It needs to include input data, output data, reference data and other data (name, symbol, value, unit, etc.). The interactive interface should also have pictures that can reflect the relevant feature parameters of the business described by the APP.
[0029] Optionally, a platform system for hydrogen-oxygen engine knowledge packaging, the platform system including a knowledge center, a data management, a task center, and a design center, includes the following steps:
[0030] S1. First, determine the object of knowledge encapsulation according to the task instructions issued by the task center;
[0031] S2. Establish the design process of the knowledge encapsulation object
[0032] S2.1. Through the data provided by the knowledge center, it is possible to determine the various business logic descriptions of the knowledge encapsulated object from R&D, design to manufacturing or operation and maintenance, define its complete business logic, and lay a solid foundation for the subsequent establishment of the design process of the knowledge encapsulated object;
[0033] S3. Through the cooperation between the design center and data management, the knowledge encapsulation object can call and drive the industrial drawing software to complete the modeling. The industrial drawing software includes various two-dimensional and three-dimensional drawing software, so as to establish the characteristic knowledge image model of the knowledge encapsulation object. At the same time, based on the knowledge center, the logical relationship between each characteristic parameter and the corresponding result in the knowledge encapsulation object is defined, and the characteristic parameter logic model and algorithm model are constructed;
[0034] S4. Encapsulate the design process in the form of an APP.
[0035] Optionally, the design center includes a process configuration tool, a process template package, a process scheduling engine, and a tool component package;
[0036] The design process of the knowledge encapsulation object is established through the process configuration tool, and the integration of commercial software, self-developed programs, and algorithms can be achieved through tool component encapsulation;
[0037] Process-based template encapsulation can provide guidance for establishing the design process of knowledge encapsulation objects;
[0038] Process scheduling is to facilitate subsequent reference to existing design processes.
[0039] Optionally, data sources and data processing include data BOM, R&D process database, data collaboration, data lineage and data dynamic modeling.
[0040] Optionally, APP conversion also includes: the process of converting self-developed programs into APPs; the process of converting general tools into APPs; and the process of converting engineering software into APPs.
[0041] The embodiment of the present invention provides a method for encapsulating hydrogen-oxygen engine knowledge. It has the following beneficial effects: in the process of hydrogen-oxygen engine research and development, the knowledge obtained in the process of characterization and definition of hydrogen-oxygen engine design knowledge is modeled and encapsulated, and an executable hydrogen-oxygen engine design APP that solves specific problems is formed through information technology means;
[0042] By adopting automated knowledge packaging technology, the hydrogen-oxygen engine design process, design process and engineering knowledge are packaged for the hydrogen-oxygen engine research and development application. Knowledge processing tools are used to encapsulate the research and development process, standards and specifications, experience, algorithms, formulas, and design simulation processes to form click-to-use knowledge that automatically runs, infers, judges, and makes decisions, thereby achieving the effect of intelligent application. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] Figure 1 It is a schematic diagram of the structural flow of the present invention;
[0044] Figure 2-3 It is a detailed flow chart of the structure of the present invention;
[0045] Figure 4 It is a schematic diagram of the background technology center of the present invention;
[0046] Figure 5-14 This is a schematic diagram of the design process of a low-temperature fixed ball valve in the curing mode of Experimental Example 1 of the present invention;
[0047] Figure 15-16 Schematic diagram of input and output files for Experimental Examples 2 and 3 of the present invention;
[0048] Fig.17 It is a schematic diagram of the development direction of ANSYS secondary development of the present invention. DETAILED DESCRIPTION
[0049] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0050] Example 1
[0051] See attached Figure 1-14, a hydrogen-oxygen engine knowledge packaging method, comprising the following steps:
[0052] S1. Determine the object of knowledge encapsulation:
[0053] After sorting out the various business logic descriptions during the research and development, design, manufacturing or operation and maintenance of the knowledge encapsulation object, its complete business logic is defined. With a relatively complete understanding of the knowledge encapsulation object, it is convenient to provide a more accurate and effective design process in the subsequent design of the knowledge encapsulation object.
[0054] S2. Establish the design process of the knowledge encapsulation object:
[0055] By using industrial mapping software adapters, the integration of commercial software, self-developed programs, and algorithms is realized. The knowledge encapsulation object can call and drive the industrial mapping software to complete the modeling. The industrial mapping software includes various two-dimensional and three-dimensional mapping software, so as to establish the feature-based knowledge image model of the knowledge encapsulation object. At the same time, based on the knowledge center, the logical relationship between each feature parameter and the corresponding result in the knowledge encapsulation object is defined, and the feature parameter logic model and algorithm model are constructed.
[0056] S3, then input the corresponding characteristic parameters and obtain the corresponding results;
[0057] According to the algorithms related to the feature parameter logic model, the data interaction (input data, output data, data mapping relationship) and data delivery form (deliverables) between each feature parameter and the result are clarified. The definition of data interaction can also be used for data transmission between multiple knowledge packages.
[0058] The key feature parameters that need to be interacted with are extracted and defined in the feature parameter logic model to achieve fast and automatic delivery. The feature parameters include input data, output data, reference data and other data (name, symbol, value, unit, etc.). The interactive interface should also have information that can reflect the relevant feature parameter results of the business described by the knowledge.
[0059] S4. After submitting the task, the design process is packaged in the form of an APP.
[0060] After the model calculation, the corresponding results can be obtained. By submitting the task, the design process can be encapsulated in the form of an APP.
[0061] For the specific packaging method, see the subsequent experimental example 2;
[0062] The APP can solve specific problems and meet specific needs by packaging and solidifying various processes, methods, data, information, laws, experience, knowledge and other technical elements in the industrial field through data modeling and analysis, structured organization, systematic abstraction and refinement, and based on unified standards, these technical elements are formed into an industrial application that can be efficiently reused and widely disseminated. The APP is an important achievement in the softwareization of industrial technology. In essence, it is a carrier for the precipitation, transformation and application of industrial technology experience, laws and knowledge, and is small, light and flexible.
[0063] By adopting automated knowledge packaging technology, the hydrogen-oxygen engine design process, design process and engineering knowledge are packaged for the hydrogen-oxygen engine research and development application. Knowledge processing tools are used to encapsulate the research and development process, standards and specifications, experience, algorithms, formulas, and design simulation processes to form click-to-use knowledge that automatically runs, infers, judges, and makes decisions, thereby achieving the effect of intelligent application.
[0064] (1) Accumulate corporate knowledge;
[0065] (2) address the imbalance in organizational capabilities;
[0066] (3) Shorten the employee training cycle;
[0067] (4) Avoid knowledge loss;
[0068] (5) Improve the efficiency of hydrogen-oxygen engine product development, design, production, and operation and maintenance;
[0069] (6) Promote the systematic construction of hydrogen-oxygen engine majors.
[0070] Example 2
[0071] At the same time, in order to facilitate the efficiency of knowledge encapsulation, we have also designed a platform system, which includes a knowledge center, data management, task center, and design center.
[0072] First, according to the instructions issued by the task center, determine the object of knowledge encapsulation;
[0073] The knowledge center includes various means of acquiring industry knowledge, such as knowledge solidification, knowledge search, knowledge recommendation, knowledge base management and personal knowledge management.
[0074] Through the data provided by the knowledge center, we can determine the various business logic descriptions of the knowledge encapsulated object from R&D, design to manufacturing or operation and maintenance, define its complete business logic, and lay a solid foundation for the subsequent establishment of the design process of the knowledge encapsulated object;
[0075] Establish the design process of the knowledge encapsulation object
[0076] The design center includes process configuration tools, process template packaging, process scheduling engine and tool component packaging.
[0077] The design process of the knowledge encapsulation object is established through the process configuration tool, and the integration of commercial software, self-developed programs and algorithms can be achieved through tool component encapsulation.
[0078] Process-based template encapsulation can provide guidance for establishing the knowledge encapsulation object design process and play an auxiliary role.
[0079] Process scheduling is to facilitate subsequent reference to existing design processes.
[0080] It also includes data management including data sources and data processing including data BOM, R&D process database, data collaboration, data lineage and data dynamic modeling.
[0081] Through the cooperation between the design center and data management, the knowledge encapsulation object can call and drive the industrial drawing software to complete modeling. The industrial drawing software includes various two-dimensional and three-dimensional drawing software, so as to establish the feature-based knowledge image model of the knowledge encapsulation object. At the same time, based on the knowledge center, the logical relationship between each feature parameter and the corresponding result in the knowledge encapsulation object is defined, and the feature parameter logic model and algorithm model are constructed.
[0082] Experimental Example 1
[0083] R&D process solidification model-low temperature fixed ball valve rapid design process
[0084] like Figure 5-14 As shown, the following steps are included;
[0085] S1. Determine the object of knowledge encapsulation
[0086] S1.1 Login system
[0087] Enter your username and password to log in to the platform system;
[0088] S1.2 Select valve subsystem
[0089] Select valve subsystems in the mission center of the platform system;
[0090] S1.3 Then select the required ball valve design process;
[0091] Designers select the design process based on the tasks they receive. The ball valve includes many parts such as the ball, valve body, valve seat, etc.
[0092] S2. Establish the design process of the knowledge encapsulation object
[0093] S2.1. Create a process template;
[0094] Designers create new process templates and create process templates through process template encapsulation;
[0095] S2.2. Complete the design work items step by step;
[0096] After the process template is created, different operations will be performed depending on whether knowledge encapsulation exists;
[0097] S2.2.1, when there is no callable knowledge package in the process template;
[0098] By driving the industrial drawing software to model one or more of the sphere, valve body, valve seat and other components, and through the data of the knowledge center, define the logical relationship between each characteristic parameter and the corresponding result in the knowledge encapsulation object, and construct the characteristic parameter logic model and algorithm model.
[0099] S2.2.2, when there is a callable knowledge package in the process template;
[0100] Directly call the knowledge package, such as Fig.10 As shown, select the corresponding APP to directly call the corresponding knowledge package;
[0101] S3, then input the corresponding characteristic parameters and obtain the corresponding results;
[0102] S3.1 parameter automatic mapping;
[0103] By inputting the material, structure, and performance characteristic parameters of each valve component;
[0104] S3.2 Run work items;
[0105] Automatically calculate the corresponding results through the characteristic parameter logic model and algorithm model;
[0106] S4. After submitting the task, the design process is packaged separately in the form of an APP.
[0107] After submitting the task, the design process of the parameter will be encapsulated and saved in the valve subsystem in the process template in the form of an APP, which is convenient for subsequent designers to refer to and consult. They can understand the parameters of each component in the process template and the corresponding results. At the same time, they can also consult the R&D and design ideas of previous designers, achieving a complete knowledge encapsulation effect.
[0108] Experimental Example 2
[0109] It is suitable for converting various knowledge in the field of oxygen and liquid hydrogen engines into APP processes. Similarly, it can also be stored in other ways, such as databases, file packages, etc.
[0110] 1. The implementation of APP conversion must follow the following principles:
[0111] 1.1 Define business logic
[0112] Sorting out various business logic descriptions during the development, design, manufacturing or operation and maintenance of the APP encapsulated object, and defining its complete business logic. When an APP solves a specific problem, it often needs to be broken down into multiple steps, with the business logic between each step, including iterations, branches, data interaction forms, etc.
[0113] 1.2 Define feature parameter logic
[0114] Complete the feature-based knowledge modeling, define the logical relationship between feature parameters according to the various feature parameters of the specific target of the specific object, and build the feature parameter logic model and algorithm model.
[0115] 1.3 Define data interaction
[0116] According to the algorithms related to the feature parameter logic model, the data interaction between the feature parameters (input data, output data, data mapping relationship) and the data delivery form (deliverables) are clarified. Data interaction can also be used to transmit data between multiple APPs.
[0117] 1.4 Encapsulation Enabling Tools
[0118] By encapsulating industrial software adapters, the integration of commercial software, self-developed programs, and algorithms is realized, so that APP can call and drive industrial software to complete domain modeling.
[0119] 1.5 Define the data interaction interface
[0120] The key feature parameters that need to be interacted with are extracted and defined into the feature-based knowledge image model to achieve fast and automatic delivery. This requires including input data, output data, reference data and other data (name, symbol, value, unit, etc.). The interactive interface should also have pictures that reflect the relevant feature parameters of the business described by the APP.
[0121] 2. Self-developed program conversion
[0122] 2.1 Command Execution
[0123] 2.1.1 Input and output requirements
[0124] 2.1.1.1 Input and output files are general text files and can be opened and edited with Notepad.
[0125] 2.1.1.2 Input and output files are standardized text files with clear names (fixed names) and fixed formats. Parameters can be separated by standard characters such as spaces, tabs, commas, etc.
[0126] 2.1.1.3 Input and output files are written in the form of parameter name, parameter value, and description comments, such as Fig.15 As shown,
[0127] 2.1.1.4 Input and output files must be in the same directory as the calculation program and cannot exist in an absolute or relative path.
[0128] 2.1.2 Packaging Program Requirements
[0129] The executable program is an EXE or BAT program and needs to be executed normally in Windows 7 and above.
[0130] The execution computer must have an EXE or BAT execution environment, or an installation package that can provide the environment.
[0131] If the executable program depends on a third-party library or program, the dependent program needs to be in the same directory as the EXE and cannot be a directory (if it is inconvenient to put it in the same directory or the dependent file is too large or is a directory, the dependent file can be placed in any directory, and the directory can be added to the environment variable "PATH" and verify whether the executable program can be executed normally in any directory. It can be packaged only after it can be executed normally).
[0132] The input and output files of the execution program need to be in the same directory as the execution program and must be text files.
[0133] The program can be executed automatically without human intervention (preferably without an interface display. If an interface exists, the program can close itself after running without human intervention). If an error occurs, the error information can be written to the error file in the same directory and the relevant format must be agreed upon.
[0134] The execution of the program needs to be completed within a limited time step, and after the calculation is completed, the program and its subroutine string (other subroutines called by the execution program and the next level subroutines called by other subroutines again, etc.) can automatically exit.
[0135] The executable program needs to support Chinese paths.
[0136] If the execution program must have an input interface for parameter input, the input interface can be removed and the design of the input interface can be completed by the platform;
[0137] The input and output of the execution program can only be ordinary files, and the name format is fixed.
[0138] 2.1.3 Execution method
[0139] When the program is running, it will look for the corresponding files in the working folder (hereinafter referred to as the Work directory) to run, so the user needs to put the packaged program, input and output, and dependent files into the Design directory, and configure the dependent file function. The program will be automatically copied to the Work directory before running.
[0140] 2.2 Formula parsing component
[0141] Input and output requirements
[0142] The input of the formula parsing component is the newly created parameters in the platform. The parameter type involved is preferably "Real" or "Interger". When editing the formula, you can directly use the mathematical operations and trigonometric function formulas provided by the component by default.
[0143] Packaging program requirements
[0144] The algorithm to be integrated is directly reflected in the formula, and there is no program to be encapsulated.
[0145] ·Execution method
[0146] When the platform is running, it will automatically replace the parameter name in the formula on the right side of the equal sign with the parameter value for mathematical calculation, and the final calculation result will be directly assigned to the parameter on the left side of the equal sign.
[0147] 2.3DLL Program
[0148] Input and output requirements
[0149] Packaging program requirements
[0150] 1. The integrated program is a standard DLL program.
[0151] 2. The program does not depend on other DLL programs
[0152] 3. The functions that need to be called by the DLL component are exported with extern "C" declaration.
[0153] 4. The exported function parameters and return values only support simple data types (integer, floating point, string).
[0154] ·Execution method
[0155] When the program is running, it will look for the corresponding file in the working folder (hereinafter referred to as the Work directory) to run, so the user needs to put the packaged program into the Design directory, and the program will be automatically copied to the Work directory before running. When executing, the DLL parameters will be called in sequence and data will be exchanged. After running, the return value will be placed in the result parameter.
[0156] Experimental Example 3
[0157] The process of converting general tools into APP
[0158] Excel Component
[0159] Input and output requirements
[0160] This component inputs an Excel file and supports xls and xlsx formats. If the format is a compatible format, you need to open the file, click Save, and set the compatibility pop-up box to not pop up. The input and output parameters in Excel can be extracted to the knowledge engineering platform through the Excel component.
[0161] The input and output parameters in Excel can be extracted to the knowledge engineering platform in the form of Real or String. If the selected cell is not a single cell, the parameters will be extracted to the knowledge engineering platform in the form of a table.
[0162] Packaging program requirements
[0163] The input parameters in Excel refer to the initial input parameters without formulas, and the output parameters refer to the parameters calculated from the input parameters through formulas.
[0164] After extracting the parameters, it is generally necessary to customize the interface using the interface designer. The parameters are displayed in an edit bar and associated with the parameters of the excel component. The edit bar uses different colors to represent input and output. Generally, the input is green (set the styleSheet of the edit bar to: background-color:rgb(233,255,221);), the output is white, and it is not editable (check the readOnly item of the edit bar). For the check parameters in excel (displaying true or false through logical statements), extract them in String form and associate them with the CheckEdit interface plug-in in the interface designer. The function of the execution component is implemented by the operation button, and the operation button is associated with the operation of the excel component.
[0165] ·Execution method
[0166] After customizing the interface, in the template run of the toolbar on the process designer tab page, check "Interactive Run" and click "Run" to call up the interface customized by the interface designer, and then set the input parameters and calculate in the interface.
[0167] Word Component
[0168] Input and output requirements
[0169] The input of this component is a word template file. The fields in the Word template file can be extracted to the knowledge engineering platform as parameters through the word component. The fields in the Word file can be extracted as parameters in the form of Real or String. Because the word component is generally used to generate word reports, the parameters are generally extracted in the form of input parameters. If you need to generate an image into a word report, you can associate a field in the word file with a File parameter.
[0170] Packaging program requirements
[0171] The process encapsulated by the Word component generally has no interface. After defining the input parameters, you can generate a Word report through the input parameters. The input parameters can come from upstream components or upstream work items. If you customize the interface, you can input the parameters on the interface into the Word report.
[0172] ·Execution method
[0173] In the template run of the toolbar on the process designer tab page, click "Run" to generate a word report. If you customize the interface, check "Interactive Run" and then click "Run" to call up the interface customized by the interface designer, then set the input parameters in the interface and generate a report.
[0174] File parsing component
[0175] Input and output requirements
[0176] 1. The input and output files are general text files and can be opened and edited with Notepad.
[0177] 2. The input and output files are standardized text files with clear names (fixed names) and fixed formats. Parameters can be separated by standard characters such as spaces, tabs, commas, etc.
[0178] 3. Input and output files are written in the form of parameter name, parameter value, and description comments, such as Fig.16 As shown:
[0179] 4. Input and output files need to be in the same directory as the calculation program and cannot exist in an absolute or relative path.
[0180] ·Execution method
[0181] The file parsing component is one of the most basic components, providing the read and write functions for the most common text files (for example: txt files, xml files, and all files that can be opened in text format). The so-called read and write function refers to the read and write of predefined file contents according to the rules set by the user. The operation source file is located in the Design directory, and the operation result is located in the Work directory of the process or task.
[0182] Matlab
[0183] Input and output file requirements
[0184] 1. The component requires the .m program to provide a unified input and output format to facilitate quick positioning of the program;
[0185] 2. The input and output parameters in the .m file need to be identifiable so that parameter association can be done quickly without human intervention.
[0186] Packaging program requirements
[0187] 1. The executable program is an EXE or BAT program and needs to be executed normally in Windows 7 and above.
[0188] 2. The execution computer must have an EXE or BAT execution environment, or an installation package that can provide the environment.
[0189] 3. If the executable program depends on a third-party library or program, the dependent program needs to be in the same directory as the EXE and cannot be a directory (if it is inconvenient to put it in the same directory or the dependent file is too large or is a directory, the dependent file can be placed in any directory, and the directory can be added to the environment variable "PATH" and verify whether the executable program can be executed normally in any directory. It can be packaged only after it can be executed normally).
[0190] 4. The input and output files of the execution program need to be in the same directory as the execution program and must be text files.
[0191] 5. The program can be executed automatically without human intervention (it is best not to have an interface display. If there is an interface, the program can close itself after running without human intervention). If an error occurs, the error information can be written to the error file in the same directory and the relevant format should be agreed upon.
[0192] 6. The execution of the program needs to be completed within a limited time step, and after the calculation is completed, the program and its subroutine string (other subroutines called by the execution program and grandchildren called by other subroutines again, etc.) can automatically exit.
[0193] 7. The execution program needs to support Chinese path.
[0194] 8. If the execution program must have an input interface for parameter input, the input interface can be removed and the design of the input interface can be completed by the platform;
[0195] 9. The input and output of the execution program can only be ordinary files, and the name format is fixed.
[0196] Platform execution mode
[0197] For Matlab components, the platform will also copy the corresponding calculation program to the Work directory and execute the corresponding Matlab program in the Work directory. Therefore, users also need to put the source program that the calculation depends on into the Design directory and configure the dependent file function so that it can be copied to the working directory during runtime.
[0198] Experimental Example 4
[0199] The process of converting engineering software into APP
[0200] CAD
[0201] Creo
[0202] Input and output requirements
[0203] This component is input as a Creo prt file. Since parametric models are more conducive to regenerating models, prt files generally need to define parameters. Parameters are defined in Creo software Tools → Model Intent → Parameters, and are associated with model dimensions in Tools → Model Intent → Relationships.
[0204] Packaging program requirements
[0205] The process of CreoV2 component packaging can be executed without an interface by directly clicking "Update Model" in the component interface, or by drawing an interface and driving parametric modeling through the parameters on the interface.
[0206] ·Execution method
[0207] If there is no encapsulated interface, double-click to open the CreoV2 component, set the parameters, and click "Update Model" for parametric modeling; if you customize the interface, in the template run of the toolbar on the process designer tab page, check "Interactive Run", and then click "Run" to call up the interface customized by the interface designer, and then set the input parameters in the interface and run.
[0208] 1.1.1.1.1 AutoCAD
[0209] Input and output file requirements
[0210] 1. Input: AutoCAD drawing DWG file.
[0211] 2. Output: The latest saved drawing Dwg file.
[0212] Packaging program requirements
[0213] 1. The executable program is an EXE or BAT program and needs to be executed normally in Windows 7 and above.
[0214] 2. The execution computer must have an EXE or BAT execution environment, or an installation package that can provide the environment.
[0215] 3. If the executable program depends on a third-party library or program, the dependent program needs to be in the same directory as the EXE and cannot be a directory (if it is inconvenient to put it in the same directory or the dependent file is too large or is a directory, the dependent file can be placed in any directory, and the directory can be added to the environment variable "PATH" and verify whether the executable program can be executed normally in any directory. It can be packaged only after it can be executed normally).
[0216] Platform execution mode
[0217] When the program is running, it will look for the corresponding files in the working folder (hereinafter referred to as the Work directory) to run, so the user needs to put the packaged program, input and output, and dependent files into the Design directory, and configure the dependent file function. The program will be automatically copied to the Work directory before running.
[0218] 1.1.1.1.2 NX
[0219] Input and output file requirements
[0220] 1. Input: NX geometry model prt file.
[0221] 2. Output: prt file generated based on the latest parameters, or model converted into IGES, STEP and other files.
[0222] Packaging program requirements
[0223] NX API functions can run in two different environments. Depending on the compilation and linking conditions, NX API secondary development programs have two forms:
[0224] External mode: The program runs under the operating system without starting the NX interface. It is usually .exe and does not require human-computer interaction. The entry function is usually main.
[0225] Internal mode (Internal): The program must be run in the NX interface environment (Session), which is generally .dll. Human-computer interaction is carried out in the NX interface. The entry function is ufusr or ufsta. Various transactions related to the program are executed through the NX agent. One advantage of this is that the executable program is smaller and the link speed is faster. In addition, once the program is loaded, it will reside in the memory and does not need to be reloaded the next time it is used, which also saves time. Moreover, in this way, users can interact with the computer, and the developed program can be seamlessly integrated with UG.
[0226] Development Process:
[0227] (1) Set the UGII_USER_DIR environment variable and create application and startup folders;
[0228] (2) Use the UIStyler tool to create a dialog box and set the callback function;
[0229] (3) Create a VC project, include the .h and .cpp files generated by UIStyle in the project, and complete the relevant settings;
[0230] (4) Implement the functions of each callback function and compile to generate dll;
[0231] (5) Put the dialog file into the application folder and the dll into the startupw folder;
[0232] (6) Use the MenuScript tool to embed the dll into the NX menu bar.
[0233] Before calling NX API functions, you should first call UF_initialize() to obtain execution permission. When you no longer call NX API functions, you must call UF_terminate() to release execution permission.
[0234] Tag_t type is the most commonly used data type in NX API. It is used to identify various objects in NX. All objects in NX have a tag_t identifier.
[0235] Platform execution mode
[0236] The exe program developed in the external mode, double-click to open the NX component, automatically extract the defined parameters in the prt file through the program, set the parameter values, and click "Update Model" to perform parametric modeling;
[0237] For the dll plug-in developed in the internal mode, in the template run of the toolbar on the process designer tab page, click "Run" to call up NX and automatically open the model, then set the input parameters in the plug-in interface and run it.
[0238] 1.1.1.2FEA
[0239] Ansys
[0240] Input and output file requirements
[0241] 1. Input: During the ANSYS software packaging process, different input file formats can be customized according to different needs. The general format is wbpj file (ANSYS project file).
[0242] 2. Output: The output files can be stress curves, cloud maps, data results, presentation reports, etc. obtained based on the analysis results.
[0243] Packaging program requirements
[0244] ANSYS encapsulation is based on script encapsulation, which controls each module in ANSYS through command-driven method, and effectively performs various automated operations and human-computer interaction in ANSYS.
[0245] Scripting refers to the use of programming languages to interact with and modify software products. Workbench Mechanical supports two scripting languages: JavaScript and ACT Python, neither of which currently supports script recording and can only be written based on the API.
[0246] The ACT Automation API is based on Python, allowing us to automate the Mechanical simulation process (meshing, model setup, post-processing, etc.) and get or set data related to local Mechanical objects. This previously required the use of JavaScript, but now IronPython can be used to write automation scripts.
[0247] ANSYS provides very detailed and comprehensive Python-based ACT development documentation, and is gradually expanding and improving ACT development functions. Therefore, Python-based ACT development represents the future development direction of ANSYS secondary development. Fig.17 shown.
[0248] Platform execution mode
[0249] When configuring component information, the user will be prompted to select an ANSYS project file and an existing parameter script file. By customizing the human-machine interface, the parameters are placed on the interface and the setting button is automatically run with one click.
[0250] 1.1.1.2.1Nastran
[0251] Input and output file requirements
[0252] 1. The component requires a BDF file as input;
[0253] 2. The output file of the component is the Nastran output result file.
[0254] Packaging program requirements
[0255] This requirement is the same as that of self-developed programs. It should be noted that Nastran is generally called using BAT. It is best to locate the Nastran working directory in the Work directory of the process, but the BDF file must be generated in the Work directory.
[0256] The BAT command executed is nastran.exe[bdf]parallel=[n].
[0257] Where, [bdf]: the path of the bdf file of the calculation model; [n]: the number of CPU cores
[0258] Example: Nastran.exe job1.bdf parallel=2
[0259] Platform execution mode
[0260] 1. When the program is running, it will look for the corresponding files in the working folder (hereinafter referred to as the Work directory) to run, so the user needs to put the input and output and dependent files into the Design directory and configure the dependent file function. The program will automatically copy them to the Work directory before running.
[0261] 2. The program runs Nastran to submit the calculation based on the file name and the number of CPU cores set by the user.
[0262] CAD
[0263] Input and output file requirements
[0264] 1. The TCL language in the script / log must conform to the lexical specifications of FLUENT;
[0265] 2. The GUI records in the script / log file need to be consistent with the FLUENT software version called.
[0266] 3. The input and output parameters in the script / log file need to be identifiable and parameter association can be performed quickly without human intervention.
[0267] Packaging program requirements
[0268] 1. The executable program is an EXE or BAT program and needs to be executed normally in Windows 7 and above.
[0269] 2. The execution computer must have an EXE or BAT execution environment, or an installation package that can provide the environment.
[0270] 3. If the executable program depends on a third-party library or program, the dependent program needs to be in the same directory as the EXE and cannot be a directory (if it is inconvenient to put it in the same directory or the dependent file is too large or is a directory, the dependent file can be placed in any directory, and the directory can be added to the environment variable "PATH" and verify whether the executable program can be executed normally in any directory. It can be packaged only after it can be executed normally).
[0271] 4. The input and output files of the execution program need to be in the same directory as the execution program and must be text files.
[0272] 5. The program can be executed automatically without human intervention (it is best not to have an interface display. If there is an interface, the program can close itself after running without human intervention). If an error occurs, the error information can be written to the error file in the same directory and the relevant format should be agreed upon.
[0273] 6. The execution of the program needs to be completed within a limited time step, and after the calculation is completed, the program and its subroutine string (other subroutines called by the execution program and grandchildren called by other subroutines again, etc.) can automatically exit.
[0274] 7. If the execution program requires an input interface for parameter input, the input interface can be removed and the design of the input interface can be completed by the platform.
[0275] Platform execution mode
[0276] For Fluent components, the platform will also copy the corresponding calculation program to the Work directory and execute the corresponding Fluent program in the Work directory. Therefore, users also need to put the CAS and DAT files that the calculation depends on into the Design directory and configure the dependent file function so that they can be copied to the working directory during runtime.
[0277] 1.1.1.3 Pre- and post-processing
[0278] Origin
[0279] Input and output requirements
[0280] Origin input parameters are generally data in txt format, and the output file is the graphics drawn by Origin.
[0281] Packaging program requirements
[0282] Origin programs are generally packaged in exe format.
[0283] ·Execution method
[0284] Start the Origin software through the script, generate the Origin execution command, and copy it to the Origin software for execution. Origin needs to have a compiled custom function.
[0285] System Simulation
[0286] AMESim
[0287] Input and output requirements
[0288] The input of this component is AMESim simulation file (currently supports AMESim14 version). The input and output parameters in the AMESim simulation file can be extracted to the knowledge engineering platform through the AMESim component.
[0289] Packaging program requirements
[0290] The process encapsulated by the AMESim component may not have an interface. In the template run of the toolbar on the process designer tab page, click "Run" to call the AMESim software for simulation; you can also draw an interface and drive the AMESim simulation through the parameters on the interface.
[0291] ·Execution method
[0292] If there is no encapsulated interface, in the template run of the toolbar on the process designer tab page, click "Run" to call the AMESim software for simulation; if the interface is customized, in the template run of the toolbar on the process designer tab page, check "Interactive Run", and then click "Run" to call up the interface customized by the interface designer, and then set the input parameters in the interface and run it.
Claims
1. A method for packaging hydrogen-oxygen engine knowledge, characterized in that: The following features are included: S1. Determine the object of knowledge encapsulation: Sort out various business logic descriptions in the R&D, design, manufacturing or operation and maintenance process of the knowledge encapsulation object and define its complete business logic; S2. Establish the design process of the knowledge encapsulation object: Adopt industrial drawing software adapter to realize the integration of commercial software, self-developed programs and algorithms, so that the knowledge encapsulation object can call and drive the industrial drawing software to complete the modeling. At the same time, cooperate with the knowledge center to establish the characteristic knowledge image model, parameter logic model and algorithm model of the knowledge encapsulation object; S3, then input the corresponding characteristic parameters and obtain the corresponding results; According to the algorithms related to the feature parameter logic model, the data interaction between each feature parameter and the result is clarified, the key feature parameters that need to be interacted are extracted, and defined in the feature parameter logic model to achieve fast and automatic delivery. The data interaction interface has information that can reflect the business described by the knowledge on the relevant feature parameter results; S4. After submitting the task, the design process is packaged in the form of an APP; After the model is calculated, the corresponding results can be obtained, and the design process can be packaged in the form of an APP by submitting the task; The platform system includes knowledge center, data management, task center, and design center, including the following steps: S1. First, determine the object of knowledge encapsulation according to the task instructions issued by the task center; S2. Establish the design process of the knowledge encapsulation object S2.
1. Through the data provided by the knowledge center, it is possible to determine the various business logic descriptions of the knowledge encapsulated object from R&D, design to manufacturing or operation and maintenance, define its complete business logic, and lay a solid foundation for the subsequent establishment of the design process of the knowledge encapsulated object; S3. Through the cooperation between the design center and data management, the knowledge encapsulation object can call and drive the industrial drawing software to complete the modeling. The industrial drawing software includes various two-dimensional and three-dimensional drawing software, so as to establish the characteristic knowledge image model of the knowledge encapsulation object. At the same time, based on the knowledge center, the logical relationship between each characteristic parameter and the corresponding result in the knowledge encapsulation object is defined, and the characteristic parameter logic model and algorithm model are constructed; S4. Encapsulate the design process in the form of an APP.
2. A method for packaging hydrogen-oxygen engine knowledge as claimed in claim 1, characterized in that: The industrial drawing software includes various two-dimensional and three-dimensional drawing software.
3. A method for packaging hydrogen-oxygen engine knowledge as claimed in claim 1, characterized in that: The knowledge center in S2 includes various means of acquiring industry knowledge. In S2, the knowledge center is also used as a basis to define the logical relationship between each feature parameter and the corresponding result in the knowledge encapsulation object, and to construct a feature parameter logic model and an algorithm model.
4. A method for packaging hydrogen-oxygen engine knowledge as claimed in claim 1, characterized in that: The data interaction is used to transmit data between multiple knowledge packages.
5. A method for packaging hydrogen-oxygen engine knowledge as claimed in claim 1, characterized in that: The characteristic parameters include input data, output data, and reference data, specifically including: name, symbol, value, and unit.
6. A method for packaging hydrogen-oxygen engine knowledge as claimed in claim 1, characterized in that: The S3 also includes a data interaction interface, which extracts the key feature parameters that need to be interacted with and defines them into a feature-based knowledge image model to achieve fast and automatic delivery. It needs to include input data, output data, and reference data, and have pictures on the interaction interface that can reflect the relevant feature parameters of the business described by the APP.
7. A method for packaging hydrogen-oxygen engine knowledge as claimed in claim 1, characterized in that: The design center includes process configuration tools, process template packaging, process scheduling engine and tool component packaging; The design process of the knowledge encapsulation object is established through the process configuration tool, and the integration of commercial software, self-developed programs, and algorithms can be achieved through tool component encapsulation; Process-based template encapsulation can provide guidance for establishing the design process of knowledge encapsulation objects; Process scheduling is to facilitate subsequent reference to existing design processes.
8. A method for packaging hydrogen-oxygen engine knowledge as claimed in claim 1, characterized in that: Including data sources and data processing including data BOM, R&D process database, data collaboration, data lineage and data dynamic modeling.
9. A method for packaging hydrogen-oxygen engine knowledge as claimed in claim 1, characterized in that: The APP conversion also includes: the process of converting self-developed programs into APPs; the process of converting general tools into APPs; and the process of converting engineering software into APPs.
