#1152: Add option to compute center of mass to hydro_analysis and lots of smaller changes ------------------------------------+--------------------------------------- Reporter: rhaas | Owner: Type: enhancement | Status: review Priority: minor | Milestone: Component: EinsteinToolkit thorn | Version: Resolution: | Keywords: Hydro_Analysis ------------------------------------+---------------------------------------
Comment (by eschnett):
The centre of mass is not {{{rho x^i / M}}}, but rather {{{sqrt(det(g_ij)) rho x^i / M}}}, where {{{M = sqrt(det(g_ij)) rho}}} (integral signs omitted).
I don't see how myrho is defined in patch 0006, and it's not currently defined in Hydro_Analysis either. Maybe myrho = rho sqrt(g)?