Metadata-Version: 2.4
Name: gragra
Version: 0.2.0rc1
Summary: Gravitational perturbation calculation package
Keywords: gravity,gravitational-perturbation,newtonian-noise,seismology,geophysics,gravitational-wave-detector
Author: Tatsuki Washimi
License-Expression: MIT
License-File: LICENSE
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Science/Research
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Scientific/Engineering :: Physics
Classifier: Typing :: Typed
Project-URL: Homepage, https://github.com/tatsuki-washimi/gragra
Project-URL: Repository, https://github.com/tatsuki-washimi/gragra
Project-URL: Issues, https://github.com/tatsuki-washimi/gragra/issues
Project-URL: Changelog, https://github.com/tatsuki-washimi/gragra/blob/main/CHANGELOG.md
Requires-Python: >=3.11
Requires-Dist: numpy>=1.24.0
Requires-Dist: astropy<9,>=7.2
Requires-Dist: pandas<4,>=2.2.3
Requires-Dist: gwexpy<0.3,>=0.2.3
Requires-Dist: matplotlib<4,>=3.10
Requires-Dist: scipy<2,>=1.15
Provides-Extra: dev
Requires-Dist: pytest>=7.0.0; extra == "dev"
Requires-Dist: pytest-cov>=4.0.0; extra == "dev"
Requires-Dist: ruff>=0.1.0; extra == "dev"
Requires-Dist: nbformat<6,>=5; extra == "dev"
Requires-Dist: nbclient<1,>=0.10; extra == "dev"
Requires-Dist: ipykernel<8,>=6; extra == "dev"
Provides-Extra: docs
Requires-Dist: mkdocs<1.7.0,>=1.6.0; extra == "docs"
Requires-Dist: mkdocs-material<9.8.0,>=9.7.0; extra == "docs"
Requires-Dist: mkdocstrings-python<2.1.0,>=2.0.0; extra == "docs"
Provides-Extra: reference
Requires-Dist: mpmath<2,>=1.3; extra == "reference"
Provides-Extra: mesh
Requires-Dist: meshio>=5.0.0; extra == "mesh"
Provides-Extra: mesh-quality
Requires-Dist: meshio>=5.0.0; extra == "mesh-quality"
Requires-Dist: trimesh<4.13.0,>=4.12.0; extra == "mesh-quality"
Provides-Extra: numba
Requires-Dist: numba>=0.59; extra == "numba"
Provides-Extra: lebedev
Requires-Dist: scipy<2,>=1.15; extra == "lebedev"
Provides-Extra: field-io
Requires-Dist: h5py<3.13.0,>=3.11.0; extra == "field-io"
Provides-Extra: validation
Requires-Dist: scipy<2,>=1.15; extra == "validation"
Requires-Dist: mpmath>=1.3; extra == "validation"
Requires-Dist: sympy<2,>=1.14; extra == "validation"
Description-Content-Type: text/markdown

# gragra

**Newtonian gravitational perturbation calculations in Python.**

gragra computes Newtonian gravitational potential, acceleration, and gravity-gradient tensor observables from prescribed mass distributions, density perturbations, moving sources, and displacement fields. Its principal application is Newtonian-noise modelling for gravitational-wave detectors.

## Install

Requires **Python 3.11 or newer**.

```bash
python -m pip install gragra==0.2.0rc1
```

Version 0.2.0rc1 is a **pre-release**. See the [model and method catalogue](https://tatsuki-washimi.github.io/gragra/guide/model-and-method-catalogue/) and [verification and limitations](https://tatsuki-washimi.github.io/gragra/verification/) for documented applicability conditions.

## Minimal example

```python
import numpy as np
from gragra import PointMass, point_acceleration

point = PointMass(mass_kg=1.0, position_m=[0.0, 0.0, 0.0])
acc = point_acceleration(point, [[1.0, 0.0, 0.0]])
print(acc)  # acceleration vector, m/s^2
```

The default NumPy backend is available without compiled extensions. Optional features include mesh I/O, HDF5 field input, Numba, and C++/GPU backends subject to their documented dependencies and environment requirements.

## Documentation and development

- [Documentation and tutorials](https://tatsuki-washimi.github.io/gragra/)
- [Physics reference](https://tatsuki-washimi.github.io/gragra/guide/physics-reference/)
- [24-model catalogue and verification scope](https://tatsuki-washimi.github.io/gragra/guide/model-and-method-catalogue/)
- [API reference](https://tatsuki-washimi.github.io/gragra/api/)
- [Public source code and issues](https://github.com/tatsuki-washimi/gragra)
- [Changelog](https://github.com/tatsuki-washimi/gragra/blob/main/CHANGELOG.md)

gragra evaluates gravity perturbations from prescribed sources and fields. It is not a general elastodynamic or fluid-dynamic PDE solver.

MIT License. Maintainer: Tatsuki Washimi.
