Modified TOV Equations in fR gravity (using xAct)

47 views
Skip to first unread message

varun naudiyal

unread,
Jul 30, 2025, 1:55:48 AMJul 30
to xAct Tensor Computer Algebra

Hello guys,

I'm trying to derive the modified Tolman-Oppenheimer-Volkoff (TOV) equations for a general theory in Mathematica and I'm running into some issues with my workflow.

First, I use a VarAction function to get the general field equations. Then, in a separate notebook, I define a spherically symmetric metric using Cmetric and manually copy over the field equations from the first step. I have to do this because I can't find a way to specify metric components in the first notebook after deriving the general equations.

This two-notebook process is cumbersome and produces a very messy, unstructured expression for the final equations that is difficult to parse. I have to manually sort everything out and derive the end modified TOV equations. T~T please help 

I have three main questions:

  1. How can I better structure or simplify the messy final output?

  2. Is there a way to integrate this entire process into a single notebook?

  3. How can I proceed further to derive the modified TOV in mathematica (and not manually as I'm doing rn)?

Any advice on how to improve this unholy mess would be greatly appreciated. 

TOV computations.nb
Variation_of_Action.nb
Reply all
Reply to author
Forward
0 new messages