write particle distributions to accept units