|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.stanford.rsl.konrad.physics.materials.MaterialUtils
public class MaterialUtils
This class contains methods for generating custom materials, calculating energy dependent mass attenuation,
and determining the energy dependent attenuation coefficient of a material given its density, and energy dependent mass attenuation.
Constructor Summary | |
---|---|
MaterialUtils()
|
Method Summary | |
---|---|
static NumberInterpolatingTreeMap |
calculateAttenuationVals(java.util.TreeMap<java.lang.Double,java.util.TreeMap<java.lang.String,java.lang.Double>> massAttenuation,
double density)
Generates the energy dependent attenuation coefficient given energy dependent mass attenuation data and density |
static NumberInterpolatingTreeMap |
calculateAttenuationVals(WeightedAtomicComposition composition,
double density)
|
static java.util.TreeMap<java.lang.Double,java.util.TreeMap<java.lang.String,java.lang.Double>> |
calculateMassAttenuation(java.lang.String formula)
Calculates the energy dependent mass attenuation of material with given formula. |
static java.util.TreeMap<java.lang.Double,java.util.TreeMap<java.lang.String,java.lang.Double>> |
calculateMassAttenuation(WeightedAtomicComposition comp)
Calculates the energy dependent mass attenuation of material with given composition. |
static Material |
newMaterial(java.lang.String name,
double density,
java.lang.String formula)
Generates a new instance of material with given characteristics |
static Material |
newMaterial(java.lang.String name,
double density,
WeightedAtomicComposition composition)
Generates a new instance of material with given characteristics |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MaterialUtils()
Method Detail |
---|
public static java.util.TreeMap<java.lang.Double,java.util.TreeMap<java.lang.String,java.lang.Double>> calculateMassAttenuation(java.lang.String formula)
comp
- the atomic composition of material by weight
public static java.util.TreeMap<java.lang.Double,java.util.TreeMap<java.lang.String,java.lang.Double>> calculateMassAttenuation(WeightedAtomicComposition comp)
comp
- the atomic composition of material by weight
public static Material newMaterial(java.lang.String name, double density, java.lang.String formula)
name
- is material identifierdensity
- is material densityformula
- is chemical formula of material to be created
public static Material newMaterial(java.lang.String name, double density, WeightedAtomicComposition composition)
name
- is material identifierdensity
- is material densityatomicComposition
- is atomic composition by weight of material
public static NumberInterpolatingTreeMap calculateAttenuationVals(WeightedAtomicComposition composition, double density)
public static NumberInterpolatingTreeMap calculateAttenuationVals(java.util.TreeMap<java.lang.Double,java.util.TreeMap<java.lang.String,java.lang.Double>> massAttenuation, double density)
massAttData
- energy dependent mass attenuation datadensity
- density of material
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |