-
Notifications
You must be signed in to change notification settings - Fork 1
/
FeynOnium.m
60 lines (40 loc) · 1.89 KB
/
FeynOnium.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
(* ::Package:: *)
(* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ *)
(* :Title: FeynOnium *)
(*
This software is covered by the GNU General Public License 3.
Copyright (C) 2015-2023 Vladyslav Shtabovenko
*)
(* :Summary: Tools for calculations in non-relativistic EFTs *)
(* ------------------------------------------------------------------------ *)
$FeynOniumVersion::usage=
"$FeynOniumVersion is the string that represents the version of FeynOnium";
$FeynOniumDirectory::usage=
"$FeynOniumDirectory is the string that represents the full path to the FeynOnium \
directory";
Begin["`Package`"]
End[]
Begin["`FeynOnium`Private`"];
$FeynOniumVersion="1.0.0";
$FeynOniumDirectory =
ToFileName[{$FeynCalcDirectory, "AddOns", "FeynOnium"}];
(* Load the .m files *)
BeginPackage["FeynCalc`"];
FCDeclareHeader/@FileNames[{"*.m"},ToFileName[{$FeynOniumDirectory,"Shared"}]];
FCDeclareHeader/@FileNames[{"*.m"},ToFileName[{$FeynOniumDirectory,"NRQCD"}]];
FCDeclareHeader/@FileNames[{"*.m"},ToFileName[{$FeynOniumDirectory,"Feynman"}]];
Get/@FileNames[{"*.m"},ToFileName[{$FeynOniumDirectory,"Shared"}]];
Get/@FileNames[{"*.m"},ToFileName[{$FeynOniumDirectory,"NRQCD"}]];
Get/@FileNames[{"*.m"},ToFileName[{$FeynOniumDirectory,"Feynman"}]];
EndPackage[]
(* Print startup message *)
If[ $FeynCalcStartupMessages =!= False,
Print[Style["FeynOnium ", "Text", Bold], Style[$FeynOniumVersion <> " loaded.", "Text"]];
Print[ Style["Have a look at the supplied ","Text"],
Style[DisplayForm@ButtonBox["examples.", BaseStyle -> "Hyperlink", ButtonFunction :>
SystemOpen[FileNameJoin[{$FeynOniumDirectory, "Examples"}]],
Evaluator -> Automatic, Method -> "Preemptive"], "Text"],
Style[" If you use FeynOnium in your research, please cite","Text"]];
Print [Style[" \[Bullet] N. Brambilla, H. S. Chung, V. Shtabovenko and A. Vairo, arXiv:2006.15451","Text"]];
];
End[]