wiki:Gravity

Version 3 (modified by trac, 12 years ago) ( diff )

SUBROUTINE Gravity(REAL[] q, REAL[] dqdt, CELLINFO ci)


Defined In:

contrib/astro/physics/i_i_ODEs.f90


Inputs:

REAL[] q. The 1D array that holds the field values for the cell.

REAL[] dqdt. A 1D INTENT(INOUT) array that is returned with Gravity()'s contribution to q's time-derivatives.

CELLINFO ci. Contains information and constants that help calculate the derivatives.


Description:

Adds gravity source terms to the time-derivative array, with gravitational forces oriented toward the lower-left corner of the problem domain. This routine is not applied in 3D problems.

Note that this subroutine treats dqdt as an accumulator—it will add its terms to whatever is already in dqdt without overwriting it.


Called In:

ODEs :: Derivatives2D()


Modules Used:

None.


Files Included:

None.

Note: See TracWiki for help on using the wiki.