Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. Meanwhile, in the description of the present invention, the terms "first", "second", and the like are used only for distinguishing the description, and are not to be construed as indicating or implying relative importance.
Fig. 1 shows a block diagram of an electronic device 100 applicable to an embodiment of the present invention. As shown in fig. 1, the electronic device 100 may include a memory 102, a memory controller 104, one or more processors 106 (only one shown in fig. 1), a peripheral interface 108, an input-output module 110, an audio module 112, a display module 114, a radio frequency module 116, and a residual stress value obtaining device.
The memory 102, the memory controller 104, the processor 106, the peripheral interface 108, the input/output module 110, the audio module 112, the display module 114, and the radio frequency module 116 are electrically connected directly or indirectly to realize data transmission or interaction. For example, electrical connections between these components may be made through one or more communication or signal buses. The residual stress value acquisition method includes at least one software functional module that may be stored in the memory 102 in the form of software or firmware (firmware), for example, a software functional module or a computer program included in the residual stress value acquisition apparatus, respectively.
The memory 102 may store various software programs and modules, such as program instructions/modules corresponding to the method and apparatus for obtaining residual stress values provided in the embodiments of the present application. The processor 106 executes various functional applications and data processing by executing software programs and modules stored in the memory 102, that is, implements the residual stress value acquisition method in the embodiment of the present application.
The Memory 102 may include, but is not limited to, Random Access Memory (RAM), Read Only Memory (ROM), Programmable Read Only Memory (PROM), Erasable Read Only Memory (EPROM), electrically Erasable Read Only Memory (EEPROM), and the like.
The processor 106 may be an integrated circuit chip having signal processing capabilities. The processor may be a general-purpose processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; but may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components. Which may implement or perform the methods, steps, and logic blocks disclosed in the embodiments of the present application. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The peripherals interface 108 couples various input/output devices to the processor 106 and to the memory 102. In some embodiments, the peripheral interface 108, the processor 106, and the memory controller 104 may be implemented in a single chip. In other examples, they may be implemented separately from the individual chips.
The input-output module 110 is used for providing input data to a user to enable the user to interact with the electronic device 100. The input/output module 110 may be, but is not limited to, a mouse, a keyboard, and the like.
Audio module 112 provides an audio interface to a user that may include one or more microphones, one or more speakers, and audio circuitry.
The display module 114 provides an interactive interface (e.g., a user interface) between the electronic device 100 and a user or for displaying image data to a user reference. In this embodiment, the display module 114 may be a liquid crystal display or a touch display. In the case of a touch display, the display can be a capacitive touch screen or a resistive touch screen, which supports single-point and multi-point touch operations. Supporting single-point and multi-point touch operations means that the touch display can sense touch operations from one or more locations on the touch display at the same time, and the sensed touch operations are sent to the processor 106 for calculation and processing.
The rf module 116 is used for receiving and transmitting electromagnetic waves, and implementing interconversion between the electromagnetic waves and electrical signals, so as to communicate with a communication network or other devices.
It will be appreciated that the configuration shown in FIG. 1 is merely illustrative and that electronic device 100 may include more or fewer components than shown in FIG. 1 or have a different configuration than shown in FIG. 1. The components shown in fig. 1 may be implemented in hardware, software, or a combination thereof.
In the embodiment of the invention, the electronic device 100 may be a user terminal or a server. The user terminal may be a pc (personal computer), a tablet computer, a mobile phone, a notebook computer, an intelligent television, a set-top box, a vehicle-mounted terminal, and other terminal devices.
First embodiment
Referring to fig. 2, an embodiment of the present invention provides a method for obtaining a residual stress value, including: step S200, step S210, step S220, step S230, and step S240.
Step S200: reading the explicit result file information to be calculated, and displaying the visual object corresponding to the explicit result file information.
In this embodiment, the explicit result file information may be explicit power cut calculation result information such as the odb file information. As shown in fig. 3, 10 denotes a cutting finite element model, and after the explicit cutting analysis is completed, two components of the workpiece 11 and the tool 12 are present in the cutting finite element model 10 at the same time. The workpiece 11 includes unseparated residual workpiece material 11a and separated swarf 11b, and the unseparated residual workpiece material 11a cannot be directly used for subsequent implicit residual stress analysis, because there may also be "illegal" elements or sets of elements of rigid body mode (e.g., voxels or sets thereof connected by a node or two nodes) on the cutting face, and additionally, elements or sets thereof that affect the convergence of the residual stress calculation (e.g., planar elements or sets thereof connected by a node).
Step S210: and acquiring a main material unit set based on the visual object corresponding to the explicit result file and a preset lap joint search rule.
Based on step S210, further, a unit of the visual object corresponding to the explicit result file information is obtained, and from this unit, units with the number of connection nodes not less than N on the visual object are overlapped to obtain a main material unit set. The preset lap joint search rule may be to lap joint the unit, in which the number of the connection nodes on the visual object is not less than N, from the unit.
Specifically, the unit node is regarded as a hinge node, and based on the geometric invariant system principle of structural mechanics, units with the number of connecting nodes not less than N are lapped from the unit, so that a main material unit set which can be directly used for residual stress calculation is finally formed. N may take on values of 2 and 3. Taking N2 represents a 2-dimensional problem and taking N3 represents a 3-dimensional problem.
Step S220: and acquiring reconstructed explicit result file information based on the read original file information corresponding to the explicit result file and the main material unit set.
Based on step S220, further, according to the analysis setting of the read original file information corresponding to the explicit result file, a restart analysis file is established by using the main material unit set, and after a restart analysis process, the reconstructed explicit result file information is obtained.
In this embodiment, taking an abequs software implementation as an example, reading original file information corresponding to the explicit result file, and establishing a restart analysis file by using a searched main material unit set according to analysis setting of the read original file information corresponding to the explicit result file; performing a short restart analysis on the original file information corresponding to the explicit result file, for example, by using a restart analysis, so as to ensure that the information of the main material set is written in all restart files; and obtaining the reconstructed explicit result file information.
Step S230: and outputting residual stress calculation file information based on the reconstructed explicit result file information and a preset setting rule.
And the preset setting rules comprise basic solving setting rules, analysis related setting rules and model constraint applying rules, and based on the step S230, after the basic solving setting rules, analysis related setting rules and model constraint applying rules are respectively performed on the reconstructed display result file information, the basic solving setting rules, analysis related setting rules and model constraint applying rules are respectively performed, the residual stress calculation file information is output.
The imposed model constraint rules may include automatic inertia release constraint imposed rules and manual constraint rules.
In this embodiment, taking the implementation of the Abaqus software as an example, for example, in the residual stress calculation process, data transmission from the display solver to the implicit solver is required, and the analysis related setting rule may be implemented by an import analysis, which is a way of data transmission between the Abaqus/Standard and the Abaqus/explorer.
Step S240: and executing and calculating the residual stress calculation file information, and displaying the residual stress calculation result.
In order to further explain the simple operation and the beneficial effects of the Residual Stress value obtaining method provided by the embodiment of the present invention, in the embodiment, an Abaqus script interface is used to perform a plug-in programming (RSC) on the Residual Stress calculation in the metal cutting process, including kernel and GUI programming. The implementation is embodied in Abaqus software. Among the finite element analysis software, the secondary development interface provided by the Abaqus software is very advantageous, and the interface provided by the Abaqus software includes the following two types: a user subroutine interface and an Abaqus script interface. The user subprogram interface (UserSubrouting) is developed by using Fortran language and is mainly used for self-defining constitutive relation, self-defining units and the like. Commonly used user subroutines include (V) UMAT, (V) UEL, (V) FRIC, and (V) DLOAD, among others. The Interface is customized and developed on the basis of a Python language, and expands an object model and a data type of Python, so that the function of the Abaqus script Interface is more powerful. Generally, the Abaqus script interface is used primarily for pre-processing (e.g., fast modeling), post-processing (e.g., creating and accessing an output database), custom modules (e.g., automated post-processing modules), and so forth.
Plug-ins (plug-in) is a simpler method of defining an Abaqus/CAE Graphical User Interface (GUI) in which the following two plug-ins can be created: kernel plug-ins and GUI plug-ins. The Abaqus plug-in has the following characteristics: the plug-in file name ends with _ plugin. Registered in Plug-ins menu of Abaqus/CAE for use; the kernel plug-in will execute the corresponding function in the specified module.
The RSC insert is mainly used for residual stress calculation for 2D or 3D machining simulation (structural or thermo-structural coupling process). The RSC insert is used for calculating the residual stress, and the following conditions are met: the plug-in program is located under the abaqus _ plugins directory, and in general, the directory is located under C \_sers \ Administrator \ abaqus _ plugins, and the plug-in program needs to be copied under the directory before use; outputting a calculation file of the original explicit power cutting process in a non-assembly mode; the residual stress calculation uses a software version number consistent with explicit kinetic analysis.
Further, to correctly perform the residual stress calculation, the working catalog contains the following raw files for explicit cutting analysis: the files of jobname.inp, jobname.res, jobname.abq, jobname.stt, jobname.pac, jobname.prt and jobname.odb are used for restarting and state initialization in the residual stress calculation process.
The main files generated by the residual stress calculation are as follows:
CAE is an Abaqus/CAE model file and contains all settings for Residual stress calculation;
INP is an INP file for residual stress calculation;
ODB is an ODB file for residual stress calculation.
The RSC plug-in supports material types consistent with those supported by impart analysis of Abaqus/Standard, and the current latest version of Abaqus2016 supports material types as follows:
linear elasticity
Mises plasticity(including the kinematic hardening models)
extended Drucker-Prager plasticity
crushable foam plasticity
Mohr-Coulomb plasticity
critical state(clay)plasticity
cast iron plasticity
concrete damaged plasticity
Johnson-Cook plasticity
hyperelasticity(including Mullins effect)
hyperfoam
viscoelasticity
traction-separation response with damage for cohesive elements
damage for ductile metals
damage for fiber-reinforced composites
connector behavior
materials defined in user subroutines UMAT and VUMAT
materials defined using the parallel rheological framework fornonlinear viscoelastic-elastoplastic behavior
other material types support the introduction of a stress state.
Specifically, the residual stress calculation using the RSC insert was as follows:
open Abaqus/CAE, load the explicit power cut computation result (ODB file) to be computed to the current view window. The RSC plug-in is opened, a user can select relevant setting, dimension (Modeling space) of a Modeling space is selected in a parameter setting area, 3D is a three-dimensional problem, 2D Planar is a two-dimensional plane problem, and 3D is defaulted to; "Pick a unit" to Pick a unit in a region where residual stress calculation is required in a view area, the unit being used as an initial unit for separating a main body material; restart time setting (Restart time), in order to reduce the amount of calculation, a smaller time is set, and 1E is taken as a default-10(ii) a Setting initial increment step size (initializrement size), setting initial increment step size of the residual stress calculation process, and setting a default value to be 0.1; maximum increment step size setting (Maximum increment size), wherein the Maximum increment step size of the residual stress calculation process is set to be 0.1 as a default value; setting the Maximum increment step number (Maximum increment size), and setting the Maximum increment step number of the residual stress calculation process to be 200 as a default value; multiprocessor arrangement (Use multiple processors), the number of CPU channels for calculating the residual stress is set, because the explicit restart is used in the residual stress calculation process, the number of the channels is consistent with the number of the channels set in the process of the explicit dynamics solution of the preamble, the number of the channels is also used for the implicit residual stress calculation, and the default value is 1.
Further, a constraint mode of the residual stress calculation model is set in a 'Constraints' area. And applying rules default to automatic inertia release constraint, namely selecting to overcome rigid body displacement through inertia release (Use inertia release), wherein when the mode is selected to calculate the residual stress, subsequent manual constraint option setting is unavailable, and after the setting is finished, the residual stress calculation is started. In addition, the constraint mode can also comprise a manual constraint rule, the constraint mode is selected manually, preprocessing is performed firstly, all preprocessing settings except the constraint are completed by a program in the preprocessing process, a view area independently displays a model for residual stress calculation, then setting in a Boundary Condition Manager (Boundary Condition Manager) is performed, and at this time, a user can set the desired constraint mode according to needs. If a set of nodes is defined in the explicit analysis, the set can also be used directly for constraint enforcement here. After constraint application is completed, submitting residual stress calculation; when the residual stress calculation is completed, the program automatically displays the residual stress calculation result in the view area.
It should be noted that, in this embodiment, the residual stress value obtaining method provided in the embodiment of the present invention is implemented by using a cutting simulation as an example and using an RSC plug-in, but the use of the method is not limited to the residual stress calculation in the cutting process, and may also include the residual stress calculation in other material processing or simulation processes (unit failure or non-failure), for example, the stamping forming, penetration, and the like of the plate material.
The method for acquiring the residual stress value, provided by the embodiment of the invention, comprises the steps of reading explicit result file information to be calculated, and displaying a visual object corresponding to the explicit result file information; acquiring a main material unit set based on a visual object corresponding to the explicit result file and a preset lap joint search rule; then, based on the read original file information corresponding to the explicit result file and the main material unit set, acquiring reconstructed explicit result file information; then, based on the reconstructed explicit result file information and a preset setting rule, outputting residual stress calculation file information; and executing and calculating the residual stress calculation file information, and displaying the residual stress calculation result, so that the separation of the main body material is realized, the residual stress calculation result is obtained, the calculation efficiency is greatly improved, and the theoretical guiding significance is provided for practice.
Second embodiment
Referring to fig. 4, an embodiment of the invention provides a residual stress value obtaining apparatus 300, where the apparatus 300 includes a reading unit 310, an overlapping unit 320, a reconstructing unit 330, an output unit 340, and a display unit 350.
The reading unit 310 is configured to read explicit result file information to be calculated, and display a visual object corresponding to the explicit result file information.
And the lapping unit 320 is configured to obtain a main material unit set based on the visual object corresponding to the explicit result file and a preset lapping search rule.
The overlapping unit 330 may include an overlapping subunit 331.
And the overlapping subunit 331 is configured to obtain a unit of the visual object corresponding to the explicit result file information, and from the unit, overlap the unit of which the number of the connection nodes is not less than N on the visual object to obtain a main material unit set.
And the reconstructing unit 340 is configured to obtain reconstructed explicit result file information based on the read original file information corresponding to the explicit result file and the main material unit set.
The reconstruction unit 340 may comprise a reconstruction subunit 341.
And the reconstructing subunit 341 is configured to establish a restart analysis file by using the main material unit set according to the read analysis setting of the original file information corresponding to the explicit result file, and obtain the reconstructed explicit result file information after the restart analysis processing.
And an output unit 350, configured to output residual stress calculation file information based on the reconstructed explicit result file information and a preset setting rule.
The output unit 350 may include an output sub-unit 351.
The preset setting rules include basic solution setting rules, analysis related setting rules and application model constraint rules.
And the output subunit 351 is configured to output the residual stress calculation file information after performing basic solution setting, analysis-related setting rule and model constraint application on the reconstructed display result file information according to the basic solution setting rule, analysis-related setting rule and model constraint application rule, respectively.
The imposed model constraint rules include automatic inertia release constraint imposed rules and manual constraint rules.
And the display unit 360 is used for executing the calculation of the residual stress calculation file information and displaying the residual stress calculation result.
The above units may be implemented by software codes, and in this case, the above units may be stored in the memory 110. The above units may also be implemented by hardware, for example, an integrated circuit chip.
The implementation principle and the generated technical effect of the residual stress value obtaining apparatus 400 provided by the embodiment of the present invention are the same as those of the foregoing method embodiments, and for brief description, no mention may be made in the apparatus embodiment, and reference may be made to the corresponding contents in the foregoing method embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, the functional modules in the embodiments of the present invention may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes. It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention. It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.