sxs-collaboration / spectre

SpECTRE is a code for multi-scale, multi-physics problems in astrophysics and gravitational physics.
https://spectre-code.org
Other
159 stars 189 forks source link

Set up ghost zones for MC #6037

Closed ffoucart closed 3 months ago

ffoucart commented 4 months ago

Proposed changes

Builds infrastructure for the use of GZ within the MC code.

Upgrade instructions

NA

Code review checklist

Further comments

ffoucart commented 4 months ago

Depends on #5907

ffoucart commented 4 months ago

Start handling ghost zones by: (1) Getting GZ data for density, temperature, Ye as input to the MC code (2) Assuming that neutrino emission/absorption/scattering are computed on an extended mesh with GZ (3) Assuming that coupling to the fluid is compute on an extended mesh As part of this change, the proper volume term going in the calculation of the emission rate has been moved to the emitpacket function.

This does not allow packets to move from cell to cell yet (#5998 will be needed for that)

ffoucart commented 4 months ago

Rebased against 5907 and 5998. Should now be up to date with the current state of develop and ready for full review.