Stav dette: Continuity equations for general matter: applications in numerical relativity