armi.materials.custom module
Custom materials are ones that you can specify all the number densities yourself.
Useful for benchmarking when you have a particular specified material density. Use the isotopic input described in The Blueprints Input File.
The density function gets applied from custom isotopics by
armi.reactor.blueprints.isotopicOptions.CustomIsotopic.apply()
.
- class armi.materials.custom.Custom[source]
Bases:
Material
Custom Materials have user input properties.
During construction, set default density to 1.0. That way, people can set number densities without having to set a density and it will work. This will generally be overwritten in practice by a constant user-input density.
- enrichedNuclide = 'U235'
Name of enriched nuclide to be interpreted by enrichment modification methods
- pseudoDensity(Tk=None, Tc=None)[source]
The density value is set in the loading input.
In some cases it needs to be set after full core assemblies are populated (e.g. for CustomLocation materials), so the missing density warning will appear no matter what.
- density(Tk: float = None, Tc: float = None) float
Return density that preserves mass when thermally expanded in 3D (in g/cm^3).
Notes
Since refDens is specified at the material-dep reference case, we don’t need to specify the reference temperature. It is already consistent with linearExpansion Percent. - p*(dp/p(T) + 1) =p*( p + dp(T) )/p = p + dp(T) = p(T) - dp/p = (1-(1 + dL/L)**3)/(1 + dL/L)**3