AMReX-Astro / AMReX-Astro/Castro

Make gravity StateData nodal

Open
#1,432 0 comments 0 reactions 1 assignee View on GitHub

@maximumcats is already working on this.

Since Dec 3, 2020.

gravity
Dominant language
C++
Stars
340
Forks
105
Avg merge
3d 8h
Merged PRs (30d)
8

Description

The gravitational acceleration (g, not phi) is most naturally expressed at cell edges rather than cell centers in the Poisson gravity formulation, and it is straightforward to express it at edges for other forms like monopole and constant gravity. If we did this then the conservative gravity source term would be more straightforward to write the way we want (right now we are recovering cell edges by averaging between cell centers adjacent to the edge, which is not as good as just having the exact cell edge value directly from the Poisson solver).

We may want to wait until after #580 is merged to make this change.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.