FeynCalc / feyncalc

Mathematica package for algebraic calculations in elementary particle physics.
https://feyncalc.github.io
GNU General Public License v3.0
310 stars 87 forks source link

conflict between FeynCalc and FeynRules #32

Closed BenjaminDbb closed 6 years ago

BenjaminDbb commented 6 years ago

When I use them

FR$Parallel = False;
$FeynRulesPath = SetDirectory[$UserBaseDirectory <> "/Applications/FeynRules"];
<< FeynRules`;

(* Not important*)

and

$LoadAddOns = {"FeynHelpers"};
$LoadFeynArts = True;
<< FeynCalc`;
$FAVerbose = 0;

(* Not important*)

I have to call Quit[] to restart the kernel before use the package, otherwise

Symbol *** appears in multiple contexts {FeynCalc`,FeynRules`}; definitions in context FeynCalc` may shadow or be shadowed by other definitions.

I wonder if there exists conflict between FeynCalc 9.2.0 and FeynRules 2.3.32, or FeynArts 3.1 patched in FeynCalc has already patched FeynRules? If patched, how to call it? Thank you

vsht commented 6 years ago

Hi, this is expected, since FeynRules and FeynCalc are not supposed to be loaded on the same kernel!

First you run FeynRules, create your model and export it to FeynArts. Then you restart the kernel, load FeynCalc and patched FeynArts, patch the model and do your calculations. The example files for FeynHelpers follow exactly this strategy. There is no reason to have FeynRules and FeynCalc running simultaneously.