onix.salameche.CRAM_density_check

onix.salameche.CRAM_density_check(bucell, N)[source]

This function checks for extremely low densities and negative densities. Densities below one atom per cubic centimeter are set to zero. Negative densities are produced by mathematical approximations inherent to the CRAM method and therefore do not bear any physical meaning. They are also set to zero.

Parameters
  • bucell (onix.Cell) – BUCell being depleted

  • N (numpy.array) – New density vector solution to the depletion equation