The present disclosure relates to a field of a reactor technology, and in particular to design, for a core model, a method of tracking a characteristic line, a method and apparatus of calculating core neutron physics, and a computer-readable storage medium.
In most codes based on methods of characteristics in a related art, a segment-by-segment search method is used to track a characteristic line. Key steps of such a tracking method include: 1. positioning a point; 2. solving a distance from the point to a spatial range boundary in a fixed direction. Both steps require a lot of time for calculation, especially a calculation for positioning the point.
When positioning a point, one method needs to search geometries in a lower level of a core model and make determinations in turn. If the point is found in a geometry, it is needed to further make determinations in turn in the lower geometries of the geometry until the point is positioned in a lowest level. When positioning a next point, the above steps need to be repeated, that is, a large number of repetitive calculations need to be carried out in this method, which has a large amount of calculation and a low efficiency.
In order to improve the method, a neighbor search method is used in the Monte Carlo code. After one point is determined, a determination on the next point does not start from a top-level geometry, but from a geometry where a previous point is located, and it is prior to search neighboring geometries. For repeated neighboring, repetitive calculations are needed and the efficiency is low. In addition, due to an intersection operation in a modeling process of the Monte Carlo method, a spatial range of a lower-level geometry may not be a real spatial range. Therefore, the geometry needs to be pre-processed prior to searching from the lower-level geometry.
In view of the above problems, the present disclosure is proposed to provide a method of tracking a characteristic line, a method and apparatus of calculating core neutron physics, a core model, an apparatus of simulating a reactor, and a computer-readable storage medium, which overcomes the above problems or at least partially solves the above problems.
According to a first aspect of the present disclosure, there is provided a method of tracking a characteristic line in a core model, wherein the core model is configured to divide a spatial range of a core into a plurality of levels, and each of the plurality of levels includes a plurality of sub-models, wherein at least one of the plurality of sub-models in one level of the plurality of levels belongs to one of the plurality of sub-models in an upper level, each of the plurality of sub-models in a lowest level includes only one material of the core; a union operation on all the sub-modules in each upper level and an intersection operation with a spatial range of the upper level are performed for all the sub-modules in each upper level so as to form the sub-model in the upper level, and an uppermost level is the core model; the method includes: determining, sequentially from the uppermost level to the lowest level, whether an intersection of the sub-model meeting a first preset condition in each of the plurality of levels and the characteristic line segment meets a second preset condition or not; and obtaining an intersection, that meets the second preset condition, of the sub-model meeting the first preset condition in the lowest level and the characteristic line, so as to obtain a segment correspondence between the characteristic line and the material of the core according to the intersection obtained.
According to a second aspect of the present disclosure, there is provided a method of calculating core neutron physics, including: a modeling step, including: constructing a core model, wherein the core model is constructed to divide a spatial range of a core into a plurality of levels, and each of the plurality of levels includes a plurality of sub-models, wherein at least one of the sub-models in one level of the plurality of levels belongs to one of the sub-models in an upper level, each of the plurality of sub-models in a lowest level includes only one material of the core; a union operation on all the sub-modules in each upper level and an intersection operation with a spatial range of the upper level are performed for all the sub-modules in each upper level so as to form the sub-model in the upper level, and an uppermost level is the core model; a tracking step, including: defining a characteristic line and tracking the characteristic line according to the method of tracking the characteristic line described above; and an iterative calculation step, including: performing an iterative calculation based on a result of tracking the characteristic line so as to obtain a solution of a neutron transport equation of the core.
According to a third aspect of the present disclosure, there is provided a reactor model constructed by using the method of calculating the core neutron physics described in the second aspect of the present disclosure.
According to a fourth aspect of the present disclosure, there is provided an apparatus of calculating core neutron physics, including: a modeling module configured to construct a core model, wherein the core model is constructed to divide a spatial range of a core into a plurality of levels, and each of the plurality of levels includes a plurality of sub-models, wherein at least one of the sub-models in one level of the plurality of levels belongs to one of the sub-models in an upper level, each of the plurality of sub-models in a lowest level includes only one material of the core; a union operation on all the sub-modules in each upper level and an intersection operation with a spatial range of the upper level are performed for all the sub-modules in each upper level so as to form the sub-model in the upper level, and an uppermost level is the core model; a characteristic line tracking module configured to define a characteristic line and tracking the characteristic line according to the method of tracking the characteristic line described above; and an iterative calculation module configured to perform an iterative calculation based on a result of tracking the characteristic line so as to obtain a solution of a neutron transport equation of the core.
According to a fifth aspect of the present disclosure, there is provided an apparatus of simulating a reactor, including: the apparatus of calculating the core neutron physics described in the fourth aspect of the present disclosure.
According to a sixth aspect of the present disclosure, there is provided a computer-readable storage medium having instructions stored thereon, wherein the instructions are executable to implement the method of calculating the core neutron physics described above.
The embodiments of the present disclosure will be described in detail below with reference to the drawings. In the following detailed description, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of the embodiments of the present disclosure. However, one or more embodiments may also be implemented without these specific details.
The embodiment firstly provides a method of tracking a characteristic line in a core model. The core model is used to divide a spatial range of a core into a plurality of levels each including a plurality of sub-models. That is, the core model includes a plurality of levels, and each level includes a plurality of sub-models.
In the plurality of levels, at least one sub-model of one level belongs to a sub-model of an upper level. That is, in the one level, a union operation is performed on one sub-model or a plurality of sub-models, and an intersection operation with a spatial range of an upper level is performed, and then a sub-model of the upper level may be obtained. Each sub-model in a lowest level includes only one material of the core. It may be understood that through the above calculations, as the level continuously rises, more and more core materials may be included in each sub-model. Therefore, after the calculation is performed on all the sub-models in an uppermost level, a result may correspond to the spatial range of the core and include all the materials of the core.
A method of constructing the core model is explained in detail below.
In reactor physics, modeling is mainly to describe material information of each position in a three-dimensional space. The spatial range may be expressed as U⊂R3, the material may be written as a set materials={1, 2, . . . , M} in the form of labels. Then a sub-model in the core model may be expressed as a mapping relationship between a spatial point set U and a material set materials, denoted by G=(U, f:U→materials).
Since the sub-model U in the lowest level includes only one material, that is, there is only one object m in materials, the sub-model may be written as (U, f:U→{m}), that is,
f(r)=m,r∈U
The sub-model may also be called a basic element, abbreviated as (U,m), which is a simplest model unit.
In order to use the sub-models to construct a more complex core model, a logical operation needs to be performed on the sub-models.
If a plurality of sub-models G1=(U1, f1), G2=(U2, f2) . . . Gn=(Un, fn) meet
∀i≠j,Ui∩Ui=Ø
that is, if the spatial ranges represented thereby are mutually exclusive, then a combination of f1, f2, . . . , fn may form a new mapping f
Therefore,
forms a new geometry, that is, a sub-model of the upper level, denoted as:
The operation is called a union operation, and
is called a union or G1, G2, . . . , Gn. The union operation is equivalent to assembling a plurality of sub-models of the lower level together.
The union operation possesses commutative law and associative law.
Assuming that there is a geometry G=(U,f) and a spatial range U′, a mapping f′: U′∩U→materials may be constructed:
f′(r)=f(r),r∈U′∩U
then (U∩U′,f′) may form a geometry, denoted as:
U′∩G=(U′∩U,f′)
The operation is called an intersection operation, and U′∩G is called an intersection of the spatial range U′ and the geometry G. An essence of the intersection operation is to use a spatial range to divide graphics, but actually the spatial range of U′∩U takes effect. In particular, if the spatial range U′⊂U, then:
U′∩G=(U′,f′),U′⊂U
The specific steps for constructing the core model using the above method will be given below.
Same as the Monte Carlo code, two data structures including Cell and Universe are used for specific implementation. The basic element Cell represents a basic element geometry and requires a user to give a spatial range U and a material index m. That is, the user is required to set a lowest level sub-model that includes only one material:
Cellbase=(U,m)
The Universe requires the user to give a list of a plurality of geometries) {Celldown,j} and represents the union of these models, that is, represents the union operation performed on the plurality of sub-models:
Another format of the Cell requires the user to give a Universe and a spatial range U to indicate the intersection of U and the Universe:
Cellup=U∩Universe
In other words, there is necessarily a spatial range U in the Cell, and the other may be filled with a material index to form the basic element Cell, or may be filled with a Universe to form a combination Cell, that is, the sub-model of the upper level may represent a larger spatial range and include more materials.
In the method of tracking the characteristic line, it needs to find a length of each line segment generated by cutting the characteristic line by the entire geometry and a basic element Cell index corresponding to the each line segment. The method of tracking the characteristic line according to the present disclosure may include: determining, sequentially from the uppermost level to the lowest level, whether an intersection of the sub-model meeting a first preset condition in each level with the characteristic line meets a second preset condition or not; and obtaining an intersection, that meets the second preset condition, of the sub-model meeting the first preset condition in the lowest level and the characteristic line, so as to obtain a segment correspondence between the characteristic line and the material of the core according to the intersection obtained.
The method of tracking the characteristic line according to the present disclosure is implemented to use a linear nature of the characteristic line, so that a traversal of the core model just need to be performed only once to get all segments. And, in the entire tracking of the characteristic line, a step of returning to an upper level for traversal in a segment-by-segment tracking algorithm in the related art is avoided, so that the number of calculations is saved and the efficiency is improved. Furthermore, the segment-by-segment tracking algorithm in the related art needs to store segment information when performing real-time tracking, but the method of tracking the characteristic line according to the present disclosure only needs to double the calculation time even when performing real-time tracking, so that the storage of segment information is avoided, and a lot of storage space is saved.
Further, the first preset condition for the uppermost level is that the sub-model is located in the uppermost level; and the first preset condition for a non-uppermost level is that the sub-model in the non-uppermost level corresponds to the sub-model whose intersection with the characteristic line segment meets the second preset condition in the upper level of the non-uppermost level. Those skilled in the art may understand that when the uppermost level is determined, all the sub-models of the uppermost level are determined; while when the non-uppermost level is determined, a part of the sub-models in the non-uppermost level is determined. The part of the sub-models corresponds to a part of the spatial range of the upper level of the non-uppermost level, and the part of spatial range refers to the sub-models of the upper level, whose intersection with the characteristic line meets the second preset condition, of the non-uppermost level.
That is, when tracking the characteristic line, as shown in
After a plurality of such determinations, all the lowest-level sub-models whose intersection with the characteristic line meets the second preset condition may be obtained. Since each of the lowest-level sub-models only includes one material, a segment correspondence between the characteristic line and the core materials may be obtained.
Further, the second preset condition is that the intersection is not an empty set, that is, in the determination process of each level, the sub-model that does not have an intersection with the characteristic line may be excluded. For example, when calculating the assembly level in
Specifically, when tracking the core model in
Further, in order to ensure an orderliness of the tracking, after an end of the determination performed on the sub-models in one level, the obtained intersections that are not empty sets and the sub-models in these intersections may be sorted according to a predetermined rule. Specifically, the predetermined rule may be set according to the positions of the elements in these intersections on the characteristic line.
It may be understood that those skilled in the art may use a variety of methods to calculate the intersection of the characteristic line and the sub-model.
In some embodiments, an optional method of calculating the intersection of the characteristic line and the sub-model is used, which may include constructing an auxiliary function used to: calculate a plurality of boundary points of the corresponding sub-model on the characteristic line; calculate a left limit of each of the boundary points on the auxiliary function; and determine, when the left limit meeting a third preset condition, that a line segment between the boundary point and an adjacent boundary point corresponding to the left limit is within the sub-model. A derivation process of the auxiliary function will be explained below.
Firstly, the method of describing the spatial range of the sub-model is explained.
The spatial range of the sub-model is generally complex, and a constructive solid geometry may be used to describe a complex spatial range through the following simple set operations between basic units. The so-called basic unit refers to some basic geometries that may be expressed by mathematical formulas, such as cylinders, spheres, cubes, etc. These geometries may be used to describe related structures in the core, and the basic unit may be expressed as {r|±f(r)>0}. In the core model, an equation of the basic unit used in the sub-model is generally less than or equal to quadratic, and its unified form may be written as:
f(r)=a11x2+a22y2+a33z2+a12xy+a23yz+a13xz+a1x+a2y+a3z+a0
In the constructive solid geometry, a more complex spatial range may be obtained by regular intersection, union and complement operations on a plurality of basic units. In the present disclosure, the intersection and union operations are consistent with a set theory, that is,
A∩B={r|r∈A and r∈B}
A∪B={r|r∈A or r∈B}
For the complement operation, a complement of a spatial range closure is used, denoted as ¬A=ðR
A={r|f(r)>0}⇒¬A={r|−f(r)>0}
This operation is more similar to a negative operation in form. It may be proved that the complement operation meets
¬(A∪B)=(¬A)∩(¬B)
¬(A∩B)=(¬A)∪(¬B)
It should be pointed out that the definition method here is only used for description and cannot directly reflect a nature of the point. In practical use, regularization processing is also required. For example, (x>1)∪(x<1) is regularized to R3, that is, a point of x=1 should also be considered as an interior point.
Since the intersection and union operations are binary operations, and the complement operation is a unary operation, as shown in
It may be understood that each leaf node in
Next, the method of constructing the auxiliary function will be explained.
Assuming the characteristic line equation Track={r=Ωt+r0|t∈(−∞,∞)}, and segmenti is used to identify a line segment on the characteristic line, then segmenti={r=Ωt+r0,j|t∈(0,li)}, which may be abbreviated as segment (r0,j,Ω,li), where l represents a length of the segment, r0 represents a starting point of the segment, and Ω represents a direction vector of the segment.
Further, the Rvachev function is introduced to further describe the spatial range, and the spatial range described based on the constructive solid geometry is described as an inequality form of implicit numbers. Specifically, for a single basic unit, it may be expressed as
R(r)=±f(r)
The intersection, union and complement operations are defined as:
Therefore, for the spatial range U, R(r)>0 represents being within U, R(r)<0 represents being within ¬U, and R(r)=0 represents being within ðR
Through the Rvachev function, the boundary point needs to meet a condition of
R
U(r0+Ωt)=0,0<t<l
In order to ensure that t is exactly a boundary point, it needs to check
where sgn is a sign function, that is, left and right ends of t should have different signs. Then, it is necessary that one end is inside the body and the other end is outside the body, so that a boundary point is formed. Thus, an auxiliary function is defined:
Then in the auxiliary function, rij(t)=1 is within the spatial range, rU (t)=0 is at the boundary, and rU(t)=−1 is outside the spatial range. That is, if rU(t)=0, the obtained solution set is an ordered collection of the intersection points of the characteristic line and the spatial range. Because the left and right ends of all the points that make rU(t)=0 have different signs, the auxiliary function image in Equation (1) should be zigzag, as shown in
The auxiliary function may be uniquely determined by an ordered series of zero points and a first segment value. The zero points are set as the ordered series {t1, . . . , tn}, and t0=0, tn+1=1. Because two ends of the intersection point have different signs, if δ=r(t1−) (that is, a left limit value of the boundary point on the auxiliary function is used to indicate whether the line segment (t0, t1) is within the body or not), then the auxiliary function may be written as:
The intersection segment ∩U of the line segment on the characteristic line with the spatial range may be written as:
In this equation, the intersection corresponds to an ordered set of line segments located in the spatial range, that is, the auxiliary function value meets a third preset condition δ=1. In some embodiments, it may take only δ=1, that is, a solution set obtained by calculating the intersection of the characteristic line with the corresponding spatial range according to the auxiliary function is written as a set of a plurality of line segments whose characteristic line fall within the corresponding spatial range.
The above equation may also be written in a unified form:
where └□┘ represents taking an integer downward.
The auxiliary function has a significance of performing a dimensionality reduction from three-dimension to one-dimension. All surfaces of the spatial range are converted to points, and a volume is converted to line segments, and these line segments may be represented by only one quantity due to an alternating relationship. The use of the auxiliary function may greatly simplify a difficulty of the intersection, union and complement operation.
Those skilled in the art may use a variety of methods to solve δ and {t1, . . . , tn} in the auxiliary function. In some embodiments, an optional calculation method is used.
In a case that the spatial range includes only one basic unit, it may be directly equivalent to solving:
According to the above definition of the basic unit, this is a quadratic equation in one variable, which may be easily solved and expressed as δ and {t1, . . . , tn}.
For the spatial range obtained through the intersection and union operation of the basic units, because
segment∩(U1∩U2)=(segment∩U1)∩(segment∩U2)
segment∩(U1∪U2)=(segment∩U1)∪(segment∩U2)
using the Equation (1), it may be obtained:
r
U
∩U
(t)=min(rU
r
U
∪U
(t)=max(rU
r
¬U(t)=−rU(t)
Therefore, for the complement operation, if rU (t) may be expressed as [{ti},δ], then the following may be obtained:
r
¬U(t)=[{ti},−δ]
For the intersection and union operations, it is necessary to make a determination. That is, the above auxiliary function is firstly used to solve the intersection of the characteristic line with a plurality of basic units so as to obtain a plurality of sub-solution sets, and then corresponding intersection or union operation is performed on these sub-solution sets according to the intersection and union operation relationship between these basic units until the final solution set is obtained.
For example, referring to the calculation tree in
When performing the intersection and union operations on two sub-solution sets, rU
where a third line in a first term in Equation (2) is to ensure rU
Similarly, a result of rU
Thus, when performing intersection operation and union operation, a function value of an element of one sub-solution set in another sub-solution set should be determined, and a direct determination may only be performed by using a search algorithm, which has a low efficiency. In some embodiments, a method of determining all points at once is provided, including: setting a first pointer and a second pointer to respectively point to elements in the two sub-solution sets located on leftmost side of a number axis; a solution set acquisition step, including: when determining that a left limit on the corresponding auxiliary function of the element pointed to by the first pointer or the second pointer located on a far right side of the number axis meets a fourth preset condition, incorporating the element pointed to by the first pointer or the second pointer located on a far left side of the number axis into a solution set of the intersection or union operation, and moving the first pointer or the second pointer on the far left side to the right so as to point to a next element; when determining that the elements pointed to by the first pointer and the second pointer are equal, determining respective left limits of the elements on the auxiliary function corresponding to the two sub-solution sets, and when determining that the left limit meets a fifth preset condition, incorporating the element into the solution set of the intersection or union operation, and moving the first pointer or the second pointer to the right of the number axis so as to point to a next element; and repeating the solution set acquisition step until the solution set after the intersection or union operation of the two sub-solution sets is obtained.
Specifically, the determination method takes advantage of the orderliness of {t1,i} and {t2,j}. As shown in
Since the first pointer P1 and the second pointer P2 initially point to the elements on the leftmost side of the number axis in the two sub-solution sets, and in each movement, only the pointer on the far left side is moved or both pointers are moved simultaneously, it may be ensured that if P1 is on the left side of P2, the element pointed to by P2 is a first number greater than the element pointed to by P1 in {ti,2}, that is, the element pointed to by P1 is located in a segment before P2, that is, rU
When the pointer P1 and the pointer P2 coincide, that is, when the elements pointed to by P1 and P2 are equal, it is only required to determine δp
The above solution set acquisition step may end after P1 and P2 are moved to infinity, that is, after the determination of all elements is performed. With this method, a time complexity of a single intersection or union operation is reduced to O(n). In the entire intersection, union and complement algorithm, the calculation time of the complement operation may be ignored. A total number of the intersection and union operations is related to the calculation tree of the basic units. Assuming that the intersection and union operations are performed for totally b levels, a maximum number of calculations is the number of calculations O((b−1)·2b-1) in a case of a full binary tree without points being deleted.
In the entire calculation process, only the intersection with the basic unit needs to be solved by equation, and the subsequent process is only determination, so that the efficiency is high. The main calculation time is concentrated on the calculation of the intersection with the basic unit. The calculation cost is very low, which may be considered to be equivalent to the calculation time of a single E index, that is, a single calculation time of one segment in a long characteristic line method in the related art.
When the method of calculating the intersection of the characteristic line and the spatial range of the uppermost model described above is used to track the characteristic line, an origin in the characteristic line is firstly moved to a very far value r−∞ in a negative direction, and a very large length l∞ is taken, then the characteristic line may be approximately written as segment (r−∞, Ω, l∞). According to the process of constructing the core model described above, the following may be obtained:
Track∩Utop=segmenttop
It may be seen that segmenttop⊂Utop. It is next considered to solve for an intersection segment∩Cell between any level Cell with a spatial range of U and a line segment segment⊂U within the spatial range.
The level Cell is the lowest-level Cell (U,m), that is, each sub-model in the level Cell includes only one material, then the following may be obtained:
segment∩Cell=(segment,m) (4)
That is, the correspondence relationship between the characteristic line and the material is obtained.
If the level Cell is a non-lowest-level Cell (U, Universe), where
then the following may be obtained:
Further, in combination with the content described above, by performing an intersection operation on the characteristic line segment and the spatial range Udown,i of a sub-model Celldown,i meeting the first preset condition in the level Cell, the following may be obtained:
where Ji represents the number of the line segments formed after the characteristic line segment is cut by the spatial range Udown,i of the sub-model.
Therefore, the following may be obtained:
After a substitution, the following may be obtained:
where Cell is a level, and I is the number of the sub-models meeting the first preset condition in the level Cell.
Due to segmenti,j⊂Udown,i, segmenti,j∩Celldown,i may be further written according to Equation (4) or Equation (5). In this way, the upper-level sub-models may be gradually decomposed downwards until they all become the lowest-level sub-models. According to Equation (5), the following may be finally obtained:
segment∩Cell=∪(segmenti,mi)
In this way, the entire tracking process is performed. In the entire tracking process, the main calculation time is concentrated on the calculation of the line segment of the characteristic line and the sub-model. The number of the calculations is equal to a number of all sub-model lists passed by the characteristic line. If the entire calculation model may be represented by a binary tree, then the number of calculations may be estimated to be twice the number of the segments. If it is considered that each lowest-level sub-model includes four basic units on average, the calculation time is equivalent to multiplying the number of the segments by about 8 times of E-index calculation time.
The embodiments further provide a method of calculating core neutron physics, including a modeling step, a tracking step, and an iterative calculation step.
The modeling step may include constructing a core model. The core model is constructed to divide a spatial range of a core into a plurality of levels, and each of the plurality of levels includes a plurality of sub-models. At least one of the sub-models in one level of the plurality of levels forms one of the sub-models in an upper level, and each of the sub-models in a lowest level includes only one material of the core. All the sub-models of the uppermost level may form the spatial range of the core after a union operation.
The tracking step may include defining a characteristic line and tracking the characteristic line according to the method of tracking the characteristic line described above.
The iterative calculation step may include performing an iterative calculation based on a result of tracking the characteristic line so as to obtain a solution of a neutron transport equation of the core.
The embodiments further provide an apparatus of calculating core neutron physics, including a modeling module, a characteristic line tracking module, and an iterative calculation module.
The modeling module is used to construct a core model. The core model is constructed to divide a spatial range of a core into a plurality of levels, and each of the plurality of levels includes a plurality of sub-models. At least one of the sub-models in one level of the plurality of levels forms one of the sub-models in an upper level, and each of the sub-models in a lowest level includes only one material of the core. All the sub-models of the uppermost level may form the spatial range of the core after a union operation.
The characteristic line tracking module is used to define a characteristic line and tracking the characteristic line according to the method of tracking the characteristic line described above.
The iterative calculation module is used to perform an iterative calculation based on a result of tracking the characteristic line so as to obtain a solution of a neutron transport equation of the core.
The method and apparatus of calculating core neutron physics of the present disclosure may be implemented by using the method of tracking the characteristic line described above, so that calculation steps may be saved, and the calculation efficiency may be improved.
The embodiments further provide a reactor model that may be used to calculate and describe a state of various physical quantities in the reactor. The method of calculating core neutron physics is mainly used to calculate and describe a neutron flux density, reactivity, reaction rate distribution and other physical quantities related to neutronics. The construction of the reactor model generally includes modeling and numerical processing. The modeling is to input the reactor model to a computer in a given way, and the numerical processing is to convert the input model into a form required for calculation. In the reactor model of the embodiment of the present disclosure, the numerical processing step subsequent to the modeling described above is performed by using the method of calculating core neutron physics described above, so that the amount of the calculation in the modeling process may be saved and the calculation efficiency may be improved.
The embodiments further provided an apparatus of simulating a reactor. The apparatus of simulating the reactor may be used to simulate an actual operating condition of the reactor, in which a simulation and a calculation of the neutron physics of the core are important. Therefore, the embodiments provide an apparatus of simulating the reactor including the apparatus of calculating the core neutron physics described above. By using the apparatus of simulating the reactor for reactor simulation, the calculation steps may be saved, and the calculation efficiency may be improved.
The embodiments further provide a computer-readable storage medium having instructions stored thereon. The instructions are used to implement the method of calculating the core neutron physics described above.
The following will further illustrate the technical solutions involved in the embodiments described above in conjunction with several specific examples.
Firstly, a calculation method of solving the intersection of the characteristic line and the basic unit, and a calculation method of the intersection, union and complement operations are given.
Suppose a linear equation is (x0+Ωxt, y0+Ωyt, z0+Ωzt), according to the equation of the above basic unit:
f(r)=a11x2+a22y2+a33z2+a12xy+a23yz+a13xz+a1x+a2y+a3z+a0
The following may be obtained:
The following determination should be made when solving the above equations:
if A≠0
if A=0, then B≠0, a single solution t may be obtained
where if {ti}=Ø, then δ represents whether (0,l) is within the body or not, and if {ti} is not empty, then S represents whether (0, t1) is within the body or not.
For the complement operation, {ti|i=0,1, . . . ,n} and δ are input, and {ti|i=0,1, . . . ,n} unchanged and −δ are output.
For the intersection and union algorithm, the following calculation method is given.
The specific example also provides a tracking method.
For the sub-model Cell in each level:
For the union set Universe of the sub-model:
The specific example further provides a test calculation performed on the benchmark problems Takeda and C5G7 according to the tracking method of the present disclosure.
The Takeda problem is a two-group three-dimensional simplified core model, and a geometric arrangement is shown in
In
The calculation results are shown in Table 1
Table 1 shows a correctness of the tracking results, but here is more concerned about tracking efficiency:
The time ratio refers to the time of tracking the characteristic line divided by the time of the internal iteration. In our test, if the Takeda problem is not accelerated, 370 internal iterations are needed. In this case, the time of tracking the characteristic line only takes 1.66% of the time. If the method of generating the characteristic line in real time is adopted, it only needs to pay 61.58% more calculation time to avoid all segment information storage. In order to better illustrate the tracking effect, the number of equivalent energy groups (that is, the time ratio multiplied by the number of energy groups) is proposed. Because geometric tracking has nothing to do with the number of energy groups, the number of equivalent energy groups may not change even if there are more energy groups. Therefore, if the number of energy groups for the Takeda problem is increased to eight, the number of the equivalent energy groups is still 1.23, and the time ratio may be further reduced to 15.38%.
Similarly, the above test was conducted on the C5G7 problem. In order to improve the difficulty of tracking, one-eighth processing is used here, as shown in
The calculation results are shown in Table 3, which indicates that the tracking is correct.
The tracking efficiency is shown in Table 4.
Compared with the Takeda problem, the tracking efficiency decreases, mainly because the structure is much more complicated and a quadratic surface exists. However, in general, it meets the estimation that the original tracking time is equivalent to the calculation time of a single internal iteration, which may achieve a fast tracking of the characteristic line with a high tracking efficiency, and support a real-time calculation of the characteristic line at an acceptable time cost.
In the description of the specification, the description with reference to the terms “an embodiment”, “some embodiment”, “exemplary embodiment”, “example”, “specific example” or “some examples” means that the specific feature, structure, material or characteristic described in conjunction with the embodiment or example is included in at least one embodiment or example of the present disclosure. In the specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
The terms “first” and “second” are used for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Thus, the features defined as “first” and “second” may explicitly or implicitly include one or more of the features. In the description of the present disclosure, “a plurality of” means at least two, such as two, three, etc., unless otherwise specifically defined.
Although the embodiments of the present disclosure have been shown and described above, it may be understood that the above embodiments are exemplary and should not be construed as limiting the present disclosure. Those ordinary skilled in the art may make changes, modifications, replacements and transformations on the above-described embodiments within the scope of the present disclosure.
Number | Date | Country | Kind |
---|---|---|---|
202010519286.X | Jun 2020 | CN | national |
This application corresponds to PCT Application PCT/CN2021/098806, which claims priority to the Chinese Patent Application No. 202010519286.X, filed on Jun. 9, 2020, which is incorporated herein by reference in its entirety.
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/CN2021/098806 | 6/8/2021 | WO |