3.10.1.11.1.1. opengate.geometry.materials¶
3.10.1.11.1.1.1. Classes¶
A description of a G4Element that can be build. |
|
A description of a material, that will can be built on demand. |
|
Manage a unique list of Geant4 materials and elements. |
3.10.1.11.1.1.2. Functions¶
|
|
|
|
|
|
|
|
|
|
|
Same function than in GateHounsfieldToMaterialsBuilder class. |
|
|
|
|
|
|
|
Parameters |
|
Parameters |
3.10.1.11.1.1.3. Module Contents¶
- opengate.geometry.materials.HU_find_max_density_difference(hu_min, hu_max, d_min, d_max, densities)[source]¶
- opengate.geometry.materials.HounsfieldUnit_to_material(simulation, density_tolerance, file_mat, file_density)[source]¶
Same function than in GateHounsfieldToMaterialsBuilder class. Probably far from optimal, put we keep the compatibility
- opengate.geometry.materials.create_density_img(img_volume, material_database)[source]¶
3.10.1.11.1.1. Parameters¶
- img_volumeImageVolume
opengate ImageVolume class instance
- material_databasedict
dictionary with keys: material name, values: G4 material obj
3.10.1.11.1.1. Returns¶
- rhoitk.Image
image of the same size and resolution of the ct. The voxel value is the density of the voxel. Density is returned in G4 1/kg.
- opengate.geometry.materials.create_mass_img(ct_itk, hu_density_file, overrides=dict())[source]¶
3.10.1.11.1.1. Parameters¶
- ct_itk :itk.Image
ct image
- hu_density_filestr
filepath of the HU to density table
- overridesdict, optional
Dict where keys are HU to be overwritten and values are density values. The default is dict().
3.10.1.11.1.1. Returns¶
- massitk.Image
image of the same size and resolution of the ct. The voxel value is the mass of the voxel. Mass is returned in grams.
- class opengate.geometry.materials.ElementBuilder(material_database)[source]¶
A description of a G4Element that can be build.
- class opengate.geometry.materials.MaterialBuilder(material_database)[source]¶
A description of a material, that will can be built on demand. A material is described by a list of components that can be elements or sub-materials.
- class opengate.geometry.materials.MaterialDatabase[source]¶
Manage a unique list of Geant4 materials and elements. The materials/elements are read in a DB txt file or in NIST. They are only build on demand, during the geometry Construct
- add_material_nb_atoms(*args)[source]¶
Usage example: “Lead”, [“Pb”], [1], 11.4 * gcm3 “BGO”, [“Bi”, “Ge”, “O”], [4, 3, 12], 7.13 * gcm3)