Version 3 (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).
The Laplacian
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.
Laplacian in Cartesian coordinates:
in Cylindrical coordinates:
in Spherical
and in 2.5 d:
Poisson Equation takes on a simple discretization form in Cartesian coordinates since the Laplacian contains only simple derivatives.
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