diff options
author | Simon Rochester <simon.rochester@gmail.com> | 2012-12-20 01:17:26 -0800 |
---|---|---|
committer | Simon Rochester <simon.rochester@gmail.com> | 2012-12-20 01:17:26 -0800 |
commit | 74f44f9cae5ada0dcdb1014100a785cbf604eaa6 (patch) | |
tree | 2592b12980c1da908d67c81400a0bf7a39b361b4 /mathemathica_fwm | |
parent | 0ca3e1a4b9212161d1d3fdaa8752e7cf49861413 (diff) | |
download | Nresonances-74f44f9cae5ada0dcdb1014100a785cbf604eaa6.tar.gz Nresonances-74f44f9cae5ada0dcdb1014100a785cbf604eaa6.zip |
Added contour plots of absorption.
Diffstat (limited to 'mathemathica_fwm')
-rw-r--r-- | mathemathica_fwm/RbXMDSSetup1.nb | 215 |
1 files changed, 165 insertions, 50 deletions
diff --git a/mathemathica_fwm/RbXMDSSetup1.nb b/mathemathica_fwm/RbXMDSSetup1.nb index 58a451b..aae1a2d 100644 --- a/mathemathica_fwm/RbXMDSSetup1.nb +++ b/mathemathica_fwm/RbXMDSSetup1.nb @@ -1692,7 +1692,7 @@ Cell[BoxData[{ RowBox[{"PopulationStyle", "\[Rule]", RowBox[{"PointSize", "[", ".018", "]"}]}]}], "]"}]}], "Input"], -Cell[BoxData[{ +Cell[BoxData[ RowBox[{ RowBox[{"table", "=", RowBox[{"Flatten", "[", @@ -1758,38 +1758,101 @@ Cell[BoxData[{ SuperscriptBox["10", RowBox[{"-", "4"}]]}]}], "}"}]}], "]"}]}], ";", "\[IndentingNewLine]", - RowBox[{ - RowBox[{"{", - RowBox[{"e1m", ",", "e3m", ",", + RowBox[{"absorption", "=", + RowBox[{"dE", "[", + RowBox[{ + RowBox[{ + SubscriptBox["\[CapitalOmega]", + RowBox[{"2", ",", "p"}]], "/.", "params"}], ",", + RowBox[{"points", "[", + RowBox[{"[", + RowBox[{"2", ",", "2", ",", "1"}], "]"}], "]"}]}], "]"}]}], ";", + "\[IndentingNewLine]", + RowBox[{"slope", "=", + RowBox[{ + RowBox[{"(", RowBox[{ - RowBox[{"Subtract", "@@", - RowBox[{"(", + RowBox[{"d\[Phi]", "[", + RowBox[{ RowBox[{ - RowBox[{ - RowBox[{"d\[Phi]", "[", - RowBox[{ - RowBox[{ - SubscriptBox["\[CapitalOmega]", - RowBox[{"2", ",", "p"}]], "/.", "params"}], ",", "#"}], - "]"}], "&"}], "/@", - RowBox[{"points", "[", - RowBox[{"[", - RowBox[{"All", ",", "2", ",", "1"}], "]"}], "]"}]}], ")"}]}], - "/", - RowBox[{"Subtract", "@@", - RowBox[{"points", "[", - RowBox[{"[", - RowBox[{"All", ",", "1"}], "]"}], "]"}]}]}]}], "}"}], "/.", - "params"}]}], ",", + SubscriptBox["\[CapitalOmega]", + RowBox[{"2", ",", "p"}]], "/.", "params"}], ",", + RowBox[{"points", "[", + RowBox[{"[", + RowBox[{"2", ",", "2", ",", "1"}], "]"}], "]"}]}], "]"}], "-", + RowBox[{"d\[Phi]", "[", + RowBox[{ + RowBox[{ + SubscriptBox["\[CapitalOmega]", + RowBox[{"2", ",", "p"}]], "/.", "params"}], ",", + RowBox[{"points", "[", + RowBox[{"[", + RowBox[{"1", ",", "2", ",", "1"}], "]"}], "]"}]}], "]"}]}], + ")"}], "/", + RowBox[{"(", + RowBox[{ + RowBox[{"points", "[", + RowBox[{"[", + RowBox[{"2", ",", "1"}], "]"}], "]"}], "-", + RowBox[{"points", "[", + RowBox[{"[", + RowBox[{"1", ",", "1"}], "]"}], "]"}]}], ")"}]}]}], ";", + "\[IndentingNewLine]", + RowBox[{ + RowBox[{"{", + RowBox[{"e1m", ",", "e3m", ",", "absorption", ",", "slope"}], "}"}], + "/.", "params"}]}], ",", RowBox[{"{", RowBox[{"e1m", ",", RowBox[{"-", "1."}], ",", "3.", ",", ".2"}], "}"}], ",", RowBox[{"{", RowBox[{"e3m", ",", RowBox[{"-", "1."}], ",", "3.", ",", ".2"}], "}"}]}], "]"}], ",", - "1"}], "]"}]}], ";"}], "\n", + "1"}], "]"}]}], ";"}]], "Input"], + +Cell["\<\ +Plot fractional absorption of the electric field per absorption length.\ +\>", "Text"], + +Cell[BoxData[ RowBox[{"ListContourPlot", "[", - RowBox[{"table", ",", + RowBox[{ + RowBox[{"table", "[", + RowBox[{"[", + RowBox[{"All", ",", + RowBox[{"{", + RowBox[{"1", ",", "2", ",", "3"}], "}"}]}], "]"}], "]"}], ",", + RowBox[{"PlotRange", "\[Rule]", "All"}], ",", + RowBox[{"ContourLabels", "\[Rule]", "All"}], ",", + RowBox[{"FrameLabel", "\[Rule]", + RowBox[{"{", + RowBox[{ + "\"\<log(\!\(\*SubscriptBox[\(\[CapitalOmega]\), \(1, m\)]\) [Mrad/sec])\ +\>\"", ",", + "\"\<log(\!\(\*SubscriptBox[\(\[CapitalOmega]\), \(3, m\)]\) \ +[Mrad/sec])\>\""}], "}"}]}], ",", + RowBox[{"BaseStyle", "\[Rule]", "14"}], ",", + RowBox[{"Contours", "\[Rule]", + RowBox[{"Join", "[", + RowBox[{ + RowBox[{"{", + RowBox[{".001", ",", ".01"}], "}"}], ",", + RowBox[{"Range", "[", + RowBox[{".1", ",", "1", ",", ".1"}], "]"}]}], "]"}]}]}], + "]"}]], "Input"], + +Cell["\<\ +Plot slope of the phase shift in rad/(Mrad/s) per absorption length\ +\>", "Text"], + +Cell[BoxData[ + RowBox[{"ListContourPlot", "[", + RowBox[{ + RowBox[{"table", "[", + RowBox[{"[", + RowBox[{"All", ",", + RowBox[{"{", + RowBox[{"1", ",", "2", ",", "4"}], "}"}]}], "]"}], "]"}], ",", RowBox[{"PlotRange", "\[Rule]", "All"}], ",", RowBox[{"ContourLabels", "\[Rule]", "All"}], ",", RowBox[{"FrameLabel", "\[Rule]", @@ -1811,7 +1874,7 @@ Cell[BoxData[{ RowBox[{ RowBox[{"-", "4."}], ",", RowBox[{"-", "2."}], ",", "1"}], "]"}]}]}], "]"}]}]}], - "]"}]}], "Input"], + "]"}]], "Input"], Cell[BoxData[ RowBox[{ @@ -1879,29 +1942,50 @@ Cell[BoxData[ SuperscriptBox["10", RowBox[{"-", "4"}]]}]}], "}"}]}], "]"}]}], ";", "\[IndentingNewLine]", - RowBox[{ - RowBox[{"{", - RowBox[{"e1m", ",", "e3m", ",", + RowBox[{"absorption", "=", + RowBox[{"dE", "[", + RowBox[{ RowBox[{ - RowBox[{"Subtract", "@@", - RowBox[{"(", + SubscriptBox["\[CapitalOmega]", + RowBox[{"2", ",", "p"}]], "/.", "params"}], ",", + RowBox[{"points", "[", + RowBox[{"[", + RowBox[{"2", ",", "2", ",", "1"}], "]"}], "]"}]}], "]"}]}], ";", + "\[IndentingNewLine]", + RowBox[{"slope", "=", + RowBox[{ + RowBox[{"(", + RowBox[{ + RowBox[{"d\[Phi]", "[", + RowBox[{ + RowBox[{ + SubscriptBox["\[CapitalOmega]", + RowBox[{"2", ",", "p"}]], "/.", "params"}], ",", + RowBox[{"points", "[", + RowBox[{"[", + RowBox[{"2", ",", "2", ",", "1"}], "]"}], "]"}]}], "]"}], "-", + RowBox[{"d\[Phi]", "[", + RowBox[{ RowBox[{ - RowBox[{ - RowBox[{"d\[Phi]", "[", - RowBox[{ - RowBox[{ - SubscriptBox["\[CapitalOmega]", - RowBox[{"2", ",", "p"}]], "/.", "params"}], ",", "#"}], - "]"}], "&"}], "/@", - RowBox[{"points", "[", - RowBox[{"[", - RowBox[{"All", ",", "2", ",", "1"}], "]"}], "]"}]}], ")"}]}], - "/", - RowBox[{"Subtract", "@@", - RowBox[{"points", "[", - RowBox[{"[", - RowBox[{"All", ",", "1"}], "]"}], "]"}]}]}]}], "}"}], "/.", - "params"}]}], ",", + SubscriptBox["\[CapitalOmega]", + RowBox[{"2", ",", "p"}]], "/.", "params"}], ",", + RowBox[{"points", "[", + RowBox[{"[", + RowBox[{"1", ",", "2", ",", "1"}], "]"}], "]"}]}], "]"}]}], + ")"}], "/", + RowBox[{"(", + RowBox[{ + RowBox[{"points", "[", + RowBox[{"[", + RowBox[{"2", ",", "1"}], "]"}], "]"}], "-", + RowBox[{"points", "[", + RowBox[{"[", + RowBox[{"1", ",", "1"}], "]"}], "]"}]}], ")"}]}]}], ";", + "\[IndentingNewLine]", + RowBox[{ + RowBox[{"{", + RowBox[{"e1m", ",", "e3m", ",", "absorption", ",", "slope"}], "}"}], + "/.", "params"}]}], ",", RowBox[{"{", RowBox[{"e1m", ",", RowBox[{"-", "1."}], ",", "3.", ",", ".2"}], "}"}], ",", @@ -1912,7 +1996,39 @@ Cell[BoxData[ Cell[BoxData[ RowBox[{"ListContourPlot", "[", - RowBox[{"table", ",", + RowBox[{ + RowBox[{"table", "[", + RowBox[{"[", + RowBox[{"All", ",", + RowBox[{"{", + RowBox[{"1", ",", "2", ",", "3"}], "}"}]}], "]"}], "]"}], ",", + RowBox[{"PlotRange", "\[Rule]", "All"}], ",", + RowBox[{"ContourLabels", "\[Rule]", "All"}], ",", + RowBox[{"FrameLabel", "\[Rule]", + RowBox[{"{", + RowBox[{ + "\"\<log(\!\(\*SubscriptBox[\(\[CapitalOmega]\), \(1, m\)]\) [Mrad/sec])\ +\>\"", ",", + "\"\<log(\!\(\*SubscriptBox[\(\[CapitalOmega]\), \(3, m\)]\) \ +[Mrad/sec])\>\""}], "}"}]}], ",", + RowBox[{"BaseStyle", "\[Rule]", "14"}], ",", + RowBox[{"Contours", "\[Rule]", + RowBox[{"Join", "[", + RowBox[{ + RowBox[{"{", + RowBox[{".001", ",", ".01"}], "}"}], ",", + RowBox[{"Range", "[", + RowBox[{".1", ",", "1", ",", ".1"}], "]"}]}], "]"}]}]}], + "]"}]], "Input"], + +Cell[BoxData[ + RowBox[{"ListContourPlot", "[", + RowBox[{ + RowBox[{"table", "[", + RowBox[{"[", + RowBox[{"All", ",", + RowBox[{"{", + RowBox[{"1", ",", "2", ",", "4"}], "}"}]}], "]"}], "]"}], ",", RowBox[{"PlotRange", "\[Rule]", "All"}], ",", RowBox[{"ContourLabels", "\[Rule]", "All"}], ",", RowBox[{"FrameLabel", "\[Rule]", @@ -2963,8 +3079,7 @@ Cell[BoxData[{ RowBox[{ SubscriptBox["\[CapitalOmega]", RowBox[{"j_", ",", "m"}]], "[", "z", "]"}], "\[Rule]", - RowBox[{"Em", "[", "j", "]"}]}]}], "}"}]}], "/.", "labelrep"}], "/.", - + RowBox[{"Em", "[", "j", "]"}]}]}], "}"}]}], "/.", "labelrep"}], "/.", RowBox[{ RowBox[{"Complex", "[", RowBox[{"0", ",", "a_"}], "]"}], "\[Rule]", @@ -3079,7 +3194,7 @@ Cell[BoxData[{ 3.56319258550938*^9}}] }, Open ]] }, -WindowSize->{838, 902}, +WindowSize->{998, 902}, WindowMargins->{{-2, Automatic}, {Automatic, 0}}, PrivateNotebookOptions->{"FileOutlineCache"->False}, ShowSelection->True, |