blocks.Material()¶
-
class
feign.blocks.Material(*args, **kwargs)¶ A class used to represent a Material.
- Parameters
*args (str) – ID of the material
-
_id¶ ID of the material
- Type
str
-
density¶ density of material in (g/cm3)
- Type
float
-
path¶ path to attenuation coefficient file
- Type
str
-
color¶ color of material when plotting
- Type
str
-
set_color(color=None)¶ The function to set the color of Material in case the geometry is plotted.
- Parameters
color (str) – color of the material in hex format
-
set_density(density=None)¶ The function to set the density of the Material
- Parameters
density (float) – density of material in g/cm2
-
set_path(path=None)¶ The function to set the path to the attenuation data of the Material.
- Parameters
path (tuple (str,int)) – the path of the file, and the column which contains the data.