Group Abstract Group Abstract

Message Boards Message Boards

0
|
18 Views
|
0 Replies
|
0 Total Likes
View groups...
Share
Share this post:

Error trying to assign values for a tensor

Posted 10 hours ago

I am trying to assign values for a tensor but receive![ that is neither a list of replacement rules nor a valid dispatch table, \ and so cannot be used for replacing ][1]:

The code (also attach an nb):

A = CTensor[{-qE  CE  e  r[]/(c  (r[]^2 + a^2  Cos[\[Theta][]]^2)), 0,
     0, qE  CE  e  a  r[]  Sin[\[Theta][]]^2/(c  (r[]^2 + 
          a^2  Cos[\[Theta][]]^2))}, {-BL}];

(*Define field strength components*)
(*fieldStrengthRule=MakeRule[F[-\[Mu],-\[Nu]],CovD[-\[Mu]][A[-\[Nu]]]-\
CovD[-\[Nu]][A[-\[Mu]]]];*)

F = CTensor[Array[0 &, {4, 4}], {-BL, -BL}];

F[-\[Mu], -\[Nu]] /. 
    Evaluate[
     MakeRule[F[-\[Mu], -\[Nu]], 
      CovD[-\[Mu]][A[-\[Nu]]] - CovD[-\[Nu]][A[-\[Mu]]]]] // 
   ContractBasis // Simplify // MatrixForm
Attachments:
POSTED BY: Eran Lavi
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard