A method to convert phase space files into input files that can be used by other programs

By generating accurate geometric models and defining nuclear reaction cross-sections, and combining deterministic and probabilistic methods to solve the Boltzmann neutron transport equation, the problem of phase space file format incompatibility is solved, and compatibility and conversion between phase space files are achieved. Improved accuracy and repeatability of dose calculations.

CN119025478BActive Publication Date: 2025-01-21HUAPENG NEUTRON TECH (HANGZHOU) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411507488.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2024-01-16
Filing Date
2024-10-28
Publication Date
2025-01-21
Estimated Expiration
2044-10-28

AI Technical Summary

Technical Problem

In the prior art, the format of phase space files is incompatible, making it difficult to share and convert between different computing programs, limiting the accuracy and repeatability of dose calculations.

Method used

By reading phase space files generated by different programs, an accurate geometric model is generated, and the nuclear reaction cross section and interaction probability are defined. Combining deterministic and probabilistic methods, the Boltzmann neutron transport equation is solved to obtain the flux distribution and the output is available Input files for other programs.

Benefits of technology

It achieves compatibility and conversion between phase space files, can read files generated by different programs, and outputs input files that comply with the phase space file format defined by the IAEA, improving the accuracy and repeatability of dose calculations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119025478B_ABST
    Figure CN119025478B_ABST
Patent Text Reader

Abstract

The present invention discloses a method for converting a phase space file into an input file available to other programs, comprising the steps of: reading phase space files generated by different programs to generate an accurate geometric model; defining the physical properties of each tissue and substance in the geometric model; solving the Boltzmann neutron transport equation by coupling calculations with deterministic methods and probabilistic methods to obtain the distribution of flux; in the simulation process, recording the interaction between each particle and the substance, and calculating the distribution of dose in different tissues and positions; verifying the consistency of the simulation results with experimental data, and performing calibration; and outputting input files available to other programs. The present invention can read phase space files generated by different programs, output the required particle information according to the required deterministic and probabilistic coupled transport programs, and can also output the file into the phase space file format defined by the IAEA for use as an input file of the program.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the field of radiation therapy dose calculation, and in particular to a method for converting a phase space file into an input file available for other programs. Background Art

[0002] Boron Neutron Capture Therapy (BNCT) is a tumor treatment method that achieves the purpose of tumor treatment through the high capture probability of neutrons by the boron-10 isotope. The basic principle of this therapy is that the patient is first injected with a compound containing the boron-10 isotope. Then, the patient is irradiated with a neutron beam, which will react with the boron-10 to release an alpha particle and a lithium ion, which has a high local killing effect on tumor tissue. Due to the high capture cross-section (capture probability) of the boron-10 isotope for neutrons and the high energy release of the reaction products, BNCT has potential advantages in tumor treatment. Because the neutron beam only reacts with tumor cells carrying boron-10, more precise tumor treatment can be achieved compared to surrounding normal tissues, thereby reducing damage to healthy tissues.

[0003] Phase space files are files used to store state information of particles or systems, which usually contain state information such as the position, momentum, energy, weight, and other possible related information of each particle in the system. These files are used to record the motion trajectory and state changes of particles during the simulation so that they can be analyzed and visualized after the simulation. The content of the phase space file can vary according to the needs of the system and simulation. According to the phase space data of the International Atomic Energy Agency (IAEA), the phase space file at least includes information such as the type of particle, the energy of the corresponding particle, direction, position, statistical weight, and history number. By using phase space files, simulation calculations can be performed under the same conditions of the particle source to obtain the dose received by the patient, which is very helpful for formulating treatment plans, optimizing dose distribution, and evaluating the effects of different treatment plans.

[0004] Although the functionality to create phase space files is widely implemented in most probabilistic computational programs, each code uses its own specific format, which limits compatibility and reproducibility between different codes. To address this issue, the IAEA has defined a standard phase space file format that can be read and written using a database it provides. Using this format, the IAEA has created a common database (IAEA NAPCNuclear Data Section 2020) for phase space files for linear accelerators used in external radiation therapy by compiling existing data that has been appropriately validated.

[0005] Different equipment manufacturers have different input formats for phase space files. When hospitals or researchers need to use equipment from different manufacturers for different purposes such as calibration or dose estimation in radiotherapy planning, and considering that the manufacturer's information is usually subject to strict confidentiality agreements, it is necessary to convert the phase space files into input files that can be used by other programs. Summary of the invention

[0006] In order to overcome the deficiencies of the prior art, the present invention provides a method for converting a phase space file into an input file that can be used by other programs.

[0007] The technical solution of the present invention is implemented as follows: a method for converting a phase space file into an input file that can be used by other programs, comprising the steps of:

[0008] S1, reading phase space files generated by different programs to generate an accurate geometric model, wherein the geometric model includes a neutron source, capture agent distribution, tumor tissue, and surrounding normal tissue;

[0009] S2, for each tissue and substance in the geometric model, define the physical properties of nuclear reaction cross section, interaction probability and energy transfer;

[0010] S3, by coupling the deterministic method with the probabilistic method, solve the Boltzmann neutron transport equation and obtain the flux distribution, including the following steps:

[0011] S31, uses deterministic methods to quickly calculate the distribution of neutron flux;

[0012] S32, using the distribution of the neutron flux as a value function to guide the Monte Carlo program simulation, and using a Monte Carlo method based on probability theory to simulate the neutron motion state;

[0013] S4, during the simulation, records the interaction between each particle and the material and calculates the distribution of dose in different tissues and locations;

[0014] S5, verify the consistency of simulation results with experimental data or other calculation methods, and perform calibration;

[0015] S6, outputs input files that can be used by other programs.

[0016] Furthermore, the phase space files generated by the different programs read in S1 include but are not limited to MCNP files, PHITS files, IAEAheader and IAEAphsp files.

[0017] Furthermore, the step S31 includes the steps of:

[0018] S311, approximation of the Boltzmann neutron transport equation;

[0019] S312, find the approximate or analytical solution to the Boltzmann neutron transport equation.

[0020] Furthermore, the method for approximating the Boltzmann neutron transport equation in S311 includes but is not limited to multi-group approximation of the interface and Legendre expansion.

[0021] Furthermore, the method for obtaining an approximate solution or an analytical solution to the Boltzmann neutron transport equation in S312 includes but is not limited to a discrete coordinate method, a spherical harmonic function method and a finite element method.

[0022] Furthermore, the S32 includes the step of: adding a weight window parameter in the Monte Carlo simulation, specifically including the steps of:

[0023] S321, calculating the importance map of the grid divided in the Monte Carlo simulation, wherein the importance map is defined as (1.20), where is the index of the grid divided in the Monte Carlo simulation, is the particle energy group, Is a grid The importance of Is the particle entering the grid After all detectors respond, All particles enter the grid The weight of The flux obtained by the deterministic calculation in step S31 get, Obtained from the particle information recorded by the deterministic calculation in step S31;

[0024] S322, define the expected weight of each grid as (1.21), where is the average response of each particle. A window of desired weights is generated for each grid;

[0025] S323, compare the actual particle weight with the weight window boundary of the split and roulette, if the actual weight Greater than threshold , the particles are split for simulation; if the actual weight Less than threshold , then the particles need to perform roulette to reduce the simulation; if the actual weight At the threshold and In the middle, the particles continue to simulate, where and are constants used for threshold setting, respectively and Select from.

[0026] The beneficial effect of the present invention is that, compared with the prior art, the present method can read phase space files generated by different programs, and can also read files provided by the IAEA database, read the particle information stored in the files, output the required particle information according to the required deterministic and probabilistic coupled transport programs, and can also output the files into the phase space file format defined by the IAEA for use as input files of the program. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] Figure 1 It is a flow chart of a method for converting a phase space file into an input file that can be used by other programs according to the present invention. DETAILED DESCRIPTION

[0028] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0029] See also Figure 1 The method of converting a phase space file into an input file usable by other programs of the present invention comprises the following steps: A method of converting a phase space file into an input file usable by other programs comprises the following steps:

[0030] S1, read the phase space files generated by different programs to generate an accurate geometric model, which includes neutron source, capture agent distribution, tumor tissue and surrounding normal tissue, etc. This model needs to reflect the actual situation as accurately as possible;

[0031] S2, for each tissue and substance in the geometric model, defining its physical properties such as nuclear reaction cross section, interaction probability and energy transfer, and this information is used to simulate the interaction between neutrons and matter;

[0032] S3, by coupling the deterministic method with the probabilistic method, solve the Boltzmann neutron transport equation and obtain the flux distribution, including the following steps:

[0033] S31, uses deterministic methods to quickly calculate the distribution of neutron flux;

[0034] S32, using the distribution of the neutron flux as a value function to guide the Monte Carlo program simulation, and using a Monte Carlo method based on probability theory to simulate the neutron motion state;

[0035] S4, during the simulation, records the interaction between each particle and matter, including energy deposition and transfer, and based on this information, calculates the distribution of dose in different tissues and locations;

[0036] S5, verify the consistency of simulation results with experimental data or other calculation methods, and perform calibration to ensure the accuracy of simulation results;

[0037] S6, outputs input files that can be used by other programs.

[0038] The core of dose calculation is to solve the Boltzmann neutron transport equation to obtain the flux distribution and provide a basis for treatment planning. The steady-state form of the Boltzmann neutron transport equation is:

[0039] (1.1)

[0040] in, is the angular flux, is the total cross section, is the scattering cross section, is the source term. In step S3, the present invention obtains the Boltzmann neutron transport equation by coupling calculation using a deterministic method and a probabilistic method, including the steps of:

[0041] S31, uses deterministic methods to quickly calculate the distribution of neutron flux;

[0042] S32, using the distribution of the neutron flux as a value function to guide the Monte Carlo program simulation, and using the Monte Carlo method of probability theory to simulate the neutron motion state.

[0043] The step S31 comprises the steps of:

[0044] S311, approximation of the Boltzmann neutron transport equation;

[0045] S312, find the approximate or analytical solution to the Boltzmann neutron transport equation.

[0046] In step S311, because the neutron transport equation has no clear analytical solution, it is necessary to approximate and convert it to obtain an analytical solution. In step S31, the approximate methods that can be used include multi-group approximation of the cross section and Legendre expansion. Among them, Legendre expansion is: If the scattering is only related to the angle, the scattering cross section can be expanded by the L-order Legendre polynomial:

[0047] (1.2).

[0048] The multigroup approximation of the cross section is: the continuous energy cross section is divided into some discrete energy group structures, where each group has a different energy width.

[0049] The group flux expressed with the index g becomes (1.3),

[0050] The total cross section of the group represented by the index g is (1.4);

[0051] The total cross section of the group represented by the index g is (1.5);

[0052] in (1.6),

[0053] It can be seen that if we want to find the flux , we must know a flux. In practical applications, in order to correctly estimate the average group constant, it is necessary to use a certain approximate weight spectrum.

[0054] The approximated Boltzmann neutron transport equation becomes

[0055] (1.7)

[0056] By treating the scattering of other groups as valid source terms, the multigroup equations can be solved sequentially as a set of valid single-group problems, namely:

[0057] (1.8)

[0058] The Boltzmann neutron transport equation in the energy level group represented by g is

[0059] (1.9)

[0060] In step S312, the methods for approximate solution or analytical solution of Boltzmann neutron transport equation include discrete coordinate method, spherical harmonic function method and finite element method. In some embodiments of the present invention, discrete coordinate method is also called The method is to discretize the angle into a small number of specific directions, and then solve the particle transport equation in each direction to obtain the spatial distribution of the flux. Specifically:

[0061] If there is no previous solution for the angular flux, we can assume that the direction cosines are symmetrically distributed, so that we only need to consider the distribution of the unit sphere in one quadrant, discretized to Directions need to be selected on the coordinate axis points, and the set of direction cosines is the same, that is, , plus the sum of the squares of the direction cosines is 1, so we can deduce that in the set In

[0062] (1.10)

[0063] (1.11)

[0064] Subtracting the two equations, we can get

[0065] (1.12)

[0066] Right now (1.13)

[0067] There is a Make (1.14)

[0068] Lian Li When the formula (1.13) can be obtained , and then put it into formula (1.13) to get

[0069] (1.15)

[0070] This shows that the collection Mainly by determined by setting appropriate , which can improve the accuracy of flux distribution.

[0071] The application of the Monte Carlo method of probability theory in radiotherapy can take into account complex physical processes and geometric structures, thereby providing more accurate predictions of dose distribution. The motion of particles can be directly simulated through probability theory, and the distribution of particle flux can be obtained after statistics. When performing the simulation, an initial state must be set first, that is, the spatial position, energy and direction distribution of the neutron source must be obtained, that is, , and sample it as the initial state. Knowing the initial state, to obtain the change of the particle's motion state over time, it is necessary to calculate the interaction between particles. The neutron transport length in the process is represented by Obey the following distribution

[0072] (1.16)

[0073] The location where the particles interact can be obtained. Next, the type of particles that interact can be determined. and It is composed of two atoms, and its total macroscopic cross section is

[0074] (1.17)

[0075] in, and yes and The total macroscopic cross section of two atoms, neutron and and The probability of collision is

[0076] (1.18)

[0077] Then, the type of interaction between particles and the corresponding cross-sectional size are determined, such as elastic scattering, inelastic scattering, fission reaction and capture. The probability of a certain interaction is similar to the probability of the atomic type, which is the ratio of its cross-sectional size to the total cross-sectional size. Finally, the motion state of the particle after the interaction is determined. If the neutron is absorbed, there is no subsequent motion state; if elastic scattering occurs, the energy of the neutron can be calculated.

[0078] (1.19)

[0079] in , is the mass ratio of the interacting atoms and neutrons, is the deflection angle. After these parameters are calculated, the motion state of the particle per unit time can be obtained. Repeat this step to obtain the desired particle motion state.

[0080] The approximate solution calculated by the deterministic method has a certain deviation from the exact solution. The probability method has higher calculation accuracy, but it takes a lot of time to simulate. If the deterministic method is used to quickly calculate the distribution of neutron flux and use it as a value function to guide the Monte Carlo program simulation, the sampling scheme can be changed to sample more from phase space coordinates that contribute significantly to the results, while ensuring reliable accuracy, improving the efficiency of the simulation, that is, increasing the weight window parameter in the Monte Carlo simulation.

[0081] In step S32, a weight window parameter is added in the Monte Carlo simulation, specifically comprising the steps of:

[0082] S321, calculating the importance map of the grid divided in the Monte Carlo simulation, wherein the importance map is defined as (1.20), where is the index of the grid divided in the Monte Carlo simulation, is the particle energy group, Is a grid The importance of Is the particle entering the grid After all detectors respond, All particles enter the grid The weight of The flux obtained by the deterministic calculation in step S31 get, Obtained from the particle information recorded by the deterministic calculation in step S31;

[0083] S322, define the expected weight of each grid as (1.21), where is the average response of each particle. A window of desired weights is generated for each grid;

[0084] S323, compare the actual particle weight with the weight window boundary of the split and roulette, if the actual weight Greater than threshold , the particles are split for simulation; if the actual weight Less than threshold , then the particles need to perform roulette to reduce the simulation; if the actual weight At the threshold and In the middle, the particles continue to simulate, where and are constants used for threshold setting, respectively and Select from.

[0085] The present invention can read phase space files generated by different programs, such as MCNP, PHITS, etc., and can also read files (IAEAheader and IAEAphsp files) provided by the IAEA database to read the particle information stored in the files. If it is necessary to rotate, translate, etc. the surface source, it is necessary to input the rotation angle and the translation displacement, otherwise the original data is retained. Finally, according to the required deterministic and probabilistic coupled transport programs, the required particle information, such as type, energy, direction, position and statistical weight, etc., is output, and the file can also be output into the phase space file format defined by the IAEA for use as an input file of the program.

[0086] The above is a preferred embodiment of the present invention. It should be pointed out that a person skilled in the art can make several improvements and modifications without departing from the principle of the present invention. These improvements and modifications are also considered to be within the scope of protection of the present invention.

Claims

1. A method for converting a phase space file into an input file that can be used by other programs, characterized in that: Includes steps: S1, reading phase space files generated by different programs to generate an accurate geometric model, wherein the geometric model includes a neutron source, capture agent distribution, tumor tissue, and surrounding normal tissue; S2, for each tissue and substance in the geometric model, define the physical properties of nuclear reaction cross section, interaction probability and energy transfer; S3, by coupling the deterministic method with the probabilistic method, solve the Boltzmann neutron transport equation and obtain the flux distribution, including the following steps: S31, uses deterministic methods to quickly calculate the distribution of neutron flux; S32, using the distribution of the neutron flux as a value function to guide the Monte Carlo program simulation, and using the Monte Carlo method of probability theory to simulate the neutron motion state; S32 includes the steps of: adding a weight window parameter in the Monte Carlo simulation, specifically including the steps of: S321, calculating the importance map of the grid divided in the Monte Carlo simulation, wherein the importance map is defined as (1.20), where is the index of the grid divided in the Monte Carlo simulation, is the particle energy group, Is a grid The importance of Is the particle entering the grid After all detectors respond, All particles enter the grid The weight of The flux obtained by the deterministic calculation in step S31 get, Obtained from the particle information recorded by the deterministic calculation in step S31; S322, define the expected weight of each grid as (1.21), where is the average response of each particle; a window of expected weights is generated for each grid; S323, compare the actual particle weight with the weight window boundary of the split and roulette, if the actual weight Greater than threshold , the particles are split for simulation; if the actual weight Less than threshold , then the particles need to perform roulette to reduce the simulation; if the actual weight At the threshold and In the middle, the particles continue to simulate, where and are constants used for threshold setting, respectively and Select from S4, during the simulation, records the interaction between each particle and the material and calculates the distribution of dose in different tissues and locations; S5, verify the consistency of simulation results with experimental data or other calculation methods, and perform calibration; S6, outputs input files that can be used by other programs.

2. The method for converting a phase space file into an input file usable by other programs as claimed in claim 1, characterized in that: The phase space files generated by the different programs read in S1 include but are not limited to MCNP files, PHITS files, IAEAheader and IAEAphsp files.

3. The method for converting a phase space file into an input file usable by other programs as claimed in claim 1, characterized in that: The step S31 comprises the steps of: S311, approximation of the Boltzmann neutron transport equation; S312, find the approximate or analytical solution to the Boltzmann neutron transport equation.

4. The method for converting a phase space file into an input file usable by other programs as claimed in claim 3, characterized in that: The method for approximating the Boltzmann neutron transport equation in S311 includes but is not limited to multi-group approximation of the interface and Legendre expansion.

5. The method for converting a phase space file into an input file usable by other programs as claimed in claim 3, characterized in that: The method for obtaining the approximate solution or analytical solution of the Boltzmann neutron transport equation in S312 includes but is not limited to the discrete coordinate method, the spherical harmonic function method and the finite element method.

Citation Information

Patent Citations

  • Radiation shield calculation method based on coupling of Monte Carlo method and characteristic line method

    CN103106301A

  • Construction method of medical linear accelerator photon source model function

    CN113230549A