Calculation method and device of magnetic induction intensity, storage medium and computer equipment
By constructing a gain coefficient fitting function to correct the initial magnetic induction intensity calculation function, the maximum magnetic induction intensity calculation error of non-ideal-shaped magnets is solved, and a more accurate magnetic induction intensity calculation is achieved, which is applicable to a variety of magnet structures.
Patent Information
- Application Number
- CN202510931213.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-04
- Publication Date
- 2025-09-23
AI Technical Summary
The existing technology cannot accurately calculate the maximum magnetic induction intensity of a magnet with a non-ideal shape, especially due to the calculation error caused by the uneven distribution of the magnetic field.
By constructing a gain coefficient fitting function, the initial magnetic induction intensity calculation function is corrected based on the geometric parameters and gain coefficient of the sample magnet, and the maximum magnetic induction intensity at the edge of the magnet surface is calculated using the corrected function.
The calculation accuracy of the maximum magnetic induction intensity of a magnet is improved, and the calculation is applicable to magnets of different structural types, thus expanding the scope of application of the calculation.
Smart Images

Figure CN120687715A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of magnet design, and in particular to a method, device, storage medium and computer equipment for calculating magnetic induction intensity. Background Art
[0002] NdFeB magnets are widely used in electronic devices, sensors, motors, and other fields. Magnetic induction intensity is one of the important parameters for measuring magnet performance. Therefore, in order to measure magnet performance, it is first necessary to determine the magnetic induction intensity of NdFeB magnets.
[0003] Currently, the maximum magnetic flux density of NdFeB magnets is usually calculated using the formula for calculating the magnetic flux density at the magnet's center. This formula uses the magnetic flux density at the magnet's center as the maximum magnetic flux density. However, this formula is based on an ideal magnet with a uniform magnetic field distribution. In reality, there are all kinds of non-ideal magnets with uneven magnetic field distributions. Furthermore, the maximum magnetic flux density of non-ideal magnets with uneven magnetic field distributions does not occur at the magnet's center. Therefore, this formula cannot accurately calculate the maximum magnetic flux density of non-ideal magnets. Summary of the Invention
[0004] The present invention provides a method, device, storage medium and computer equipment for calculating magnetic induction intensity, which are mainly aimed at improving the calculation accuracy of the maximum magnetic induction intensity of a magnet.
[0005] According to a first aspect of the present invention, there is provided a method for calculating magnetic induction intensity, comprising:
[0006] In response to a maximum magnetic induction intensity calculation instruction of a target magnet in a display device, obtaining geometric parameters of the target magnet;
[0007] Based on the geometric parameters, the maximum magnetic induction intensity of the target magnet is calculated using a magnetic induction intensity calculation function, wherein the magnetic induction intensity calculation function is obtained by correcting an initial magnetic induction intensity calculation function through a gain coefficient fitting function, and the initial magnetic induction intensity calculation function is used to calculate the magnetic induction intensity at the center position of the magnet, and the gain coefficient fitting function is constructed based on multiple sets of sample geometric parameters of the sample magnet and the sample gain coefficient corresponding to each set of sample geometric parameters.
[0008] Optionally, a method for obtaining a sample gain coefficient corresponding to each set of sample geometric parameters of the sample magnet includes:
[0009] Constructing a three-dimensional simulation model of the sample magnet, and based on the three-dimensional simulation model, performing simulation calculations on the magnetic induction intensity of the sample magnet under multiple sets of sample geometric parameters to obtain simulated magnetic induction intensity corresponding to each set of sample geometric parameters;
[0010] Based on each set of sample geometric parameters, the initial magnetic induction intensity calculation function is used to calculate the magnetic induction intensity of the sample magnets to obtain the magnetic induction intensity to be corrected corresponding to each set of sample geometric parameters;
[0011] Based on the simulated magnetic induction intensity and the to-be-corrected magnetic induction intensity corresponding to each set of sample geometric parameters, a sample gain coefficient corresponding to each set of sample geometric parameters is determined.
[0012] Optionally, the method for constructing the gain coefficient fitting function includes:
[0013] Based on each set of sample geometric parameters and the sample gain coefficients corresponding to each set of sample geometric parameters, function fitting is performed with the geometric parameters as independent variables and the gain coefficients as fitting targets to obtain a gain coefficient fitting function.
[0014] Optionally, the sample magnet includes a sample magnet without a magnet sleeve and a sample magnet with a magnet sleeve;
[0015] The construction method of the gain coefficient fitting function includes:
[0016] Based on the multiple groups of sample geometric parameters corresponding to the sample magnets without a magnet cover and the sample gain coefficients corresponding to each group of sample geometric parameters, a gain coefficient fitting function corresponding to the magnet without a magnet cover type is constructed;
[0017] Based on the multiple groups of sample geometric parameters corresponding to the sample magnets with magnet sleeves and the sample gain coefficients corresponding to each group of sample geometric parameters, a gain coefficient fitting function corresponding to the magnet sleeve type magnets is constructed.
[0018] Optionally, the method for obtaining the magnetic induction intensity calculation function includes:
[0019] The initial magnetic induction intensity calculation function is corrected by using the gain coefficient fitting function corresponding to the magnet without a magnet sleeve type, so as to obtain the magnetic induction intensity calculation function corresponding to the magnet without a magnet sleeve type;
[0020] The initial magnetic induction intensity calculation function is corrected by using the gain coefficient fitting function corresponding to the magnet with a magnet sleeve type, so as to obtain the magnetic induction intensity calculation function corresponding to the magnet with a magnet sleeve type.
[0021] Optionally, based on the geometric parameters, calculating the maximum magnetic induction intensity of the target magnet using the magnetic induction intensity calculation function includes:
[0022] Determining the magnet type of the target magnet;
[0023] Based on the geometric parameters, the magnetic induction intensity of the target magnet is calculated using a magnetic induction intensity calculation function corresponding to the magnet type.
[0024] Optionally, before calculating the maximum magnetic induction intensity of the target magnet using the magnetic induction intensity calculation function based on the geometric parameters, the method further includes:
[0025] Acquire a sample test data set, wherein the sample test data set includes multiple groups of test geometric parameters of sample magnets with annotated information, and the annotated information is the actual maximum magnetic induction intensity corresponding to each group of test geometric parameters;
[0026] Based on the sample test data set, a magnetic induction intensity calculation effect of the magnetic induction intensity calculation function is determined. If the calculation effect meets the requirements, the magnetic induction intensity calculation function is used to calculate the maximum magnetic induction intensity of the target magnet. Otherwise, the gain coefficient fitting function is re-determined, and the initial magnetic induction intensity calculation function is corrected using the re-determined gain coefficient fitting function.
[0027] According to a second aspect of the present invention, there is provided a device for calculating magnetic induction intensity, comprising:
[0028] an acquiring unit, configured to acquire geometric parameters of the target magnet in response to a maximum magnetic induction intensity calculation instruction of the target magnet;
[0029] a calculation unit, configured to calculate the maximum magnetic induction intensity of the target magnet based on the geometric parameters using a magnetic induction intensity calculation function, wherein the magnetic induction intensity calculation function is obtained by correcting an initial magnetic induction intensity calculation function using a gain coefficient fitting function, the initial magnetic induction intensity calculation function being used to calculate the magnetic induction intensity at the center position of the magnet, and the gain coefficient fitting function being constructed based on multiple sets of sample geometric parameters of the sample magnet and a sample gain coefficient corresponding to each set of sample geometric parameters.
[0030] According to a third aspect of the present invention, there is provided a computer-readable storage medium having a computer program stored thereon, which implements the above method for calculating magnetic induction intensity when executed by a processor.
[0031] According to a fourth aspect of the present invention, a computer device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above method for calculating magnetic induction intensity when executing the program.
[0032] According to a method, device, storage medium and computer equipment for calculating magnetic induction intensity provided by the present invention, compared with the current method of calculating the maximum magnetic induction intensity of a neodymium iron boron magnet by using the calculation formula of the magnetic induction intensity at the center of the magnet, the present invention constructs a gain coefficient fitting function with the geometric parameters of the magnet through the geometric parameters of the sample magnet and its corresponding gain coefficient, and uses the gain coefficient fitting function with the geometric parameters of the magnet to correct the initial magnetic induction intensity calculation function at the center of the magnet, and finally uses the corrected magnetic induction intensity calculation function to calculate the maximum magnetic induction intensity of the target magnet. Since the maximum magnetic induction intensity is generally distributed at the edge of the magnet surface, the magnetic induction intensity calculation function at the center of the magnet is corrected by the gain coefficient fitting function, so that the corrected magnetic induction intensity calculation function can accurately calculate the maximum magnetic induction intensity at the edge of the magnet surface. At the same time, since the introduction of the gain coefficient fitting function takes into account the geometric structure parameters of the magnet, the magnetic induction intensity calculation function obtained by correcting the initial magnetic induction intensity calculation function using the gain coefficient fitting function with the geometric structure parameters can accurately calculate the maximum magnetic induction intensity for magnets of different structural types, and has a wider range of applications. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0034] Figure 1 A flow chart of a method for calculating magnetic induction intensity provided by an embodiment of the present invention is shown;
[0035] Figure 2 A schematic diagram showing the distribution of magnetic flux lines on the surface of a cylindrical magnet provided by an embodiment of the present invention is shown;
[0036] Figure 3 A schematic diagram showing the application of a cylindrical magnet in an LED lamp provided by an embodiment of the present invention is shown;
[0037] Figure 4 A flow chart of another method for calculating magnetic induction intensity provided by an embodiment of the present invention is shown;
[0038] Figure 5A A schematic structural diagram of a sample magnet without a magnet sleeve provided by an embodiment of the present invention is shown;
[0039] Figure 5B A schematic structural diagram of a sample magnet with a magnet sleeve provided by an embodiment of the present invention is shown;
[0040] Figure 6AA schematic diagram of the magnetic induction intensity distribution of a magnet without a magnet sleeve provided by an embodiment of the present invention is shown;
[0041] Figure 6B A schematic diagram of the magnetic induction intensity distribution of a magnet with a magnet sleeve provided by an embodiment of the present invention is shown;
[0042] Figure 7 A schematic structural diagram of a magnetic induction intensity calculation device provided by an embodiment of the present invention is shown;
[0043] Figure 8 A schematic structural diagram of another magnetic induction intensity calculation device provided by an embodiment of the present invention is shown;
[0044] Figure 9 A schematic diagram of the physical structure of a computer device provided by an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0045] The present invention will be described in detail below with reference to the accompanying drawings and in combination with embodiments. It should be noted that, unless there is a conflict, the embodiments and features in the embodiments of the present application can be combined with each other.
[0046] At present, the method of calculating the maximum magnetic induction intensity of NdFeB magnets by using the calculation formula of the magnetic induction intensity at the center of the magnet does not take into account various non-ideal shape magnets with uneven magnetic field distribution. Therefore, this formula cannot accurately calculate the maximum magnetic induction intensity of non-ideal shape magnets.
[0047] In order to solve the above problems, the embodiment of the present invention provides a method for calculating magnetic induction intensity, such as Figure 1 As shown, the method includes:
[0048] 101. In response to a maximum magnetic induction intensity calculation instruction of a target magnet in a display device, obtain geometric parameters of the target magnet.
[0049] The target magnet can be a cylindrical magnet, such as a cylindrical NdFeB magnet, Figure 2 The distribution of magnetic flux lines on the surface of the cylindrical magnet is shown; the display device can be an LED lamp, and the cylindrical magnet can be applied to the LED lamp, such as Figure 3 The application of cylindrical magnets in LED lamps is shown; the geometric parameters of cylindrical magnets include but are not limited to the outer diameter D of the magnet, the thickness L of the magnet, etc. The embodiment of the present invention can measure the geometric parameters of the target magnet by using a measuring tool.
[0050] 102. Based on the geometric parameters, the maximum magnetic induction intensity of the target magnet is calculated using a magnetic induction intensity calculation function, wherein the magnetic induction intensity calculation function is obtained by correcting the initial magnetic induction intensity calculation function through a gain coefficient fitting function. The initial magnetic induction intensity calculation function is used to calculate the magnetic induction intensity at the center position of the magnet, and the gain coefficient fitting function is constructed based on multiple sets of sample geometric parameters of the sample magnet and the sample gain coefficient corresponding to each set of sample geometric parameters.
[0051] In an embodiment of the present invention, an initial magnetic induction intensity calculation function for calculating the magnetic induction intensity at the center of the magnet is obtained, and a gain coefficient fitting function with the magnet geometric parameters is constructed based on multiple sets of sample geometric parameters of the sample magnet and the sample gain coefficient corresponding to each set of sample geometric parameters. The initial magnetic induction intensity calculation function is corrected using the gain coefficient fitting function, and finally the maximum magnetic induction intensity of the target magnet is calculated using the corrected magnetic induction intensity calculation function. Since the maximum magnetic induction intensity is generally distributed at the edge of the magnet surface, the magnetic induction intensity calculation function at the center of the magnet is corrected using the gain coefficient fitting function, so that the corrected magnetic induction intensity calculation function can accurately calculate the maximum magnetic induction intensity at the edge of the magnet surface. At the same time, since the introduction of the gain coefficient fitting function takes into account the geometric structural parameters of the magnet, the magnetic induction intensity calculation function obtained by correcting the initial magnetic induction intensity calculation function using the gain coefficient fitting function with the geometric structural parameters can accurately calculate the maximum magnetic induction intensity for magnets of different structural types, and has a wider range of applications.
[0052] According to a method for calculating magnetic induction intensity provided by the present invention, compared with the current method of calculating the maximum magnetic induction intensity of a neodymium iron boron magnet by using the calculation formula of the magnetic induction intensity at the center of the magnet, the present invention constructs a gain coefficient fitting function with the geometric parameters of the magnet through the geometric parameters of the sample magnet and its corresponding gain coefficient, and uses the gain coefficient fitting function with the geometric parameters of the magnet to correct the initial magnetic induction intensity calculation function at the center of the magnet, and finally uses the corrected magnetic induction intensity calculation function to calculate the maximum magnetic induction intensity of the target magnet. Since the maximum magnetic induction intensity is generally distributed at the edge of the magnet surface, the magnetic induction intensity calculation function at the center of the magnet is corrected by the gain coefficient fitting function, so that the corrected magnetic induction intensity calculation function can accurately calculate the maximum magnetic induction intensity at the edge of the magnet surface. At the same time, since the introduction of the gain coefficient fitting function takes into account the geometric structure parameters of the magnet, the magnetic induction intensity calculation function obtained by correcting the initial magnetic induction intensity calculation function using the gain coefficient fitting function with the geometric structure parameters can accurately calculate the maximum magnetic induction intensity for magnets of different structural types, and has a wider range of applications.
[0053] Furthermore, in order to better illustrate the above process of calculating the maximum magnetic induction intensity of the magnet, as a refinement and extension of the above embodiment, the embodiment of the present invention provides another method for calculating the magnetic induction intensity, such as Figure 4 As shown, the method includes:
[0054] 201. Obtain an initial magnetic induction intensity calculation function.
[0055] Specifically, the initial magnetic induction intensity calculation function B0 is as follows:
[0056]
[0057] Among them, B r is the remanence of the magnet, D is the outer diameter of the magnet, L is the thickness of the magnet, and d is the equivalent spacing coefficient.
[0058] 202. Construct a three-dimensional simulation model of the sample magnet. Based on the three-dimensional simulation model, simulate and calculate the magnetic induction intensity of the sample magnet under multiple sets of sample geometric parameters to obtain the simulated magnetic induction intensity corresponding to each set of sample geometric parameters.
[0059] 203. Based on each set of sample geometric parameters, the initial magnetic induction intensity calculation function is used to calculate the magnetic induction intensity of the sample magnets to obtain the magnetic induction intensity to be corrected corresponding to each set of sample geometric parameters.
[0060] 204. Based on the simulated magnetic induction intensity and the magnetic induction intensity to be corrected corresponding to each set of sample geometric parameters, determine the sample gain coefficient corresponding to each set of sample geometric parameters, and form a sample data set by each set of sample geometric parameters and the sample gain coefficient corresponding to each set of sample geometric parameters.
[0061] The sample magnets include sample magnets with magnet sleeves and sample magnets without magnet sleeves. Figure 5A The structural and geometric parameters of the sample magnet without magnet sleeve are given, such as Figure 5B The structure and geometric parameters of the sample magnet with a magnet sleeve are given. Specifically, a three-dimensional simulation model of the sample magnet is drawn using simulation software, and boundary constraints such as magnetic insulation boundaries and symmetry boundaries are set for the three-dimensional simulation model. The entire three-dimensional simulation model is divided into a finite number of small grid units, and multiple groups of sample geometric parameters such as the material, outer diameter and thickness of the magnet are set. Under each group of sample geometric parameters, the magnet is parametrically simulated to determine the magnetic induction intensity value in each grid unit. Based on the magnetic induction intensity value in each grid unit, the magnetic induction intensity values at different positions of the magnet can be determined. Figure 6A The figure shows a schematic diagram of the magnetic induction intensity distribution of a magnet without a magnet sleeve. Figure 6BThe figure shows a schematic diagram of the magnetic induction intensity distribution of a magnet with a magnet sleeve. Afterwards, a magnetic induction intensity distribution diagram is drawn according to the magnetic induction intensity value in each grid unit. The maximum magnetic induction intensity (i.e., simulated magnetic induction intensity) corresponding to each set of sample geometric parameters can be determined through the magnetic induction intensity distribution diagram. At the same time, each set of sample geometric parameters is substituted into the initial magnetic induction intensity calculation function to obtain the magnetic induction intensity to be corrected corresponding to each set of sample geometric parameters. Finally, according to the difference between the simulated magnetic induction intensity and the magnetic induction intensity to be corrected corresponding to each set of sample geometric parameters, the sample gain coefficient corresponding to each set of sample geometric parameters can be determined. Thus, according to the above method, the sample gain coefficients corresponding to multiple sets of sample geometric parameters of sample magnets without magnet sleeves and sample magnets with magnet sleeves can be determined respectively, and the sample data set of the sample magnets without magnet sleeves and the corresponding sample gain coefficients of each set of sample geometric parameters corresponding to the sample magnets without magnet sleeves are formed, and the sample data set of the sample magnets with magnet sleeves and the corresponding sample gain coefficients of each set of sample geometric parameters corresponding to the sample magnets with magnet sleeves are formed. For example, if the maximum magnetic induction intensity obtained by simulation under a certain set of sample geometric parameters is 0.4, and the magnetic induction intensity to be corrected calculated using the initial magnetic induction intensity calculation function is 0.2, then the sample gain coefficient is 2. The embodiment of the present invention determines the gain coefficient through simulation, avoiding the time and resources wasted in setting up a complex experimental device. Thus, the embodiment of the present invention can save costs and improve the efficiency of obtaining the gain coefficient.
[0062] 205. Based on the sample data set, a gain coefficient fitting function is constructed, and the initial magnetic induction intensity calculation function is corrected using the gain coefficient fitting function to obtain the magnetic induction intensity calculation function.
[0063] For an embodiment of the present invention, a method for constructing a gain coefficient fitting function for different types of magnets, such as sample magnets without magnet sleeves and sample magnets with magnet sleeves, includes: constructing a gain coefficient fitting function corresponding to the magnets without magnet sleeves based on multiple groups of sample geometric parameters corresponding to the sample magnets without magnet sleeves and the sample gain coefficients corresponding to each group of sample geometric parameters; constructing a gain coefficient fitting function corresponding to the magnets with magnet sleeves based on multiple groups of sample geometric parameters corresponding to the sample magnets with magnet sleeves and the sample gain coefficients corresponding to each group of sample geometric parameters.
[0064] Specifically, based on each set of sample geometric parameters corresponding to the sample magnets without a magnet sleeve and the sample gain coefficient corresponding to each set of sample geometric parameters, a function fitting is performed with the geometric parameters as independent variables and the gain coefficient as the fitting target to obtain the gain coefficient fitting function corresponding to the magnet without a magnet sleeve. Among them, the gain coefficient fitting function α1 is as follows:
[0065]
[0066] At the same time, based on each set of sample geometric parameters corresponding to the sample magnets with magnet sleeves and the sample gain coefficients corresponding to each set of sample geometric parameters, function fitting is performed with the geometric parameters as independent variables and the gain coefficients as fitting targets, and the gain coefficient fitting function corresponding to the magnet sleeve type magnets is obtained. Among them, the gain coefficient fitting function α2 corresponding to the magnet sleeve type magnets is shown as follows:
[0067]
[0068] Where D is the outer diameter of the magnet and L is the thickness of the magnet.
[0069] In another embodiment of the present invention, for any one of the sample magnets without a magnet sleeve and the sample magnets with a magnet sleeve, the corresponding gain coefficient fitting function can also be constructed in the following manner: each set of sample geometric parameters of any magnet and the sample gain coefficient corresponding to each set of sample geometric parameters are input into a preset function prediction model for function prediction to obtain the gain coefficient fitting function corresponding to the any one magnet.
[0070] Specifically, in order to improve the function prediction accuracy of the preset function prediction model, it is first necessary to train and construct the preset function prediction model. Based on this, the method includes: constructing a preset initial function prediction model; obtaining a sample data set, wherein the sample data set includes multiple groups of sample magnet geometric parameters with annotation information and their corresponding sample magnet gain coefficients, and the annotation information is an actual gain coefficient fitting function; dividing the sample data set into training data and test data, using the training data to train the preset initial function prediction model, and using the test data to test the trained preset initial function prediction model, and finally using the trained preset initial function prediction model that meets the test conditions as the preset function prediction model.
[0071] Specifically, during the model training process, first build a preset initial function prediction model, and then download a sample data set from the network. Make sure that the data set contains all the necessary files, and finally train and test the model. Specifically, you can first divide the data set: use random or specific strategies (such as stratified sampling) to divide the sample data set into a training set and a test set. Then use the training set to train the model, and use the test set to test the trained model to evaluate its performance on unseen data. Calculate and record indicators such as mCP, precision, and recall on the test set. If the model performance does not meet the requirements, you can return to the training stage for more iterations or adjustments. In this way, a preset function prediction model that meets the requirements is obtained.
[0072] Furthermore, in order to facilitate the subsequent calculation of the maximum magnetic induction intensity of different types of magnets, it is first necessary to use the gain coefficient fitting function corresponding to the different types of magnets to correct the initial magnetic induction intensity calculation function. Based on this, the method includes: using the gain coefficient fitting function corresponding to the magnet without a magnet sleeve type to correct the initial magnetic induction intensity calculation function, and obtaining the magnetic induction intensity calculation function corresponding to the magnet without a magnet sleeve type; using the gain coefficient fitting function corresponding to the magnet with a magnet sleeve type to correct the initial magnetic induction intensity calculation function, and obtaining the magnetic induction intensity calculation function corresponding to the magnet with a magnet sleeve type.
[0073] Specifically, the magnetic induction intensity calculation function B is obtained by correcting the initial magnetic induction intensity calculation function using the gain coefficient fitting function corresponding to the magnet without a magnet sleeve type. wt As shown below:
[0074]
[0075] At the same time, the magnetic induction intensity calculation function B is obtained by correcting the initial magnetic induction intensity calculation function using the gain coefficient fitting function corresponding to the magnet sleeve type magnet. yt As shown below:
[0076]
[0077] The introduction of the gain coefficient fitting function in the embodiment of the present invention comprehensively considers factors such as the magnet shape and the magnet sleeve, and aims to correct the deficiency of the traditional function in calculating the magnetic induction intensity in the middle part of the same type of magnet. When there is no magnet sleeve, the gain coefficient fitting function is mainly established based on the ratio of the outer diameter of the magnet to the thickness, which corrects the changing relationship between the outer diameter and thickness of the magnet that is not considered in the traditional formula. When there is a magnet sleeve, the gain coefficient fitting function is calculated by simulating the sample magnet with the magnet sleeve, so the influence of the magnet sleeve with one end open on the magnetic field distribution is taken into account. In summary, the embodiment of the present invention sets different magnetic induction intensity calculation functions for different types of magnets, and can flexibly select the appropriate calculation function according to specific needs to meet a variety of application scenarios.
[0078] Furthermore, in order to further improve the calculation accuracy of the magnetic induction intensity, it is also necessary to perform a calculation accuracy test on the magnetic induction intensity calculation function. Based on this, the method includes: obtaining a sample test data set, wherein the sample test data set includes multiple groups of test geometric parameters of a sample magnet with labeled information, and the labeled information is the actual maximum magnetic induction intensity corresponding to each group of test geometric parameters; based on the sample test data set, determining the magnetic induction intensity calculation effect of the magnetic induction intensity calculation function; if the calculation effect meets the requirements, using the magnetic induction intensity calculation function to calculate the maximum magnetic induction intensity of the target magnet; otherwise, re-determining the gain coefficient fitting function, and using the re-determined gain coefficient fitting function to correct the initial magnetic induction intensity calculation function.
[0079] The test geometric parameters include parameters such as the outer diameter and thickness of the sample magnet. Specifically, a sample test dataset is downloaded from an official website or a designated data source. Ensure that the sample test dataset contains all necessary files. For each set of test geometric parameters, the test geometric parameters are substituted into the magnetic induction intensity calculation function to calculate the maximum magnetic induction intensity, obtaining a predicted magnetic induction intensity. Based on the difference between the predicted magnetic induction intensity corresponding to each set of test geometric parameters and the actual maximum magnetic induction intensity, the calculation effect of the magnetic induction intensity calculation function for the maximum magnetic sensor intensity is determined. If the calculation effect meets the requirements, that is, the difference is small, the magnetic induction intensity calculation function can be used for subsequent magnetic induction intensity calculations. If the calculation effect does not meet the requirements, that is, the difference is large, it is necessary to re-simulate the magnetic field distribution of the sample magnet to determine the gain coefficient fitting function, and use the gain coefficient fitting function to re-correct the initial magnetic induction intensity calculation function until the corrected magnetic induction intensity calculation function meets the requirements for the calculation effect of the magnetic induction intensity. Therefore, the embodiment of the present invention can improve the calculation accuracy of the maximum magnetic induction intensity by testing the magnetic induction intensity calculation function and appropriately adjusting the magnetic induction intensity calculation function based on the test results.
[0080] 206. In response to the maximum magnetic induction intensity calculation instruction of the target magnet in the display device, obtain geometric parameters of the target magnet, and calculate the maximum magnetic induction intensity of the target magnet using a magnetic induction intensity calculation function based on the geometric parameters.
[0081] In this embodiment of the present invention, in order to improve the calculation accuracy of the maximum magnetic induction intensity, it is necessary to assign different magnetic induction intensity calculation functions to different types of magnets. Based on this, step 206 specifically includes: determining the magnet type to which the target magnet belongs; and calculating the magnetic induction intensity of the target magnet based on the geometric parameters using the magnetic induction intensity calculation function corresponding to the magnet type.
[0082] Specifically, if the target magnet belongs to a magnet type without a magnet sleeve, the magnetic induction intensity calculation function corresponding to the magnet type without a magnet sleeve is used to calculate the magnetic induction intensity; if the target magnet belongs to a magnet type with a magnet sleeve, the magnetic induction intensity calculation function corresponding to the magnet type with a magnet sleeve is used to calculate the magnetic induction intensity.
[0083] According to another method for calculating magnetic induction intensity provided by the present invention, compared with the current method of calculating the maximum magnetic induction intensity of a neodymium iron boron magnet by using the calculation formula of the magnetic induction intensity at the center of the magnet, the present invention constructs a gain coefficient fitting function with the geometric parameters of the magnet through the geometric parameters of the sample magnet and its corresponding gain coefficient, and uses the gain coefficient fitting function with the geometric parameters of the magnet to correct the initial magnetic induction intensity calculation function at the center of the magnet, and finally uses the corrected magnetic induction intensity calculation function to calculate the maximum magnetic induction intensity of the target magnet. Since the maximum magnetic induction intensity is generally distributed at the edge of the magnet surface, the magnetic induction intensity calculation function at the center of the magnet is corrected by the gain coefficient fitting function, so that the corrected magnetic induction intensity calculation function can accurately calculate the maximum magnetic induction intensity at the edge of the magnet surface. At the same time, since the introduction of the gain coefficient fitting function takes into account the geometric structural parameters of the magnet, the magnetic induction intensity calculation function obtained by correcting the initial magnetic induction intensity calculation function using the gain coefficient fitting function with the geometric structural parameters can accurately calculate the maximum magnetic induction intensity for magnets of different structural types, and has a wider range of applications.
[0084] Further, as Figure 1 The embodiment of the present invention provides a device for calculating magnetic induction intensity, such as Figure 7 As shown, the device includes: an acquisition unit 31 and a calculation unit 32.
[0085] The acquisition unit 31 may be configured to acquire geometric parameters of the target magnet in response to a maximum magnetic induction intensity calculation instruction of the target magnet in the display device.
[0086] The calculation unit 32 can be used to calculate the maximum magnetic induction intensity of the target magnet based on the geometric parameters using a magnetic induction intensity calculation function, wherein the magnetic induction intensity calculation function is obtained by correcting an initial magnetic induction intensity calculation function using a gain coefficient fitting function, and the initial magnetic induction intensity calculation function is used to calculate the magnetic induction intensity at the center position of the magnet, and the gain coefficient fitting function is constructed based on multiple sets of sample geometric parameters of the sample magnet and the sample gain coefficient corresponding to each set of sample geometric parameters.
[0087] In a specific application scenario, in order to obtain the sample gain coefficient corresponding to each set of sample geometric parameters of the sample magnet, such as Figure 8As shown, the calculation unit 32 includes a simulation module 321 , a calculation module 322 , and a determination module 323 .
[0088] The simulation module 321 can be used to construct a three-dimensional simulation model of the sample magnet. Based on the three-dimensional simulation model, the magnetic induction intensity of the sample magnet is simulated and calculated under multiple sets of sample geometric parameters to obtain the simulated magnetic induction intensity corresponding to each set of sample geometric parameters.
[0089] The calculation module 322 can be used to calculate the magnetic induction intensity of the sample magnets based on each set of sample geometric parameters using the initial magnetic induction intensity calculation function to obtain the magnetic induction intensity to be corrected corresponding to each set of sample geometric parameters.
[0090] The determination module 323 may be configured to determine a sample gain coefficient corresponding to each set of sample geometric parameters based on the simulated magnetic induction intensity and the magnetic induction intensity to be corrected corresponding to each set of sample geometric parameters.
[0091] In a specific application scenario, in order to construct a gain coefficient fitting function, the calculation unit 32 further includes a function fitting module 324 .
[0092] The function fitting module 324 can be used to perform function fitting based on each set of sample geometric parameters and the sample gain coefficients corresponding to each set of sample geometric parameters, with the geometric parameters as independent variables and the gain coefficients as fitting targets, to obtain a gain coefficient fitting function.
[0093] In a specific application scenario, the sample magnet includes a sample magnet without a magnet sleeve and a sample magnet with a magnet sleeve; in order to construct a gain coefficient fitting function, the calculation unit 32 further includes a construction module 325.
[0094] The construction module 325 can be used to construct a gain coefficient fitting function corresponding to the magnet without a magnet cover type based on multiple groups of sample geometric parameters corresponding to the sample magnet without a magnet cover and the sample gain coefficient corresponding to each group of sample geometric parameters.
[0095] The construction module 325 can also be used to construct a gain coefficient fitting function corresponding to the magnet-sheathed type magnet based on multiple groups of sample geometric parameters corresponding to the sample magnets with magnet sheaths and sample gain coefficients corresponding to each group of sample geometric parameters.
[0096] In a specific application scenario, in order to determine the magnetic induction intensity calculation function, the calculation unit 32 further includes a correction module 326.
[0097] The correction module 326 can be used to correct the initial magnetic induction intensity calculation function using the gain coefficient fitting function corresponding to the magnet without a magnet cover type, so as to obtain the magnetic induction intensity calculation function corresponding to the magnet without a magnet cover type.
[0098] The correction module 326 can also be used to correct the initial magnetic induction intensity calculation function using the gain coefficient fitting function corresponding to the magnet with a magnet sleeve type, so as to obtain the magnetic induction intensity calculation function corresponding to the magnet with a magnet sleeve type.
[0099] In a specific application scenario, in order to calculate the maximum magnetic induction intensity of the target magnet, the determination module 323 can be used to determine the magnet type of the target magnet.
[0100] The calculation module 322 may be configured to calculate the magnetic induction intensity of the target magnet based on the geometric parameters and using a magnetic induction intensity calculation function corresponding to the magnet type.
[0101] In a specific application scenario, in order to test the accuracy of the magnetic induction intensity calculation function, the device further includes a testing unit 33 .
[0102] The testing unit 33 can be used to obtain a sample test data set, wherein the sample test data set includes multiple groups of test geometric parameters of a sample magnet with annotated information, and the annotated information is the actual maximum magnetic induction intensity corresponding to each group of test geometric parameters; based on the sample test data set, the magnetic induction intensity calculation effect of the magnetic induction intensity calculation function is determined; if the calculation effect meets the requirements, the maximum magnetic induction intensity of the target magnet is calculated using the magnetic induction intensity calculation function; otherwise, the gain coefficient fitting function is re-determined, and the initial magnetic induction intensity calculation function is corrected using the re-determined gain coefficient fitting function.
[0103] It should be noted that for other corresponding descriptions of the functional modules involved in the magnetic induction intensity calculation device provided in the embodiment of the present invention, please refer to Figure 1 The corresponding description of the method shown will not be repeated here.
[0104] Based on the above Figure 1The method shown, accordingly, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, which implements the following steps when executed by a processor: in response to a maximum magnetic induction intensity calculation instruction of a target magnet in a display device, obtaining the geometric parameters of the target magnet; based on the geometric parameters, calculating the maximum magnetic induction intensity of the target magnet using a magnetic induction intensity calculation function, wherein the magnetic induction intensity calculation function is obtained by correcting an initial magnetic induction intensity calculation function through a gain coefficient fitting function, the initial magnetic induction intensity calculation function is used to calculate the magnetic induction intensity at the center position of the magnet, and the gain coefficient fitting function is constructed based on multiple groups of sample geometric parameters of the sample magnet and the sample gain coefficient corresponding to each group of sample geometric parameters.
[0105] Based on the above Figure 1 The method shown and Figure 7 The embodiment of the device shown in the figure, the embodiment of the present invention also provides a physical structure diagram of a computer device, such as Figure 9 As shown, the computer device includes: a processor 41, a memory 42, and a computer program stored in the memory 42 and executable on the processor, wherein the memory 42 and the processor 41 are both arranged on a bus 43. When the processor 41 executes the program, the following steps are implemented: in response to a maximum magnetic induction intensity calculation instruction of a target magnet in a display device, the geometric parameters of the target magnet are obtained; based on the geometric parameters, the maximum magnetic induction intensity of the target magnet is calculated using a magnetic induction intensity calculation function, wherein the magnetic induction intensity calculation function is obtained by correcting an initial magnetic induction intensity calculation function using a gain coefficient fitting function, the initial magnetic induction intensity calculation function is used to calculate the magnetic induction intensity at the center position of the magnet, and the gain coefficient fitting function is constructed based on multiple sets of sample geometric parameters of the sample magnet and the sample gain coefficient corresponding to each set of sample geometric parameters.
[0106] Through the technical solution of the present invention, the present invention constructs a gain coefficient fitting function with the geometric parameters of the magnet through the geometric parameters of the sample magnet and its corresponding gain coefficient, and uses the gain coefficient fitting function with the geometric parameters of the magnet to correct the initial magnetic induction intensity calculation function at the center of the magnet, and finally uses the corrected magnetic induction intensity calculation function to calculate the maximum magnetic induction intensity of the target magnet. Since the maximum magnetic induction intensity is generally distributed at the edge of the magnet surface, the magnetic induction intensity calculation function at the center of the magnet is corrected by the gain coefficient fitting function, so that the corrected magnetic induction intensity calculation function can accurately calculate the maximum magnetic induction intensity at the edge of the magnet surface. At the same time, since the introduction of the gain coefficient fitting function takes into account the geometric structure parameters of the magnet, the magnetic induction intensity calculation function obtained by correcting the initial magnetic induction intensity calculation function using the gain coefficient fitting function with the geometric structure parameters can accurately calculate the maximum magnetic induction intensity for magnets of different structural types, and has a wider range of applications.
[0107] Obviously, those skilled in the art will appreciate that the various modules or steps of the present invention described above can be implemented using a general-purpose computing device, centralized on a single computing device, or distributed across a network of multiple computing devices. Alternatively, they can be implemented using program code executable by a computing device, which can then be stored in a storage device and executed by the computing device. In some cases, the steps shown or described can be performed in a different order than that shown, or can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, the present invention is not limited to any particular combination of hardware and software.
[0108] The foregoing description is merely a preferred embodiment of the present invention and is not intended to limit the present invention. Those skilled in the art will readily appreciate that various modifications and variations of the present invention are possible. Any modifications, equivalent substitutions, or improvements made within the spirit and principles of the present invention shall be included within the scope of protection of the present invention.
Claims
1. A method for calculating magnetic induction intensity, characterized in that: include: In response to a maximum magnetic induction intensity calculation instruction of a target magnet in a display device, obtaining geometric parameters of the target magnet; Based on the geometric parameters, the maximum magnetic induction intensity of the target magnet is calculated using a magnetic induction intensity calculation function, wherein the magnetic induction intensity calculation function is obtained by correcting an initial magnetic induction intensity calculation function through a gain coefficient fitting function, and the initial magnetic induction intensity calculation function is used to calculate the magnetic induction intensity at the center position of the magnet, and the gain coefficient fitting function is constructed based on multiple sets of sample geometric parameters of the sample magnet and the sample gain coefficient corresponding to each set of sample geometric parameters.
2. The method according to claim 1, characterized in that The method for obtaining the sample gain coefficient corresponding to each set of sample geometric parameters of the sample magnet includes: Constructing a three-dimensional simulation model of the sample magnet, and based on the three-dimensional simulation model, performing simulation calculations on the magnetic induction intensity of the sample magnet under multiple sets of sample geometric parameters to obtain simulated magnetic induction intensity corresponding to each set of sample geometric parameters; Based on each set of sample geometric parameters, the initial magnetic induction intensity calculation function is used to calculate the magnetic induction intensity of the sample magnets to obtain the magnetic induction intensity to be corrected corresponding to each set of sample geometric parameters; Based on the simulated magnetic induction intensity and the to-be-corrected magnetic induction intensity corresponding to each set of sample geometric parameters, a sample gain coefficient corresponding to each set of sample geometric parameters is determined.
3. The method according to any one of claims 1 to 2, characterized in that The construction method of the gain coefficient fitting function includes: Based on each set of sample geometric parameters and the sample gain coefficients corresponding to each set of sample geometric parameters, function fitting is performed with the geometric parameters as independent variables and the gain coefficients as fitting targets to obtain a gain coefficient fitting function.
4. The method according to claim 1, wherein The sample magnet includes a sample magnet without a magnet sleeve and a sample magnet with a magnet sleeve; The construction method of the gain coefficient fitting function includes: Based on the multiple groups of sample geometric parameters corresponding to the sample magnets without a magnet cover and the sample gain coefficients corresponding to each group of sample geometric parameters, a gain coefficient fitting function corresponding to the magnet without a magnet cover type is constructed; Based on the multiple groups of sample geometric parameters corresponding to the sample magnets with magnet sleeves and the sample gain coefficients corresponding to each group of sample geometric parameters, a gain coefficient fitting function corresponding to the magnet sleeve type magnets is constructed.
5. The method according to any one of claims 1 to 4, characterized in that The method for obtaining the magnetic induction intensity calculation function includes: The initial magnetic induction intensity calculation function is corrected by using the gain coefficient fitting function corresponding to the magnet without a magnet sleeve type, so as to obtain the magnetic induction intensity calculation function corresponding to the magnet without a magnet sleeve type; The initial magnetic induction intensity calculation function is corrected by using the gain coefficient fitting function corresponding to the magnet with a magnet sleeve type, so as to obtain the magnetic induction intensity calculation function corresponding to the magnet with a magnet sleeve type.
6. The method according to claim 1, characterized in that Based on the geometric parameters, the maximum magnetic induction intensity of the target magnet is calculated using the magnetic induction intensity calculation function, including: Determining the magnet type of the target magnet; Based on the geometric parameters, the magnetic induction intensity of the target magnet is calculated using a magnetic induction intensity calculation function corresponding to the magnet type.
7. The method according to claim 1, characterized in that Before calculating the maximum magnetic induction intensity of the target magnet using the magnetic induction intensity calculation function based on the geometric parameters, the method further includes: Acquire a sample test data set, wherein the sample test data set includes multiple groups of test geometric parameters of sample magnets with annotated information, and the annotated information is the actual maximum magnetic induction intensity corresponding to each group of test geometric parameters; Based on the sample test data set, a magnetic induction intensity calculation effect of the magnetic induction intensity calculation function is determined. If the calculation effect meets the requirements, the magnetic induction intensity calculation function is used to calculate the maximum magnetic induction intensity of the target magnet. Otherwise, the gain coefficient fitting function is re-determined, and the initial magnetic induction intensity calculation function is corrected using the re-determined gain coefficient fitting function.
8. A device for calculating magnetic induction intensity, characterized in that: include: an acquiring unit, configured to acquire geometric parameters of the target magnet in response to a maximum magnetic induction intensity calculation instruction of the target magnet in the display device; a calculation unit, configured to calculate the maximum magnetic induction intensity of the target magnet based on the geometric parameters using a magnetic induction intensity calculation function, wherein the magnetic induction intensity calculation function is obtained by correcting an initial magnetic induction intensity calculation function using a gain coefficient fitting function, the initial magnetic induction intensity calculation function being used to calculate the magnetic induction intensity at the center position of the magnet, and the gain coefficient fitting function being constructed based on multiple sets of sample geometric parameters of the sample magnet and a sample gain coefficient corresponding to each set of sample geometric parameters.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.