File error checking method, device, electronic equipment and storage medium
Automatically finding errors in nonlinear material files through CAE analysis applications solves the problem of tedious manual error checking, achieves efficient and accurate file error checking, and reduces labor costs.
Patent Information
- Application Number
- CN201910703324.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-07-31
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2039-07-31
AI Technical Summary
In the existing technology, manual inspection of errors in nonlinear material files is cumbersome and easy to miss or make mistakes, resulting in poor error checking results, heavy workload, and high cost.
Obtain the file storage path through the CAE analysis application, automatically traverse and find errors of the target type, and realize automatic error checking of nonlinear material files.
Effectively reduce labor costs, improve error checking efficiency and effect of nonlinear material files, and improve error checking accuracy.
Smart Images

Figure CN112329281B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of vehicle technology, and in particular to a file error checking method, device, electronic equipment and storage medium. Background Art
[0002] When using Computer Aided Engineering (CAE) to perform finite element analysis modeling on vehicle performance, since the performance of materials supplied by different manufacturers and batches may fluctuate, it is necessary to select material samples for material testing. During the test, the material stress-strain test parameters of multiple material samples are first obtained, and then the parameters are processed to form a nonlinear material file that can be recognized and read by the simulation software. If character and parameter errors occur in the nonlinear material file, it will have a great impact on the analysis and modeling work.
[0003] In the related art, engineers usually check whether there are errors in the contents of nonlinear material files one by one, or use their personal experience to judge and check errors.
[0004] In this way, the workload is large, and manual error checking of nonlinear material files is cumbersome and prone to omissions or errors, resulting in poor error checking results. Summary of the invention
[0005] The present invention aims to solve one of the technical problems in the related art at least to a certain extent.
[0006] To this end, the purpose of the present invention is to propose a file error checking method, device, electronic device and storage medium, which can realize automatic error checking of nonlinear material files, effectively reduce labor costs, improve the error checking efficiency of nonlinear material files, and improve the error checking effect.
[0007] To achieve the above-mentioned purpose, a file error checking method proposed in an embodiment of the first aspect of the present invention is applied to CAE analysis, wherein the file is a nonlinear material file in CAE modeling analysis, and includes: using an application for performing the CAE analysis to obtain the storage path of each of the files; traversing each of the storage paths to search for errors of the target type in the files under the currently traversed storage path.
[0008] The file error checking method proposed in the embodiment of the first aspect of the present invention, by adopting an application for CAE analysis, obtains the storage path of each file, and traverses each storage path to search for errors of the target type in the files under the currently traversed storage path. It can realize automatic error checking of nonlinear material files, effectively reduce labor costs, improve the error checking efficiency of nonlinear material files, and improve the error checking effect.
[0009] To achieve the above-mentioned purpose, a file error checking device proposed in an embodiment of the second aspect of the present invention is applied to CAE analysis, wherein the file is a nonlinear material file in CAE modeling analysis, and includes: an acquisition module, which is used to obtain the storage path of each of the files using an application for performing the CAE analysis; an error checking module, which is used to traverse each of the storage paths and search for errors of the target type in the files under the currently traversed storage path.
[0010] The file error checking device proposed in the embodiment of the second aspect of the present invention, by adopting an application for performing CAE analysis, obtains the storage path of each file, and traverses each storage path to search for errors of the target type in the files under the currently traversed storage path. It can realize automatic error checking of nonlinear material files, effectively reduce labor costs, improve the error checking efficiency of nonlinear material files, and improve the error checking effect.
[0011] To achieve the above-mentioned purpose, an electronic device proposed in an embodiment of the third aspect of the present invention includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the file error checking method as described in the above claims when executing the program.
[0012] The electronic device proposed in the embodiment of the third aspect of the present invention, by adopting an application for performing CAE analysis, obtains the storage path of each file, and traverses each storage path to search for errors of the target type in the files under the currently traversed storage path, thereby being able to automatically check errors in nonlinear material files, effectively reduce labor costs, improve the error checking efficiency of nonlinear material files, and improve the error checking effect.
[0013] To achieve the above-mentioned purpose, a computer-readable storage medium is proposed in an embodiment of the fourth aspect of the present invention, on which a computer program is stored, and when the program is executed by a processor, it implements: the file error checking method proposed in the embodiment of the first aspect of the present invention.
[0014] The computer-readable storage medium proposed in the fourth aspect of the embodiment of the present invention, by adopting an application for performing CAE analysis, obtains the storage path of each file, and traverses each storage path to search for errors of the target type in the files under the currently traversed storage path, can realize automatic error checking of nonlinear material files, effectively reduce labor costs, improve the error checking efficiency of nonlinear material files, and improve the error checking effect.
[0015] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] The above and / or additional aspects and advantages of the present invention will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:
[0017] Figure 1 It is a flowchart of a file error checking method proposed in one embodiment of the present invention;
[0018] Figure 2 is a flowchart of a file error checking method proposed in another embodiment of the present invention;
[0019] Figure 3 It is a structural schematic diagram of a file error checking device proposed in one embodiment of the present invention;
[0020] Figure 4 is a structural schematic diagram of a file error checking device proposed in another embodiment of the present invention;
[0021] Figure 5 It is a structural schematic diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0022] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements with the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and are not to be construed as limitations of the present invention. On the contrary, embodiments of the present invention include all changes, modifications and equivalents that fall within the spirit and connotation of the appended claims.
[0023] In order to solve the technical problem in the related art that the manual error checking of nonlinear material files is cumbersome, prone to omissions or errors, and has poor error checking effect, an embodiment of the present invention provides a file error checking method, which uses an application for CAE analysis to obtain the storage path of each file, traverses each storage path, and searches for errors of the target type in the files under the currently traversed storage path. This method can realize automatic error checking of nonlinear material files, effectively reduce labor costs, improve the error checking efficiency of nonlinear material files, and improve error checking effect.
[0024] Figure 1 It is a flowchart of a file error checking method proposed in one embodiment of the present invention.
[0025] This embodiment is described by taking the case where the file error checking method is configured as a file error checking device as an example.
[0026] In this embodiment, the file error checking method may be configured in a file error checking device, and the file error checking device may be set in a server, or may also be set in a mobile device, which is not limited in this embodiment of the present invention.
[0027] The file error checking device in this embodiment is applied to CAE analysis, and specifically, can be applied to HyperMesh, a CAE analysis pre-processing application program, wherein the file is a nonlinear material file in CAE modeling analysis.
[0028] See also Figure 1 , the method comprising:
[0029] S101: Using an application for CAE analysis, obtain the storage path of each file.
[0030] The application for performing CAE analysis may be, for example, the application HyperMesh.
[0031] During the specific execution process, a folder can be prepared and the files to be checked for errors can be configured in the folder. It is assumed that the folder contains n nonlinear material files, and the format of the nonlinear material files can be, for example, inp format. Then, the application for CAE analysis traverses the files contained in the folder to obtain the storage path of each file. The storage path can be, for example, the full path of the above-mentioned nonlinear material file under the Windows system, and there is no limitation to this.
[0032] During the specific execution process, when it is necessary to perform batch error checking on n files in a folder, the application HyperMesh can be started, and the folder where the files to be checked are located can be imported. Then, corresponding prompt information is generated to prompt the user to trigger error checking on the files to be checked, and the system responds to the user's triggering instructions, performs error checking on the files to be checked according to the user's triggering, and uses the application for CAE analysis to obtain the storage path of each file.
[0033] When the embodiment of the present invention uses an application program for CAE analysis to obtain the storage path of each file, a preset application programming interface can be called to execute a corresponding script file to automatically obtain the storage path of each file.
[0034] S102: traverse each storage path and search for errors of the target type in the files under the currently traversed storage path.
[0035] In the specific execution process, after the storage path of each file is obtained, each storage path can be traversed, and the corresponding file can be read based on the storage path of each file, and the file under the currently traversed storage path can be checked for errors.
[0036] In the embodiment of the present invention, in order to make the error checking more targeted and achieve a better error checking effect, when checking the errors of files, the errors of the target type in the files under the currently traversed storage path are searched.
[0037] Optionally, the target type includes: a keyword type and an increasing trend type.
[0038] Among them, the error checking of keyword type is, for example: the file does not contain one or more of the four keywords: Material_name, Density, Elastic, Plastic, or the file contains the above four keywords, but some keywords do not have corresponding values. The error checking of increasing trend type is, for example: each nonlinear material file contains the stress-strain data of the material, but the values of stress and strain are not arranged in the order of increasing trend, and there is no restriction on this.
[0039] The target type can be pre-set by the factory program of the file error checking device, or can be set by the user performing the error checking task according to actual usage requirements. For example, the target type can be set to any other possible form of error type without limitation.
[0040] During the specific execution process, if errors of the target type are found, the errors of the target type are collected; if errors of the target type are not found, the next storage path is traversed, and the files under the next storage path are checked for errors. When the errors of the target type in the files under all storage paths are collected, prompt information is generated. The prompt information is used to prompt the user that errors of the target type exist in the files, so that the error-checking user can clearly know that the traversed files have errors of the target type, so that the error-checking user can take corresponding countermeasures.
[0041] In this embodiment, by using an application for CAE analysis, obtaining the storage path of each file, and traversing each storage path, errors of the target type in the files under the currently traversed storage path are searched, thereby automatically checking errors in nonlinear material files, effectively reducing labor costs, improving the error checking efficiency of nonlinear material files, and improving error checking results.
[0042] Figure 2 It is a flowchart of a file error checking method proposed in another embodiment of the present invention.
[0043] See also Figure 2 , the method comprising:
[0044] S201: Using an application for CAE analysis, obtain the storage path of each file.
[0045] The application for performing CAE analysis may be, for example, the application HyperMesh.
[0046] During the specific execution process, a folder can be prepared and the files to be checked for errors can be configured in the folder. It is assumed that the folder contains n nonlinear material files, and the format of the nonlinear material files can be, for example, inp format. Then, the application for CAE analysis traverses the files contained in the folder to obtain the storage path of each file. The storage path can be, for example, the full path of the above-mentioned nonlinear material file under the Windows system, and there is no limitation to this.
[0047] During the specific execution process, when it is necessary to perform batch error checking on n files in a folder, the application HyperMesh can be started, and the folder where the files to be checked are located can be imported. Then, corresponding prompt information can be generated to prompt the user to trigger error checking on the files to be checked. Then, in response to the user's trigger instruction, the files to be checked are checked according to the user's trigger, and the storage path of each file is obtained using an application for CAE analysis.
[0048] When the embodiment of the present invention uses an application program for CAE analysis to obtain the storage path of each file, a preset application programming interface can be called to execute a corresponding script file to automatically obtain the storage path of each file.
[0049] S202: traverse each storage path to determine whether the file contains a preset number of keywords.
[0050] The preset number can be pre-set by the factory program of the file error checking device, or can also be set by the user who performs the error checking task according to actual usage requirements. For example, the preset number can be set to any other required number without limitation.
[0051] The preset number may be four, and the four keywords may be, for example, Material_name, Density, Elastic, and Plastic.
[0052] In the process of executing this step, for each storage path, it can be determined whether the file to which the current storage path belongs contains the four keywords Material_name, Density, Elastic, and Plastic. If so, S203 is triggered.
[0053] S203: If a preset number of keywords are included, determine whether each keyword has a corresponding value.
[0054] During the specific execution process, if the currently traversed file contains four keywords Material_name, Density, Elastic, and Plastic, it is further determined whether each keyword in Material_name, Density, Elastic, and Plastic has a corresponding value, and then, based on the determined result, it is determined whether there is a keyword type error in the file.
[0055] S204: If the file does not contain a preset number of keywords, or some of the keywords do not have corresponding values, it is determined that there are keyword type errors in the file.
[0056] During the specific execution process, if the currently traversed file contains only some of the four keywords Material_name, Density, Elastic, and Plastic, or does not contain any of the four keywords Material_name, Density, Elastic, and Plastic, it is determined that there is a keyword type error in the file. In addition, if the currently traversed file contains some of the four keywords Material_name, Density, Elastic, and Plastic, but some of the keywords do not have corresponding numerical values, it is determined that there is a keyword type error in the file.
[0057] By traversing each storage path, it is determined whether the file contains a preset number of keywords. If it contains the preset number of keywords, it is determined whether each keyword has a corresponding numerical value. If the file does not contain the preset number of keywords, or some keywords do not have corresponding numerical values, it is determined that there are keyword-type errors in the file. It is possible to automatically search for keyword-type errors in the file in an automated manner, making error searching more targeted, meeting the application requirements of actual scenarios, and improving the accuracy of searching for keyword-type errors.
[0058] S205: Determine a first group of data and a second group of data in the file, where the first group of data and the second group of data are any group of data in a plurality of groups of data.
[0059] During the specific execution process of the embodiment of the present invention, not only can the errors of the keyword type in the file be efficiently searched, but also the errors of the increasing trend type in the file can be efficiently searched.
[0060] The file in the embodiment of the present invention records multiple groups of data, and each group of data has a corresponding first numerical value and a second numerical value. Therefore, in the specific execution process, the first group of data and the second group of data in the currently traversed file can be determined, and then, based on the numerical values of the first group of data and the second group of data, it is determined whether there are errors of the increasing trend type in the file.
[0061] Each set of data has a corresponding first value and a second value. Each set of data may be, for example, stress-strain data. The first value corresponding to each set of data may be, for example, stress, and the second value may be, for example, strain. There is no limitation to this.
[0062] S206: If the first value of the first set of data is smaller than the first value of the second set of data, and the second value of the first set of data is greater than or equal to the second value of the second set of data, it is determined that an increasing trend type error exists in the file.
[0063] As an example, see the following:
[0064] 1. Prepare a folder containing n nonlinear material files;
[0065] 2. Start the CAE analysis pre-processing application HyperMesh;
[0066] 3. Set two variables, keyword_error and increment_error, and set their initial values to empty;
[0067] 4. When the loop variable i=1, read the full path of the first nonlinear material file in Windows system;
[0068] 5. Read the first nonlinear material file. If the file contains four keywords: Material_name, Density, Elastic, Plastic, and each keyword corresponds to a specific value, go to the next step. Otherwise, add the full path of the first nonlinear material file in Windows system to the variable keyword_error and go to step 10.
[0069] 6. Read the material stress-strain values contained in the first nonlinear material file and count the number of groups L;
[0070] 7. When the loop variable j=1, read the stress-strain values corresponding to the first and second sets of data in the first nonlinear material file. If the stress in the first set of data is less than the stress in the second set of data and the strain in the first set of data is less than the strain in the second set of data, go to the next step. Otherwise, add the full path of the first nonlinear material file in Windows system to the variable increment_error and go to step 10.
[0071] 8. When the loop variable j=2, read the stress-strain values of the second and third sets of data in the first nonlinear material file. If the stress in the second set of data is less than the stress in the third set of data and the strain in the second set of data is less than the strain in the third set of data, go to the next step. Otherwise, add the full path of the first nonlinear material file in Windows system to the variable increment_error and go to step 10.
[0072] 9. Similarly, when the loop variable j=L-1, read the stress-strain values corresponding to the penultimate group of data and the last group of data in the first nonlinear material file. If the stress in the penultimate group of data is less than the stress in the last group of data and the strain in the penultimate group of data is less than the strain in the last group of data, go to the next step. Otherwise, add the full path of the first nonlinear material file in Windows system to the variable increment_error and go to the next step.
[0073] 10. When the loop variable i=2, read the full path of the second nonlinear material file in Windows system;
[0074] 11. Read the second nonlinear material file. If the file contains four keywords: Material_name, Density, Elastic, Plastic, and each keyword corresponds to a specific value, go to the next step. Otherwise, add the full path of the second nonlinear material file in Windows system to the variable keyword_error and go to step 16.
[0075] 12. Read the material stress-strain values contained in the second nonlinear material file and count the number of groups L;
[0076] 13. When the loop variable j=1, read the stress-strain values corresponding to the first and second sets of data in the second nonlinear material file. If the stress in the first set of data is less than the stress in the second set of data and the strain in the first set of data is less than the strain in the second set of data, go to the next step. Otherwise, add the full path of the second nonlinear material file in Windows system to the variable increment_error and go to step 16.
[0077] 14. When the loop variable j=2, read the stress-strain values corresponding to the second and third sets of data in the second nonlinear material file. If the stress in the second set of data is less than the stress in the third set of data and the strain in the second set of data is less than the strain in the third set of data, go to the next step. Otherwise, add the full path of the second nonlinear material file in Windows system to the variable increment_error and go to step 16.
[0078] 15. Similarly, when the loop variable j=L-1, read the stress-strain values corresponding to the second-to-last set of data and the last set of data in the second nonlinear material file. If the stress in the second-to-last set of data is less than the stress in the last set of data and the strain in the second-to-last set of data is less than the strain in the last set of data, go to the next step. Otherwise, add the full path of the second nonlinear material file in Windows system to the variable increment_error and go to the next step.
[0079] 16. Similarly, when the loop variable i=n, read the full path of the last nonlinear material file in the Windows system;
[0080] 17. Read the last nonlinear material file mentioned above. If the file contains four keywords: Material_name, Density, Elastic, Plastic, and each keyword corresponds to a specific value, go to the next step. Otherwise, add the full path of the last nonlinear material file in Windows system to the variable keyword_error and go to step 22.
[0081] 18. Read the material stress-strain values contained in the last nonlinear material file mentioned above and count the number of groups L;
[0082] 19. When the loop variable j=1, read the stress-strain values corresponding to the first and second sets of data in the last nonlinear material file. If the stress in the first set of data is less than the stress in the second set of data and the strain in the first set of data is less than the strain in the second set of data, go to the next step. Otherwise, add the full path of the last nonlinear material file in Windows system to the variable increment_error and go to step 22.
[0083] 20. When the loop variable j=2, read the stress-strain values corresponding to the second and third sets of data in the last nonlinear material file. If the stress in the second set of data is less than the stress in the third set of data and the strain in the second set of data is less than the strain in the third set of data, go to the next step. Otherwise, add the full path of the last nonlinear material file in Windows system to the variable increment_error and go to step 22.
[0084] 21. Similarly, when the loop variable j=L-1, read the stress-strain values corresponding to the second-to-last set of data and the last set of data in the last nonlinear material file. If the stress in the second-to-last set of data is less than the stress in the last set of data and the strain in the second-to-last set of data is less than the strain in the last set of data, go to the next step. Otherwise, add the full path of the last nonlinear material file in Windows system to the variable increment_error and go to the next step.
[0085] 22. Determine whether the two variables keyword_error and increment_error are empty, and pop up a window to prompt the user in the following four situations:
[0086] keyword_error and increment_error are both empty - a pop-up window prompts the user that there is no erroneous nonlinear material file;
[0087] keyword_error is empty and increment_error is not empty - a pop-up window will prompt the user that there is a nonlinear material file with stress-strain numerical errors, and the value of the increment_error variable will be attached;
[0088] keyword_error is not empty and increment_error is empty - a pop-up window will be displayed to remind the user that there is a nonlinear material file with keyword errors, and the value of the keyword_error variable will be attached;
[0089] keyword_error and increment_error are not empty - a pop-up window prompts the user that there are nonlinear material files with keyword errors, and the value of the keyword_error variable is attached, and there are nonlinear material files with stress-strain numerical errors, and the value of the increment_error variable is attached.
[0090] In this embodiment, by using an application for CAE analysis, obtaining the storage path of each file, traversing each storage path, and searching for errors of the target type in the file under the currently traversed storage path, it is possible to automatically search for errors in nonlinear material files, effectively reduce labor costs, improve the efficiency of error detection in nonlinear material files, and improve the error detection effect. It is possible to automatically search for keyword-type errors and incremental trend-type errors in files in an automated manner, making error detection more targeted, meeting the application requirements of actual scenarios, and improving the accuracy of keyword-type error search.
[0091] Figure 3 It is a structural schematic diagram of a file error checking device proposed in one embodiment of the present invention.
[0092] Applied in CAE analysis, the file is a nonlinear material file in CAE modeling analysis, and the device 300 includes:
[0093] An acquisition module 301 is used to acquire the storage path of each file using an application program for CAE analysis;
[0094] The error checking module 302 is used to traverse each storage path and search for errors of the target type in the files under the currently traversed storage path.
[0095] Optionally, in some embodiments, see Figure 4 , Figure 4 3 is a schematic diagram of the structure of a file error checking device according to another embodiment of the present invention. The error checking module 302 includes:
[0096] The collecting submodule 3021 is used to collect the errors of the target type when the errors of the target type are found;
[0097] The error checking submodule 3022 is used to traverse the next storage path and check the files under the next storage path for errors when the target type of error is not found;
[0098] The prompt submodule 3023 is used to generate prompt information when errors of the target type in the files under all storage paths are collected, and the prompt information is used to prompt the user that errors of the target type exist in the files.
[0099] Optionally, in some embodiments, the target type includes: a keyword type and an increasing trend type.
[0100] Optionally, in some embodiments, the error checking submodule 3022 is specifically used to:
[0101] Determine whether the file contains a preset number of keywords;
[0102] If a preset number of keywords are included, determining whether each keyword has a corresponding value;
[0103] If each keyword has a corresponding value, it is determined that there is no keyword-type error in the file;
[0104] If the file does not contain a preset number of keywords, or some of the keywords do not have corresponding values, it is determined that there are keyword type errors in the file.
[0105] Optionally, in some embodiments, a plurality of groups of data are recorded in the file, each group of data has a corresponding first value and a second value, and the error checking submodule 3022 is specifically used to:
[0106] Determine a first set of data and a second set of data in a file, wherein the first set of data and the second set of data are any set of data in a plurality of sets of data;
[0107] If the first value of the first set of data is less than the first value of the second set of data, and the second value of the first set of data is greater than or equal to the second value of the second set of data, it is determined that an increasing trend type error exists in the file.
[0108] It should be noted that the explanation of the file error checking method embodiment in the aforementioned embodiment is also applicable to the file error checking device 300 of this embodiment, and the implementation principles are similar, which will not be repeated here.
[0109] In this embodiment, by using an application for CAE analysis, obtaining the storage path of each file, and traversing each storage path, errors of the target type in the files under the currently traversed storage path are searched, thereby automatically checking errors in nonlinear material files, effectively reducing labor costs, improving the error checking efficiency of nonlinear material files, and improving error checking results.
[0110] Figure 5 It is a structural schematic diagram of an electronic device provided by an embodiment of the present invention.
[0111] The electronic device 50 includes: a memory 501, a processor 502, and a computer program stored in the memory 501 and executable on the processor 502. When the processor 502 executes the program, the file error checking method in the above embodiment is implemented.
[0112] In a possible implementation, the electronic device further includes a communication interface 503 for communication between the memory 501 and the processor 502 .
[0113] In this embodiment, by using an application for CAE analysis, obtaining the storage path of each file, and traversing each storage path, errors of the target type in the files under the currently traversed storage path are searched, thereby automatically checking errors in nonlinear material files, effectively reducing labor costs, improving the error checking efficiency of nonlinear material files, and improving error checking results.
[0114] In order to implement the above embodiment, the present invention further proposes a computer-readable storage medium. When the instructions in the storage medium are executed by the processor of the encoding device, the encoding device can execute the file error checking method in the above embodiment.
[0115] It should be noted that, in the description of the present invention, the terms "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying relative importance. In addition, in the description of the present invention, unless otherwise specified, the meaning of "plurality" is two or more.
[0116] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present invention includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by those skilled in the art to which the embodiments of the present invention belong.
[0117] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0118] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.
[0119] In addition, each functional unit in each embodiment of the present invention may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.
[0120] The storage medium mentioned above can be a read-only memory, a magnetic disk or an optical disk, etc.
[0121] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0122] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present invention. A person skilled in the art may change, modify, replace and vary the above embodiments within the scope of the present invention.
Claims
1. A file error checking method, characterized in that: Applied in CAE analysis, the file is a nonlinear material file in CAE modeling analysis, and the method includes: Using an application for performing the CAE analysis to obtain a storage path of each of the files; the application is the application HyperMesh; Traversing each of the storage paths, searching for errors of target types in the files under the currently traversed storage path; the target types include: keyword types and increasing trend types; The searching for errors of the target type in the files under the currently traversed storage path includes: Determining whether the file contains a preset number of keywords; If the preset number of keywords are included, determining whether each of the keywords has a corresponding value; If each of the keywords has a corresponding value, determining that there is no error of the keyword type in the file; If the file does not contain the preset number of keywords, or some of the keywords do not have corresponding values, it is determined that there are errors of the keyword type in the file; The file records a plurality of groups of data, each group of the data has a corresponding first value and a second value, and the searching for errors of a target type in the file under the currently traversed storage path includes: Determine a first group of data and a second group of data in the file, wherein the first group of data and the second group of data are any group of data in the plurality of groups of data; If the first value of the first set of data is smaller than the first value of the second set of data, and the second value of the first set of data is greater than or equal to the second value of the second set of data, it is determined that an error of the increasing trend type exists in the file.
2. The file error checking method according to claim 1, characterized in that: The searching for errors of the target type in the files under the currently traversed storage path includes: If errors of the target type are found, the errors of the target type are collected; If no error of the target type is found, traverse the next storage path and check the files under the next storage path for errors; When errors of the target type in the files under all storage paths are collected, prompt information is generated, and the prompt information is used to prompt the user that errors of the target type exist in the files.
3. A file error checking device, characterized in that: Applied in CAE analysis, the file is a nonlinear material file in CAE modeling analysis, and the device includes: An acquisition module, used to acquire the storage path of each of the files using an application for performing the CAE analysis; the application is the application HyperMesh; An error checking module, used to traverse each of the storage paths and search for errors of the target type in the files under the currently traversed storage path; The target types include: keyword type and increasing trend type; The error checking module includes an error checking submodule, and the error checking submodule is specifically used for: Determining whether the file contains a preset number of keywords; If the preset number of keywords are included, determining whether each of the keywords has a corresponding value; If each of the keywords has a corresponding value, determining that there is no error of the keyword type in the file; If the file does not contain the preset number of keywords, or some of the keywords do not have corresponding values, it is determined that there are errors of the keyword type in the file; The file records multiple groups of data, each group of data has a corresponding first value and a second value, and the error checking submodule is specifically used to: Determine a first group of data and a second group of data in the file, wherein the first group of data and the second group of data are any group of data in the plurality of groups of data; If the first value of the first set of data is smaller than the first value of the second set of data, and the second value of the first set of data is greater than or equal to the second value of the second set of data, it is determined that an error of the increasing trend type exists in the file.
4. The file error checking device according to claim 3, characterized in that: The error checking module further includes a collecting submodule and a prompting submodule, wherein the collecting submodule is used to collect the errors of the target type when the errors of the target type are found; The error checking submodule is used to traverse the next storage path and check the files under the next storage path for errors when the error of the target type is not found; The prompt submodule is used to generate prompt information when errors of the target type in the files under all storage paths are collected, and the prompt information is used to prompt the user that errors of the target type exist in the files.
5. An electronic device, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the file error checking method according to any one of claims 1 to 2 when executing the program.
6. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the file error checking method according to any one of claims 1 to 2 is implemented.
Citation Information
Patent Citations
Error checking method and error checking device of document to be printed
CN103136740A
