Skip to content

Gravity point values: add boundary topography contribution (surface and bottom). - #7478

Open
Bernard-Ngu wants to merge 3 commits into
geodynamics:mainfrom
Bernard-Ngu:gravity-boundary-topography-pr
Open

Bernard-Ngu wants to merge 3 commits into
geodynamics:mainfrom
Bernard-Ngu:gravity-boundary-topography-pr

Conversation

@Bernard-Ngu

@Bernard-Ngu Bernard-Ngu commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

This PR adds the gravitational contribution of the dynamic topography of the top and bottom boundaries to the gravity calculation postprocessor. Without it, gravity computed for models with free-slip boundaries misses the mass of the deflected boundaries, so the gravity anomaly is incomplete, which matters especially for regional chunk models. The approach was discussed on the forum: (https://community.geodynamics.org/t/proposal-boundary-topography-contribution-in-gravity-point-values-chunk-shell-and-2d-support/4651)

Changes

  • Two new parameters, Include surface topography contribution and Include bottom topography contribution, both false by default, so existing output and tests are unchanged.
  • The topography h comes from the dynamic topography postprocessor (enabled automatically when needed) and is treated as a thin mass sheet with surface density sigma = (rho_below - rho_above) h, h positive upward, the same convention as dynamic topography and geoid.
  • The definition of sigma is in a small helper, internal::compute_surface_mass_density(), so geoid can use the same definition in a follow-up PR.
  • The contribution is added to gravity, gravity anomaly, potential and gradients, and written as separate output columns (30-35) when either option is on.
  • Boundaries deformed by mesh deformation are skipped, since their mass is already in the volume integral.
  • The options are restricted to incompressible models, with a dedicated error message and a note in the parameter documentation.

Tests

  • gravity_point_values_dynamic_topography: the degree 2, order 0 setup of the geoid test in a 3D shell, so the interior, surface and bottom contributions can be compared with the geoid coefficients.
  • gravity_point_values_zero_topography: zero-displacement baseline (uniform density, no flow). The topography contributions are about four orders of magnitude smaller than in the test above, and gravity matches the analytical value of a uniform shell.

Before your first pull request:

For all pull requests:

For new features/models or changes of existing features:

  • I have tested my new feature locally to ensure it is correct.
  • I have created a testcase for the new feature/benchmark in the tests/ directory.
  • I have added a changelog entry in the doc/modules/changes directory that will inform other users of my change.

The gravity postprocessor can now include the mass associated with the dynamic topography of the top and bottom boundaries, treated as thin mass sheets. This allows complete gravity anomalies for models with free-slip boundaries, including regional chunk models.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant