Cannot compute the Hodge dual of 1

58 views
Skip to first unread message

Fernando Saldanha

unread,
Aug 25, 2016, 3:04:13 AM8/25/16
to xAct Tensor Computer Algebra
I am learning about the xTerior package with the video 


20 minutes into the video I got in trouble (everything was working well prior to that). 

I ran 

Hodge[metricCyl] @ 1

and got 

*[1]

as expected. However, the next command

ToValues @ ExpandHodgeDual[%, dx[M3], metricCyl]

returned the same thing: *[1]

It should have returned an explicit 3-form as in the video.

Just prior to that the command 

ToValues @ ExpandHodgeDual[%, dx[M3], metricCyl]

had worked fine on an expression like * d[rho]  (where rho stands for the greek letter), returning an explicit 2-form.

Any help will be greatly appreciated.




Alfonso Jacinto García Parrado Gómez Lobo

unread,
Aug 25, 2016, 3:30:30 AM8/25/16
to Fernando Saldanha, xAct Tensor Computer Algebra
Hi,

to fix this problem please go to the line 489 of the file xTerior.m and replace all the code defining ExpandHodgeDual1 (lines 489-495) by the following code:

ExpandHodgeDual1[expr_,(coframe:(Coframe|dx))[mani_?ManifoldQ],met_]:=
expr/.{HoldPattern[Hodge[met][form:Wedge[coframe[mani][_]..]]|form:Hodge[met][coframe[mani][_]]]:>With[{dim=DimOfMetric[met],n=Length[form],inds=Sequence@@@List@@form},
With[{dummies=DummyIn/@ConstantArray[VBundleOfMetric[met],dim-n]},
1/(dim-n)!epsilon[met]@@Join[inds,ChangeIndex/@dummies]Wedge@@(coframe[mani]/@dummies)
]
],HoldPattern[Hodge[met][form_]]:>With[{dim=DimOfMetric[met]},
With[{dummies=DummyIn/@ConstantArray[VBundleOfMetric[met],dim]},
form/(dim)!epsilon[met]@@(ChangeIndex/@dummies)Wedge@@(coframe[mani]/@dummies)
]
]/;(Deg[form]===0)};


If you still experience the problem, please let me know.

Thanks for your interest in xTerior.


Alfonso.



From: xa...@googlegroups.com [xa...@googlegroups.com] on behalf of Fernando Saldanha [fsal...@gmail.com]
Sent: Thursday, August 25, 2016 4:47 AM
To: xAct Tensor Computer Algebra
Subject: [xAct: 1856] Cannot compute the Hodge dual of 1

--
You received this message because you are subscribed to the Google Groups "xAct Tensor Computer Algebra" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xact+uns...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages