Version 8 (modified by 10 years ago) ( diff ) | ,
---|
Self Gravity in astrobear
The governing equation is Poisson's equation for gravity, which for a given mass distribution can be solved for the gravitational potential. In astrobear, we use the potential to solve for the gravitational forces in the fluid. The equation we use for the resultant force is either in conservative or non-conservative form (want to read more into the numerical methods here and link to these pages).
Laplace Operator
In cartesian coordinates, the Laplacian contains only simple derivatives, i.e. does not contain any functions of position as it does in cylindrical or spherical coordinates:
in Cartesian coordinates (x,y,z):
in Cylindrical coordinates
:
in Spherical
coordinates:
Currently astrobear is configured for gravity in Cartesian coordinates. I will be modifying the code so that it can solve for gravity in 2.5D (aka cylindrical, axisymmetric symmetry) and 1D spherical geometry (aka spherical coordinates with polar and azimuthal symmetry). With these symmetries, the Laplacian becomes:
in 2.5 d:
in 1d, spherical:
Attachments (2)
- 3d_cyl_compare.png (57.1 KB ) - added by 10 years ago.
- phi_compare.png (53.4 KB ) - added by 10 years ago.
Download all attachments as: .zip