# FeynArts not working properly

So I have installed all FeynArts folders (from 3.5 to 3.7) with FeynCalc 8.0.1., and none of it is working properly :\

First I load the path to specific FeynArts package (3.5 for instance), then, by:

<< HighEnergyPhysicsFeynCalc;


I load FeynCalc, and he says

Loading FeynCalc from C:\Users\*****\AppData\Roaming\Mathematica\Applications\HighEnergyPhysics
FeynCalc 8.1.0 For help, type ?FeynCalc, open FeynCalcRef8.nb or visit www.feyncalc.org
FeynArts 3.5 patched for use with FeynCalc


So everything seems nice, right? Wrong!

I even load FeynArts package, and no errors. But when I want to initialize the proper model I get:

In[9]:= InitializeModel[SM]

During evaluation of In[9]:=

$$TraditionalForm\\(-\(TraditionalForm\mom_$$\^$$TraditionalForm\\(TraditionalForm\\(Pattern[\(\(mu___, _$$\)]\)\)\)\)\)
. >>

During evaluation of In[9]:= Pattern::patvar: First element in pattern Pattern[b_,_] is not a valid pattern name. >>

During evaluation of In[9]:= Pattern::patvar: First element in pattern Pattern[b_,_] is not a valid pattern name. >>

Out[9]= $Aborted  And I can't do anything! I can plot topology, but I can't insert fields. I've been doing everything by the book :\ What seems to be wrong? :\ - Could you described exactly what you did during installation? Your description "installed all FeynArts folders (from 3.5 to 3.7) with FeynCalc 8.0.1" sounds weird to me. Anyway, Rolf Mertig who has been working on this package is a regular visitor here, so I assume he'll drop in once he sees this question. – Sjoerd C. de Vries Jul 6 '12 at 9:55 Well I downloaded the files, FeynArts from here: feynarts.de, and FeynCalc from here: feyncalc.org/download/index.html, and I put them in my C:\Users*****\AppData\Roaming\Mathematica\Applications folder. FeynArts inside FeynCalc folder... I have a feeling that FeynCalc is in collision with FeynArts package :\ – dingo_d Jul 6 '12 at 10:00 Actually I did not work on FeynArts, but FeynCalc. Frederik Orellana, the other mainainer of FeynCalc is working on a better integration of a newer FeynArts. I will send him an email right now.And yes, there is some type of trouble if you install the packages independently, this is why FeynArts has to be patched before it can be used together with FeynCalc. However, if you are in a hurry you can use each package in a separate Mathematica run. – Rolf Mertig Jul 6 '12 at 10:53 @dingo_d Of course, you always able to associate different MathKernel process with different Notebooks in the same Mathematica run (see the Evaluation :: Notebook's kernel menu). As I remember, it is even possible to set separate kernels for separate Cells in one Notebook through the Evaluator option of Cell. – Alexey Popkov Jul 6 '12 at 14:11 If you use this package a lot, you can consider posting about it here, for more exposure: meta.mathematica.stackexchange.com/questions/428/… – Szabolcs Jul 9 '12 at 10:46 ## 1 Answer I've just uploaded a new version which again should support loading FeynArts, so that FeynCalc and FeynArts can be used from the same session - which I personally find very convenient. See http://www.feyncalc.org/download/ and http://www.feyncalc.org/cgi-bin/diary.pl FeynArts-3.7 is bundled with the release, so you can simply load FeynCalc with $LoadPhi = True;
<< HighEnergyPhysicsFeynCalc;


The first time you do this, FeynArts will be patched to avoid name clashes etc. After that you can in principle load FeynCalc+FeynArts without loading PHI, but then you should manually do

SetOptions[FourVector, FeynCalcInternal -> False];


before

InitializeModel[SM]


Otherwise FeynArts will complain and not load correctly

because of

FourVector /: -FourVector[mom_, mu___] := FourVector[Expand[-mom], mu]


in "Lorentz.gen".

-
Thanks! And welcome to Mathematica.SE! –  Sjoerd C. de Vries Jul 7 '12 at 15:52
Thank you very much ^^ This will help immensely :) –  dingo_d Jul 7 '12 at 21:48
Oh, and I've tried it, and it works perfectly :) I am very grateful :) –  dingo_d Jul 8 '12 at 6:38
I also want to say Thank you! I am currently trying to start using FeynCalc for some Amplitudes... and well, wow, it is really difficult to get started. I don't even know what I will do if I have to use our Lagrangian, but well, I'll figure it out :) But if I also had had to fix that problem above, it would take some more days for me to get finally started. So thank you all, for providing us with such great support!!! –  user4632 Nov 13 '12 at 11:45
@MlleHaberlienzer You can find some simple lagrangians in Lagrangian.m (feyncalc.org/FeynCalcBook/Lagrangian) and with FeynRule (feyncalc.org/FeynCalcBook/FeynRule) you can derive Feynman rules. –  Rolf Mertig Nov 13 '12 at 12:15