You can create a Force Field constraint to push nParticle objects away from the center of the constraint in a radial field with spherical volume bounds.
To create a Force Field constraint
The Force Field locator appears at the center of the selected nParticle object, and the dynamicConstraint node appears in the Attribute Editor.
The preset properties on the dynamicConstraint node determine the constraint's type (in this case, a Force Field constraint) and how it behaves. For example, you can create a Force Field constraint with the following attribute settings:
The location, size and rotation of the locator determines the size, shape, and volume of the Force Field constraint.
Except where otherwise noted, this work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License