CN117409905A - Simulation solving method, device and equipment for composite material area and storage medium - Google Patents

Simulation solving method, device and equipment for composite material area and storage medium Download PDF

Info

Publication number
CN117409905A
CN117409905A CN202311510047.8A CN202311510047A CN117409905A CN 117409905 A CN117409905 A CN 117409905A CN 202311510047 A CN202311510047 A CN 202311510047A CN 117409905 A CN117409905 A CN 117409905A
Authority
CN
China
Prior art keywords
region
simulation
geometric
model
script
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311510047.8A
Other languages
Chinese (zh)
Inventor
张立成
郑建国
包刚强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Pera Corp Ltd
Original Assignee
Pera Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Pera Corp Ltd filed Critical Pera Corp Ltd
Priority to CN202311510047.8A priority Critical patent/CN117409905A/en
Publication of CN117409905A publication Critical patent/CN117409905A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16CCOMPUTATIONAL CHEMISTRY; CHEMOINFORMATICS; COMPUTATIONAL MATERIALS SCIENCE
    • G16C60/00Computational materials science, i.e. ICT specially adapted for investigating the physical or chemical properties of materials or phenomena associated with their design, synthesis, processing, characterisation or utilisation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/20Design optimisation, verification or simulation
    • G06F30/23Design optimisation, verification or simulation using finite element methods [FEM] or finite difference methods [FDM]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2113/00Details relating to the application field
    • G06F2113/26Composites

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Computer Hardware Design (AREA)
  • Evolutionary Computation (AREA)
  • Geometry (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application relates to a simulation solving method, device and equipment for a composite material region and a storage medium. The method comprises the following steps: the composite material region comprises a plurality of geometric regions, region information of each geometric region is obtained, a target model script corresponding to the geometric regions is called according to the region information, the target model script comprises at least one simulation component, the simulation component is adopted to carry out simulation solution on each geometric region, and simulation analysis data aiming at the composite material region are obtained. According to the scheme provided by the application, on one hand, the electromagnetic material constitutive model can solve each geometric region in a targeted manner by splitting the composite material region into a plurality of geometric regions, and on the other hand, the electromagnetic material constitutive model can also perform simulation solution on each geometric region by adopting an adaptive simulation component, so that the simulation solution mode is enriched, the simulation solution mode is universal, and comprehensive simulation treatment is realized.

Description

Simulation solving method, device and equipment for composite material area and storage medium
Technical Field
The present disclosure relates to the field of simulation computing technologies, and in particular, to a method, an apparatus, a device, and a storage medium for solving a simulation of a composite material region.
Background
Hysteresis refers to the fact that the change of the magnetization state of the ferromagnetic substance always lags behind the change of an external magnetic field, and after the external magnetic field is withdrawn, the ferromagnetic substance can still keep the original partial magnetism. For electrical equipment containing ferromagnetic materials, hysteresis not only affects magnetic field distribution, but also affects output of related electric quantity waveforms, so that the related technology is used for simulating hysteresis by constructing a hysteresis model, and therefore, influence of the hysteresis on electromagnetic simulation results is reduced to a certain extent.
However, the hysteresis model adopted by the related art has a single implementation mode and is adaptive to the type of ferromagnetic material, so that the hysteresis model has a large limitation, and cannot be used for comprehensively simulating the electrical equipment with various ferromagnetic materials.
Disclosure of Invention
The application provides a simulation solving method, device, equipment and storage medium for a composite material area, which are used for solving or partially solving the problem that the current hysteresis model has larger limitation, so that comprehensive simulation treatment cannot be performed on electrical equipment with various ferromagnetic materials.
The first aspect of the present application provides a simulation solving method for a composite material region, where the composite material region includes a plurality of geometric regions, including:
Acquiring area information of each geometric area;
invoking a target model script corresponding to the geometric region according to the region information, wherein the target model script is associated with at least one simulation component;
and carrying out simulation solution on each geometric area by adopting the simulation component to obtain simulation analysis data aiming at the composite material area.
Optionally, before the obtaining the area information of each geometric area, the method includes:
acquiring the material type and the construction mode of the composite material area;
and splitting the composite material region according to the construction mode and the material type to obtain the plurality of geometric regions.
Optionally, the calling the target model script corresponding to the geometric area according to the area information includes:
acquiring material types of each geometric region and a material support set associated with the material types, wherein the material support set is used for being associated with a model script;
and calling a target model script corresponding to the geometric region according to the material support set.
Optionally, the region information includes a unit sequence number of the geometric region, and the calling, according to the support set, a target model script corresponding to the geometric region includes:
Performing grid division on the geometric area to obtain a plurality of grid cells, wherein each grid cell corresponds to one cell serial number;
and calling the model scripts associated with the material support set one by one according to the unit serial numbers, and taking the model scripts as target model scripts corresponding to the grid units.
Optionally, the calling the model scripts associated with the material support set one by one according to the unit serial numbers, and taking the model scripts as target model scripts corresponding to the grid units, including:
determining a material support set corresponding to the grid cells one by one according to the serial number sequence of the cell serial numbers, and acquiring script mapping relations between the material support set and the model scripts;
invoking a model script associated with the material support set through the script mapping relationship;
and taking the model script associated with the material support set as a target model script corresponding to the grid cells.
Optionally, the model script is constructed as follows:
acquiring a plurality of simulation components under the same physical field and keywords of the simulation components;
generating the preset matching statement by adopting a preset statement format and the keywords;
Combining a plurality of preset matching sentences to generate the model script;
the model script is a statement collection set of the plurality of preset matching statements.
Optionally, the performing simulation solution on each geometric area by using the simulation component to obtain simulation analysis data for the composite material area includes:
invoking at least one simulation component associated with the target model script;
performing simulation calculation on each grid unit in the geometric area by adopting the simulation component, and outputting area simulation data of the geometric area;
and carrying out data integration on the region simulation data of each geometric region to obtain simulation analysis data aiming at the composite material region.
A second aspect of the present application provides a simulation solving apparatus for a composite material region, the composite material region including a number of geometric regions, comprising:
the region information acquisition module is used for acquiring the region information of each geometric region;
the target model script calling module is used for calling a target model script corresponding to the geometric region according to the region information, and the target model script is associated with at least one simulation component;
And the geometric region solving module is used for carrying out simulation solving on each geometric region by adopting the simulation component to obtain simulation analysis data aiming at the composite material region.
Optionally, before the obtaining the area information of each geometric area, the apparatus further includes:
the material region splitting module is used for acquiring the material type and the construction mode of the composite material region;
and splitting the composite material region according to the construction mode and the material type to obtain the plurality of geometric regions.
Optionally, the target model script calling module includes:
a material support set acquisition sub-module for acquiring material types of each geometric region and a material support set associated with the material types, the material support set being for association with a model script;
and the target model script calling sub-module is used for calling the target model script corresponding to the geometric region according to the material support set.
Optionally, the region information includes a unit sequence number of the geometric region, and the target model script calling submodule includes:
the grid division unit is used for carrying out grid division on the geometric area to obtain a plurality of grid units, and each grid unit corresponds to one unit sequence number;
And the target model script determining unit is used for calling the model scripts associated with the material support set one by one according to the unit serial numbers, and taking the model scripts as target model scripts corresponding to the grid units.
Optionally, the object model script determining unit is configured to:
determining a material support set corresponding to the grid cells one by one according to the serial number sequence of the cell serial numbers, and acquiring script mapping relations between the material support set and the model scripts;
invoking a model script associated with the material support set through the script mapping relationship;
and taking the model script associated with the material support set as a target model script corresponding to the grid cells.
Optionally, the model script is constructed as follows:
acquiring a plurality of simulation components under the same physical field and keywords of the simulation components;
generating the preset matching statement by adopting a preset statement format and the keywords;
combining a plurality of preset matching sentences to generate the model script;
the model script is a statement collection set of the plurality of preset matching statements.
Optionally, the geometric region solving module is configured to:
Invoking at least one simulation component associated with the target model script;
performing simulation calculation on each grid unit in the geometric area by adopting the simulation component, and outputting area simulation data of the geometric area;
and carrying out data integration on the region simulation data of each geometric region to obtain simulation analysis data aiming at the composite material region.
A third aspect of the present application provides an electronic device, comprising:
a processor; and
a memory having executable code stored thereon which, when executed by the processor, causes the processor to perform the method as described above.
A fourth aspect of the present application provides a computer readable storage medium having stored thereon executable code which, when executed by a processor of an electronic device, causes the processor to perform a method as described above.
The technical scheme that this application provided can include following beneficial effect:
in the embodiment of the application, the composite material region comprises a plurality of geometric regions, region information of each geometric region is obtained, a target model script corresponding to the geometric regions is called according to the region information, the target model script comprises at least one simulation component, the simulation component is adopted to carry out simulation solution on each geometric region, simulation analysis data aiming at the composite material region are obtained, and therefore on one hand, when the composite material region consisting of a plurality of materials is faced, the composite material region consisting of the plurality of materials is split into the plurality of geometric regions, the whole composite material region is split into the plurality of local regions, the solution on each geometric region can be carried out in a targeted manner, on the other hand, the corresponding target model script is called according to the region information of each geometric region, then the simulation component related to the target model script is called, the simulation solution is carried out on each geometric region respectively through the adaptive simulation component, the simulation solution mode is enriched, and the simulation solution mode is enabled to have universality, and comprehensive simulation treatment is achieved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
The foregoing and other objects, features and advantages of the application will be apparent from the following more particular descriptions of exemplary embodiments of the application as illustrated in the accompanying drawings wherein like reference numbers generally represent like parts throughout the exemplary embodiments of the application.
FIG. 1 is a flow diagram of a simulation solution method for a composite region according to an embodiment of the present application;
FIG. 2 is another flow diagram of a simulation solution method for a composite region shown in an embodiment of the present application;
FIG. 3 is a schematic view of various geometric regions in a composite region as illustrated in an embodiment of the present application;
FIG. 4 is a schematic diagram of several grid cells shown in an embodiment of the present application;
FIG. 5 is a flow chart illustrating steps for performing simulation solution on each grid cell in a geometric region according to an embodiment of the present application;
FIG. 6 is a schematic diagram of a simulation solution for a composite region according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Embodiments of the present application will be described in more detail below with reference to the accompanying drawings. While embodiments of the present application are shown in the drawings, it should be understood that the present application may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
The terminology used in the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the present application. As used in this application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any or all possible combinations of one or more of the associated listed items.
It should be understood that although the terms "first," "second," "third," etc. may be used herein to describe various information, these information should not be limited by these terms. These terms are only used to distinguish one type of information from another. For example, a first message may also be referred to as a second message, and similarly, a second message may also be referred to as a first message, without departing from the scope of the present application. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more such feature. In the description of the present application, the meaning of "a plurality" is two or more, unless explicitly defined otherwise.
The current hysteresis model is single in implementation mode and adaptive to the types of ferromagnetic materials, so that the current hysteresis model is relatively limited, and comprehensive simulation processing of electrical equipment with various ferromagnetic materials cannot be performed.
Aiming at the problems, the embodiment of the application provides a simulation solving method for a composite material area, which can enrich the simulation solving modes, has universality and further realizes comprehensive simulation treatment.
The following describes the technical scheme of the embodiments of the present application in detail with reference to the accompanying drawings.
Fig. 1 is a flow chart of a simulation solving method of a composite material region according to an embodiment of the present application. Referring to fig. 1, the composite region comprises a number of geometric regions, and the method comprises at least the steps of:
step 101, obtaining area information of each geometric area;
in the embodiment of the present application, before performing simulation solution on an object to be simulated, a model to be solved corresponding to the object to be simulated is generally required to be constructed, then the solution model corresponding to the object to be simulated is processed, if the object to be simulated is a composite material region, the model to be solved for the composite material region may be constructed, then the model to be solved is split, a plurality of geometric regions are obtained, and then region information of each geometric region is obtained.
Alternatively, the composite regions may be regions composed of different ferromagnetic materials, including but not limited to soft magnetic, hard magnetic, and the like. The geometric region may be an arbitrarily shaped region formed of a single ferromagnetic material, for example, the geometric region may be a region corresponding to a circular ferromagnetic material, a region corresponding to a square ferromagnetic material. The region information refers to information such as a material type of the geometric region, a boundary point, a boundary line, and a geometric shape formed by the boundary point or the boundary line.
As an example, the region information of each geometric region may be obtained by using an electromagnetic material constitutive model for ferromagnetic materials, which is a model representing constitutive relations of ferromagnetic materials, and in actual electromagnetic simulation, material constitutive may be rapidly added and defined by the electromagnetic material constitutive model, and simulation analysis is performed on a model to be solved.
The construction process of the electromagnetic material constitutive model can comprise the following steps:
first, an initial constitutive model is established: and quickly adding or defining a material structure in electromagnetic simulation, defining various parameters in the material structure by combining an actual solving problem or solving process, then correlating the various parameters with corresponding items in electromagnetic correlation equations, designing grammar matching sentences by utilizing the various parameters and the electromagnetic correlation equations, forming a model script by utilizing a plurality of grammar matching sentences, and finally modeling according to the various parameters, the electromagnetic correlation equations and the model script to obtain an initial constitutive model.
Secondly, fitting and verifying the initial constitutive model to obtain an electromagnetic material constitutive model: and carrying out parameter fitting on the initial constitutive model and experimental data by adopting a fitting algorithm, after the parameter fitting is finished, verifying the model, and if the accuracy of the model meets the actual requirement, indicating that the model construction is finished, and taking the model as the electromagnetic material constitutive model.
The electromagnetic material constitutive model at least comprises isotropy, anisotropy, dielectric constant with loss, magnetic permeability with loss, polarization vector, magnetization vector, electric coercive force, magnetic coercive force, residual electric displacement, residual magnetic flux density, anisotropic conductivity, energy model, type I II superconductivity and other properties, can cover most general electromagnetic problem types, and has certain universality.
Step 102, calling a target model script corresponding to the geometric region according to the region information, wherein the target model script is associated with at least one simulation component;
in the embodiment of the application, the electromagnetic material constitutive model can call a target model script corresponding to the geometric region according to the region information, and call at least one simulation component associated with the target model script.
Alternatively, the target model script may be a collection of statements conforming to a predefined matching statement that is associated with at least one simulation component.
The matching statement is a specific combination mode of matching keywords, and at least comprises contents such as a calling interface of the simulation component, coefficients or variables corresponding to the simulation component and the like besides the keywords of the simulation component, and each simulation component is designed with a corresponding matching statement.
The simulation component can be a finite element basic component under a certain physical field, and can obtain data such as a calling interface, coefficients or variables corresponding to the simulation component and the like by analyzing matching sentences in the target model script, and then call the simulation component through the data.
As an example, in the field of ferromagnetic simulation, there are many component sets, such as a set of calculation components of a vector J-a hysteresis model, a set of calculation components of a static hysteresis model, a set of calculation components of an energy-based hysteresis model, and the like, and the simulation components may be finite element basic components in these component sets, such as a simulation component may be a calculation non-hysteresis magnetization component, a calculation total magnetization variation component, a calculation magnetic field variation component, a calculation magnetic density variation component, and a call interface component in the set of calculation components of a vector J-a hysteresis model, a non-hysteresis characteristic curve component in the set of calculation components of an energy-based hysteresis model, a related vector update component, a related tensor construction component, a call interface component, and the like, and may also be various interpolation components, such as a linear interpolation component, a bilinear interpolation component, and the like.
And step 103, carrying out simulation solution on each geometric area by adopting a simulation component to obtain simulation analysis data aiming at the composite material area.
In the embodiment of the application, after the electromagnetic material constitutive model determines the target model script according to the region information, a simulation component associated with the target model script can be called, and then the simulation component is adopted to purposefully perform simulation solution on each geometric region to obtain simulation analysis data aiming at the composite material region.
Alternatively, the simulation analysis data may be simulation results obtained by performing simulation solution on the geometric region by using a simulation component, such as a magnetic density distribution, a current density distribution, and the like.
In the embodiment of the application, the electromagnetic material constitutive model can split a composite material region into a plurality of geometric regions, obtain region information of each geometric region, call a target model script corresponding to the geometric regions according to the region information, and the target model script comprises at least one simulation component, and perform simulation solution on each geometric region by adopting the simulation component to obtain simulation analysis data aiming at the composite material region.
On the one hand, when the electromagnetic material constitutive model faces a composite material area composed of a plurality of materials, the whole composite material area can be divided into a plurality of local areas by dividing the composite material area composed of the plurality of materials into a plurality of geometric areas, and each geometric area can be solved in a targeted manner.
On the other hand, the corresponding target model script is called according to the region information of each geometric region, the simulation component associated with the target model script is called, and the adaptive simulation component is adopted to perform simulation solution on each geometric region respectively, so that the simulation solution mode of the electromagnetic material constitutive model is enriched, universality is achieved, and comprehensive simulation processing is achieved.
FIG. 2 is a flow chart of a simulation solution method for a composite region according to another embodiment of the present application. Fig. 2 illustrates in more detail the technical solution of the embodiment of the present application with respect to fig. 1, and the method may include the following steps:
step 201, obtaining area information of each geometric area;
in this embodiment of the present application, the electromagnetic material constitutive model may obtain the region information of each geometric region from a mesh file, where the mesh file refers to a file generated when the geometric region is meshed, and if the composite material region is partitioned into a plurality of geometric regions, the mesh file includes at least attribute information of each geometric region, such as a geometric shape, a mesh unit, a mesh number, a mesh type, and a physical quantity corresponding to the geometric region.
In an alternative example, before the region information of each geometric region is acquired, the electromagnetic material constitutive model can acquire the material type and the construction mode of the composite material region, then split the composite material region according to the construction mode to obtain a plurality of geometric regions, and the electromagnetic material constitutive model can pertinently adopt different simulation solving modes for different geometric regions, so that the electromagnetic material constitutive model is prevented from being limited by the material type of a simulation object when the electromagnetic material constitutive model carries out simulation solving on the composite material region, and the universality of the electromagnetic material constitutive model is further improved by improving the adaptation degree of the electromagnetic material constitutive model and the composite material region.
Alternatively, the material type may be a magnet material, and the construction mode may be a region closing mode, and different construction modes correspond to different geometric shapes, such as a circle, a square, an irregular shape, and the like.
Referring to fig. 3, fig. 3 is a schematic view of each geometric area in the composite area shown in the embodiment of the present application, where the composite area is split into an Air geometric area, a ball1 geometric area, a ball2 geometric area, a block1 geometric area, and a block2 geometric area according to a construction manner and a material type.
Wherein there are B1 and B2 regions in the block2 geometry region, the B1 and B2 regions being spatially connected, but the B1 and B2 regions being of different material types, different material support sets are defined for the B1 and B2 regions, e.g. the B1 region in the block2 geometry region corresponds to the material support set (1) and the B2 region corresponds to the material support set (2).
While the ball1 geometry region and the ball2 geometry region are spatially separated, the ball1 geometry region and the ball2 geometry region belong to the same material type, so that the same material support set is defined for the ball1 geometry region and the ball2 geometry region, such as the ball1 geometry region and the ball2 geometry region correspond to the material support set (3).
The material types of the block1 geometric region and other geometric regions are different, so that a material support set different from the other geometric regions can be defined for defining the block1 geometric region, such as the material support set (4) corresponding to the block1 geometric region.
Step 202, acquiring material types of each geometric region and a material support set associated with the material types, wherein the material support set is used for being associated with a model script;
in the embodiment of the application, different material types correspond to different material support sets, so that the corresponding material support sets can be determined according to the material types of the geometric regions, and the different material support sets also correspond to different model scripts.
Optionally, the following relationships exist among the geometric region, the material support set, the target model script, and the simulation component:
the first association relationship is: and defining or associating the corresponding support set according to the material type of the geometric region, associating the material type of the geometric region with the material support set, and generating a support set mapping relation.
The second association relationship is: the material support set is associated with a model script, a script mapping relationship is generated, for example, the material support set (1) is associated with a first model script, and the material support set (2) is associated with a second model script.
The third association relationship is: the model script is associated with each simulation component by a keyword, generating a component mapping relationship, for example, the model script includes a first keyword associated with the first simulation component and a second keyword associated with the second simulation component.
As an example, in addition to determining the material support set according to the material type of the geometric region, the corresponding material support set may be determined according to the geometric shape of the geometric region, for example, a circular region and a square region may be included in a certain geometric region, after determining the geometric shape of the geometric region, the geometric region may be divided into two independent regions according to the geometric shape, each region is taken as an independent object, and the support set associated with the object may be acquired through the geometric shape, so as to determine the model script associated with each object.
Step 203, calling a target model script corresponding to the geometric area according to the material support set, wherein the target model script is associated with at least one simulation component;
in the embodiment of the application, a script mapping relation is constructed in advance based on the association relation between the material support set and the target model script, so as to be used for mapping a certain model script through the material support set.
Alternatively, a material support set refers to a support set of real-valued functions defined on the set, the support set often being bound to the function as a region of action of the function, through which a model script associated therewith can be invoked as a target model script.
In an alternative example, the region information includes a unit sequence number of the geometric region, and invoking the object model script corresponding to the geometric region according to the support set includes the following sub-steps:
s31, carrying out grid division on the geometric area to obtain a plurality of grid cells, wherein each grid cell corresponds to a cell serial number;
referring to fig. 4, fig. 4 is a schematic diagram of a plurality of grid cells shown in the embodiment of the present application, after grid division is performed on each geometric area, a plurality of grid cells may be obtained, and a related technician may number each grid according to actual needs, for example, number each grid cell as 1, 11, 23, 34, 56, 73, etc., and the number manner is not limited in this application.
Wherein, grid cell 1 belongs to Air geometric region, grid cell 11 belongs to ball1 geometric region, grid cell 23 belongs to ball2 geometric region, grid cell 34 belongs to block1 geometric region, grid cell 56 belongs to B1 region, grid cell 73 belongs to B2 region, and when numbering the cyclic cells, corresponding model script can be matched according to the dependency relationship between each grid cell and geometric region.
S32, calling the model scripts associated with the material support set one by one according to the unit serial numbers, and taking the model scripts as target model scripts corresponding to the grid units.
As an example, the material supporting sets corresponding to the grid cells may be determined one by one according to the serial number sequence of the cell numbers, a script mapping relation between the material supporting sets and the model scripts may be obtained, the model scripts associated with the material supporting sets may be called through the script mapping relation, and the model scripts associated with the material supporting sets may be used as the target model scripts corresponding to the grid cells.
For example, the material support sets of the grid cells, the grid cell 11, the grid cell 23, the grid cell 34, the grid cell 56 and the grid cell 73 are determined one by one according to the number sequence of the cell numbers 1, 11, 23, 34, 56 and 73, and the target model script is further determined through the script mapping relation.
In another alternative example, the model script is constructed as follows:
s41, acquiring a plurality of simulation components and keywords of the simulation components under the same physical field;
optionally, a physical field refers to a distribution and a change rule of a certain physical quantity in space, such as a structural field, an electromagnetic field, a flow field, and the like. The simulation components under different physical fields have certain difference, and the adaptive simulation components can be selected according to the physical fields, so that the effectiveness of simulation solution is improved.
The keywords of the simulation components may be names for distinguishing the respective simulation components, or may be contents characterizing the properties or functions of the simulation components.
S42, generating a preset matching sentence by adopting a preset sentence format and keywords;
optionally, the preset sentence format may be a weak format set by a related technician in advance and used for generating a matching sentence, through the preset sentence format, the simulation component may be defined as a weak component, and the preset matching sentence refers to a predefined grammar matching sentence, where the preset matching sentence includes contents such as the preset sentence format, keywords, coefficients, variables, and the like, and the preset matching sentence of the calculation script of the vector J-a hysteresis model is: FETerm janlterm1=galerkin (term= (h_jiles [ a, b, { d A } ] { d A }, { d A }), area=domainjanl, jacobian=vol, intel=int), where (h_jiles [ a, b, { d A } ] { d A }, { d A }) is a statement defined in a weak form format, and the invoked simulation component may be a component for computing a corresponding weak form, including a basis function space component, a jacobi integrator component, a formula definition component, and so on.
S43, combining a plurality of preset matching sentences to generate a model script, wherein the model script is a sentence collection set of the plurality of preset matching sentences.
Optionally, combining preset matching sentences corresponding to the simulation components to generate a model script.
As an example, the individual function components are first defined: for example, to set hysteresis free magnetization M an Is calculated by the formula of (2)Defined as a component of the hysteresis free magnetization calculation function. Will have no hysteresis magnetization M an The calculation formula of the variation is defined as a component of the derivative of the effective magnetic field by the hysteresis-free magnetization. The magnetic field versus flux density derivative function component under the J-A model is defined as Func:: dhdb_jiles (), and the flux density versus magnetic field derivative function is defined as Func:: dbdh_jiles (). The magnetic field interface function component is defined as Func: h_jiles (), func: b_jiles (), and so on.
Based on the definition content of the function components, corresponding grammar matching keywords can be obtained: such as "Jiles Man" keyword, "Jiles dMandHe" keyword, "dhdb Jiles" keyword, "dbdh Jiles" keyword, "h Jiles" keyword, and "b Jiles" keyword.
Finally, predefining a preset matching statement in the following format in a calculation script of the vector J-A hysteresis model, wherein the preset matching statement comprises the keywords: FETerm janlterm1=galerkin (term= (h_jiles [ a, b, { d A } ] { d A }, { d A }), area=domainjanl, jacobian=vol, intel=int). Where DomainJANL is the name of the defined support set of materials.
After the parser is adopted to perform lexical parsing and grammar parsing on the preset matching statement, each keyword is obtained, and each simulation component corresponding to each keyword can be called to perform simulation solving in the execution process.
And 204, performing simulation solution on each geometric region by adopting a simulation component to obtain simulation analysis data aiming at the composite material region.
In the embodiment of the application, since the target model script is associated with at least one simulation component, after the target model script corresponding to each geometric region is determined, the simulation component can be adopted to carry out simulation solution on each geometric region to obtain simulation analysis data aiming at the composite material region, so that the situation that the electromagnetic material constitutive model is limited to a single simulation solution mode when carrying out simulation solution on the composite material region is avoided, and the universality of the electromagnetic material constitutive model is further improved by enriching the simulation solution mode of the electromagnetic material constitutive model on the composite material region.
In an alternative example, the electromagnetic material constitutive model can adopt an adaptive simulation component to carry out simulation solution on grid cells of each geometric area, output area simulation data of each geometric area, realize localization of a simulation solution process, and then carry out data integration on the area simulation data of each geometric area to obtain complete analysis data of a composite material area, realize fusion of part of simulation data into integral simulation data, and accurately represent physical quantity distribution conditions of the composite material area at continuous moments.
Referring to fig. 5, fig. 5 is a flowchart illustrating a step of performing simulation solution on each grid cell in the geometric area, where, taking the step of performing jacobian matrix calculation on the geometric area as an example, the step of performing jacobian matrix calculation at least includes:
s51, designing a ferromagnetic material model basic component and matching sentences corresponding to the components in advance, and then forming a model script by a plurality of matching sentences according to actual requirements.
S52, after the grid file is acquired, extracting the area information of each geometric area from the grid file, and simultaneously performing lexical analysis and grammar analysis on the engineering description file to obtain the physical field type, solving flow and the like of the geometric area.
S53, in the process of circularly calculating the jacobian matrix on the grid cells of the geometric area according to the solving process, judging a material support set to which the cell serial number of each grid cell belongs, and then determining a target model script (matching statement set) associated with the material support set, wherein the target model script at least comprises: and then analyzing the matching statement to obtain each keyword, and calling a ferromagnetic material model basic component corresponding to each keyword.
S54, performing jacobian matrix calculation on each grid cell by adopting a ferromagnetic material model basic component: and (3) finding the position corresponding relation between the unknown quantity and the whole matrix and the whole right-end item on each grid unit, cycling the grid units again, calculating the corresponding equation coefficient and the right-end item of the unknown quantity on each grid unit, adding the coefficient on each grid unit to the matrix according to the corresponding position relation, adding the right-end item on each grid unit to the whole matrix according to the corresponding position relation, and processing the coupling constraint relation to obtain the result of the grid unit.
S55, until the serial numbers of all units are cycled, the calculation of all grid units in the geometric area is completed, analysis data of all grid units in the geometric area are integrated, simulation analysis data of the whole composite material area is output, therefore, all finite element basic components related to a ferromagnetic material model are abstracted, driving calculation is carried out in a lexical analysis and grammar analysis mode, after the basic ferromagnetic algorithm components are solidified through program compiling, algorithm adjustment can be flexibly carried out through a grammar matching mode, and further expansion of various ferromagnetic algorithms can be realized.
It should be noted that the embodiments of the present invention include, but are not limited to, the foregoing examples, and it is understood that those skilled in the art may set the embodiments according to the actual situation under the guidance of the concept of the embodiments of the present invention, and the present invention is not limited thereto.
In the embodiment of the application, the electromagnetic material constitutive model can split a composite material region into a plurality of geometric regions, obtain region information of each geometric region, call a target model script corresponding to the geometric regions according to the region information, and the target model script comprises at least one simulation component, and perform simulation solution on each geometric region by adopting the simulation component to obtain simulation analysis data aiming at the composite material region.
On the one hand, when the electromagnetic material constitutive model faces a composite material area composed of a plurality of materials, the whole composite material area can be divided into a plurality of local areas by dividing the composite material area composed of the plurality of materials into a plurality of geometric areas, and each geometric area can be solved in a targeted manner.
On the other hand, the corresponding target model script is called according to the region information of each geometric region, the simulation component associated with the target model script is called, and the adaptive simulation component is adopted to perform simulation solution on each geometric region respectively, so that the simulation solution mode is enriched, the universality of the simulation solution mode is further realized, and comprehensive simulation processing is realized.
Corresponding to the embodiment of the application function implementation method, the application further provides a simulation solving device of the composite material area, electronic equipment and corresponding embodiments.
FIG. 6 is a schematic diagram of a simulation solution for a composite region according to an embodiment of the present application. Referring to fig. 6, the composite region comprises several geometric regions, and the device comprises at least the following modules:
a region information obtaining module 601, configured to obtain region information of each geometric region;
a target model script calling module 602, configured to call a target model script corresponding to the geometric region according to the region information, where the target model script is associated with at least one simulation component;
a geometric region solving module 603 for performing simulation solving on each geometric region by using a simulation component to obtain simulation analysis data for the composite material region
In an alternative example, before obtaining the region information of each geometric region, the apparatus further includes:
the material region splitting module is used for acquiring the material type and the construction mode of the composite material region;
splitting the composite material region according to the construction mode and the material type to obtain a plurality of geometric regions.
In an alternative example, the object model script invocation module 602 includes:
a material support set acquisition sub-module for acquiring material types of each geometric region and a material support set associated with the material types, the material support set being for association with a model script;
and the target model script calling sub-module is used for calling the target model script corresponding to the geometric area according to the material support set.
In an alternative example, the region information includes a unit number of the geometric region, and the object model script invoking submodule includes:
the grid division unit is used for carrying out grid division on the geometric area to obtain a plurality of grid units, and each grid unit corresponds to a unit sequence number;
and the target model script determining unit is used for calling the model scripts associated with the material support set one by one according to the unit serial numbers, and taking the model scripts as target model scripts corresponding to the grid units.
In an alternative example, the object model script determining unit is configured to:
determining material support sets corresponding to the grid cells one by one according to the serial number sequence of the cell serial numbers, and acquiring script mapping relations between the material support sets and the model scripts;
calling a model script associated with the material support set through a script mapping relation;
The model script associated with the material support set is taken as a target model script corresponding to the grid cells.
In an alternative example, the model script is constructed as follows:
acquiring keywords of a plurality of simulation components and simulation components under the same physical field;
generating a preset matching sentence by adopting a preset sentence format and keywords;
combining a plurality of preset matching sentences to generate a model script;
the model script is a statement collection set of a plurality of preset matching statements.
In an alternative example, the geometric region solving module 603 is configured to:
invoking at least one simulation component associated with the target model script;
performing simulation calculation on each grid unit in the geometric area by adopting a simulation component, and outputting area simulation data of the geometric area;
and carrying out data integration on the region simulation data of each geometric region to obtain simulation analysis data aiming at the composite material region.
The specific manner in which the respective modules perform the operations in the apparatus of the above embodiments has been described in detail in the embodiments related to the method, and will not be described in detail herein.
Fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Referring to fig. 7, an electronic device 700 includes a memory 710 and a processor 720.
The processor 720 may be a central processing unit (Central Processing Unit, CPU), but may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
Memory 710 may include various types of storage units such as system memory, read Only Memory (ROM), and persistent storage. Where the ROM may store static data or instructions that are required by the processor 720 or other modules of the computer. The persistent storage may be a readable and writable storage. The persistent storage may be a non-volatile memory device that does not lose stored instructions and data even after the computer is powered down. In some embodiments, the persistent storage device employs a mass storage device (e.g., magnetic or optical disk, flash memory) as the persistent storage device. In other embodiments, the persistent storage may be a removable storage device (e.g., diskette, optical drive). The system memory may be a read-write memory device or a volatile read-write memory device, such as dynamic random access memory. The system memory may store instructions and data that are required by some or all of the processors at runtime. Furthermore, memory 710 may include any combination of computer-readable storage media including various types of semiconductor memory chips (e.g., DRAM, SRAM, SDRAM, flash memory, programmable read-only memory), magnetic and/or optical disks may also be employed. In some implementations, memory 710 may include readable and/or writable removable storage devices such as Compact Discs (CDs), digital versatile discs (e.g., DVD-ROMs, dual layer DVD-ROMs), blu-ray discs read only, super-density discs, flash memory cards (e.g., SD cards, min SD cards, micro-SD cards, etc.), magnetic floppy disks, and the like. The computer readable storage medium does not contain a carrier wave or an instantaneous electronic signal transmitted by wireless or wired transmission.
The memory 710 has stored thereon executable code that, when processed by the processor 720, can cause the processor 720 to perform some or all of the methods described above.
Furthermore, the method according to the present application may also be implemented as a computer program or computer program product comprising computer program code instructions for performing part or all of the steps of the above-described method of the present application.
Alternatively, the present application may also be embodied as a computer-readable storage medium (or non-transitory machine-readable storage medium or machine-readable storage medium) having stored thereon executable code (or a computer program or computer instruction code) which, when executed by a processor of an electronic device (or a server, etc.), causes the processor to perform part or all of the steps of the above-described methods according to the present application.
The embodiments of the present application have been described above, the foregoing description is exemplary, not exhaustive, and not limited to the embodiments disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the various embodiments described. The terminology used herein was chosen in order to best explain the principles of the embodiments, the practical application, or the improvement of technology in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein.

Claims (10)

1. A method of simulation solving of a composite material region, wherein the composite material region comprises a plurality of geometric regions, the method comprising:
acquiring area information of each geometric area;
invoking a target model script corresponding to the geometric region according to the region information, wherein the target model script is associated with at least one simulation component;
and carrying out simulation solution on each geometric area by adopting the simulation component to obtain simulation analysis data aiming at the composite material area.
2. The method according to claim 1, wherein before acquiring the region information of each of the geometric regions, comprising:
acquiring the material type and the construction mode of the composite material area;
and splitting the composite material region according to the construction mode and the material type to obtain the plurality of geometric regions.
3. The method of claim 2, wherein invoking the object model script corresponding to the geometric region according to the region information comprises:
acquiring material types of each geometric region and a material support set associated with the material types, wherein the material support set is used for being associated with a model script;
And calling a target model script corresponding to the geometric region according to the material support set.
4. A method according to claim 3, wherein the region information includes a unit sequence number of the geometric region, and the invoking the object model script corresponding to the geometric region according to the support set includes:
performing grid division on the geometric area to obtain a plurality of grid cells, wherein each grid cell corresponds to one cell serial number;
and calling the model scripts associated with the material support set one by one according to the unit serial numbers, and taking the model scripts as target model scripts corresponding to the grid units.
5. The method of claim 4, wherein calling the model scripts associated with the material support set one by one according to the cell sequence number, the model scripts as target model scripts corresponding to the grid cells, comprises:
determining a material support set corresponding to the grid cells one by one according to the serial number sequence of the cell serial numbers, and acquiring script mapping relations between the material support set and the model scripts;
invoking a model script associated with the material support set through the script mapping relationship;
And taking the model script associated with the material support set as a target model script corresponding to the grid cells.
6. The method according to claim 4 or 5, wherein the model script is constructed as follows:
acquiring a plurality of simulation components under the same physical field and keywords of the simulation components;
generating the preset matching statement by adopting a preset statement format and the keywords;
combining a plurality of preset matching sentences to generate the model script;
the model script is a statement collection set of the plurality of preset matching statements.
7. The method of claim 6, wherein said employing said simulation component to perform a simulation solution to each of said geometric regions to obtain simulated analytical data for said composite region comprises:
invoking at least one simulation component associated with the target model script;
performing simulation calculation on each grid unit in the geometric area by adopting the simulation component, and outputting area simulation data of the geometric area;
and carrying out data integration on the region simulation data of each geometric region to obtain simulation analysis data aiming at the composite material region.
8. A simulation solving apparatus for a composite material region, wherein the composite material region comprises a plurality of geometric regions, the apparatus comprising:
the region information acquisition module is used for acquiring the region information of each geometric region;
the target model script calling module is used for calling a target model script corresponding to the geometric region according to the region information, and the target model script is associated with at least one simulation component;
and the geometric region solving module is used for carrying out simulation solving on each geometric region by adopting the simulation component to obtain simulation analysis data aiming at the composite material region.
9. An electronic device, comprising:
a processor; and
a memory having executable code stored thereon, which when executed by the processor, causes the processor to perform the method of any of claims 1-7.
10. A computer readable storage medium having stored thereon executable code which when executed by a processor of an electronic device causes the processor to perform the method of any of claims 1-7.
CN202311510047.8A 2023-11-13 2023-11-13 Simulation solving method, device and equipment for composite material area and storage medium Pending CN117409905A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311510047.8A CN117409905A (en) 2023-11-13 2023-11-13 Simulation solving method, device and equipment for composite material area and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311510047.8A CN117409905A (en) 2023-11-13 2023-11-13 Simulation solving method, device and equipment for composite material area and storage medium

Publications (1)

Publication Number Publication Date
CN117409905A true CN117409905A (en) 2024-01-16

Family

ID=89492470

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311510047.8A Pending CN117409905A (en) 2023-11-13 2023-11-13 Simulation solving method, device and equipment for composite material area and storage medium

Country Status (1)

Country Link
CN (1) CN117409905A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117747033A (en) * 2024-02-08 2024-03-22 北京理工大学 Digital modeling method and modeling device for composite material grid structure

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117747033A (en) * 2024-02-08 2024-03-22 北京理工大学 Digital modeling method and modeling device for composite material grid structure
CN117747033B (en) * 2024-02-08 2024-04-19 北京理工大学 Digital modeling method and modeling device for composite material grid structure

Similar Documents

Publication Publication Date Title
DeMicheli et al. Hardware/software Co-design
CN117409905A (en) Simulation solving method, device and equipment for composite material area and storage medium
Wang et al. Theory and algorithm for generalized memory partitioning in high-level synthesis
US11151335B2 (en) Machine translation using attention model and hypernetwork
Alotto et al. A multiquadrics-based algorithm for the acceleration of simulated annealing optimization procedures
US7865780B2 (en) Method for test case generation
CN104484459A (en) Method and device for combining entities in knowledge map
KR102396914B1 (en) Method of circuit yield analysis and system for circuit yeild analysis
WO2016026328A1 (en) Information processing method and device and computer storage medium
CN105808726A (en) Method and apparatus for measuring similarity of documents
US9679092B1 (en) Constraint handling for parameterizable hardware description language
CN116628600A (en) Unbalanced data sampling method and device based on random forest
Malcolm et al. An algorithm to delineate and integrate topological basins in a three‐dimensional quantum mechanical density function
CN111125087A (en) Data storage method and device
CN114240654A (en) Performance capability perspective method, system, equipment and readable storage medium based on transaction link
Pershin et al. The Fouriest: High-Performance Micromagnetic Simulation of Spintronic Materials and Devices
CN117932561B (en) Method and system for analyzing torque data of coupler
Ivanov et al. Calculation of Integral Coefficients for Correlation Magnetodynamics and Verification of the Theory
Verdult et al. Identification of multivariable LPV state space systems by local gradient search
BUCHAU Precise and robust magnetic field computations for high-end smart sensor applications
Szewczyk et al. Models of Magnetic Hysteresis Loops Useful for Technical Simulations Using Finite Elements Method (FEM) and Method of the Moments (MoM)
Zhou et al. Generalisation of spatial data for web presentation
Li et al. Finite element method of nonlinear magnetic field computation embedded with different vector Jiles-Atherton hysteresis models
Chang et al. Coupling electromagnetics with micromagnetics
CN117786117A (en) Artificial intelligence text detection method, system, training method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination