[ET Trac] #2889: Outflow uses incorrect `sf_centroid` to compute surface coordinates

Roland Haas trac-noreply at einsteintoolkit.org
Tue Sep 30 13:19:31 CDT 2025


#2889: Outflow uses incorrect `sf_centroid` to compute surface coordinates

 Reporter: Roland Haas
   Status: new
Milestone: 
  Version: 
     Type: bug
 Priority: major
Component: EinsteinToolkit thorn

Outflow incorrectly used `sf_centroid` as the origin point for the spherical surface it computes fluxes on. However for `SphericalSurface` the surface is defined with respect to `sf_origin` via `sf_radius[ind2d]` .

This pull request fixes this and also introduces a runtime parameter to chose between `sf_centroid` and `sf_origin`. The former is useful if one also sets `override_radius`if eg the sphericalsurface is really just a tracker position.

Thankfully for the common case where there are either a set of spheres centered on on the coordinate origin or spheres following a neutron star via tracking we usually have `sf_origin` and `sf_centroid` being identical. However flow through an apparent horizon would be incorrect. I would suspect that `sf_origin` is the centroid of the previous horizon find result.

--
Ticket URL: https://bitbucket.org/einsteintoolkit/tickets/issues/2889/outflow-uses-incorrect-sf_centroid-to
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.einsteintoolkit.org/pipermail/trac/attachments/20250930/c626c626/attachment.htm>


More information about the Trac mailing list