Self-Gravity
AstroBEAR uses the hypre library to solve the self-gravity equations. To use self-gravity:
- Look for the
HYPREFLAGvariable inMakefile.incand make sure that it is set to1. - Set the
lSelfGravityflag in yourphysics.datafile and set it toT.
Hypre will automatically initialize the potential field using the density. The only caveat is that the initial density cannot be uniform. When the density is uniform, hypre produces a singular matrix that it can't solve. Fortunately, a small density perturbation takes care of this problem without substantially affecting the dynamics of the domain. AstroBEAR comes with a Perturbation object type that can be used for this.
For more information see SelfGravityDevel.
Last modified
9 years ago
Last modified on 02/22/17 12:31:24
Note:
See TracWiki
for help on using the wiki.