⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mathematicsoftsunamis-source.nb

📁 simulate Tsunamis using mathematica
💻 NB
📖 第 1 页 / 共 4 页
字号:
          
          Subscript[$CellContext`\[Lambda], $CellContext`min], 
          Subscript[$CellContext`\[Lambda], $CellContext`max]}, PlotRange -> 
         All, PlotPoints -> $CellContext`nxy, Mesh -> None, MaxRecursion -> 1,
          ContourShading -> None, ContourStyle -> Opacity[0.15], 
         Contours -> {-3500, -3000, -2500, -2000, -1500, -1000, -500}]; \
$CellContext`swe = {D[
            $CellContext`h[$CellContext`\[Lambda], $CellContext`\[Phi], \
$CellContext`t], $CellContext`t] + (
            D[$CellContext`u[$CellContext`\[Lambda], $CellContext`\[Phi], \
$CellContext`t] ($CellContext`h[$CellContext`\[Lambda], $CellContext`\[Phi], \
$CellContext`t] - $CellContext`b[$CellContext`\[Lambda], \
$CellContext`\[Phi]]), $CellContext`\[Lambda]] + 
            D[($CellContext`v[$CellContext`\[Lambda], $CellContext`\[Phi], \
$CellContext`t] ($CellContext`h[$CellContext`\[Lambda], $CellContext`\[Phi], \
$CellContext`t] - $CellContext`b[$CellContext`\[Lambda], \
$CellContext`\[Phi]])) 
              Cos[$CellContext`\[Phi]], $CellContext`\[Phi]])/($CellContext`R 
           Cos[$CellContext`\[Phi]]) == 0, D[
             $CellContext`u[$CellContext`\[Lambda], $CellContext`\[Phi], \
$CellContext`t], $CellContext`\[Phi]] ($CellContext`v[$CellContext`\[Lambda], \
$CellContext`\[Phi], $CellContext`t]/$CellContext`R) + $CellContext`g (D[
              $CellContext`h[$CellContext`\[Lambda], $CellContext`\[Phi], \
$CellContext`t], $CellContext`\[Lambda]]/($CellContext`R 
            Cos[$CellContext`\[Phi]])) + D[
            $CellContext`u[$CellContext`\[Lambda], $CellContext`\[Phi], \
$CellContext`t], $CellContext`t] + $CellContext`u[$CellContext`\[Lambda], \
$CellContext`\[Phi], $CellContext`t] (D[
              $CellContext`u[$CellContext`\[Lambda], $CellContext`\[Phi], \
$CellContext`t], $CellContext`\[Lambda]]/($CellContext`R 
            Cos[$CellContext`\[Phi]])) == $CellContext`f \
$CellContext`v[$CellContext`\[Lambda], $CellContext`\[Phi], $CellContext`t], 
         D[
             $CellContext`v[$CellContext`\[Lambda], $CellContext`\[Phi], \
$CellContext`t], $CellContext`\[Phi]] ($CellContext`v[$CellContext`\[Lambda], \
$CellContext`\[Phi], $CellContext`t]/$CellContext`R) + $CellContext`g (D[
              $CellContext`h[$CellContext`\[Lambda], $CellContext`\[Phi], \
$CellContext`t], $CellContext`\[Phi]]/$CellContext`R) + D[
            $CellContext`v[$CellContext`\[Lambda], $CellContext`\[Phi], \
$CellContext`t], $CellContext`t] + $CellContext`u[$CellContext`\[Lambda], \
$CellContext`\[Phi], $CellContext`t] (D[
              $CellContext`v[$CellContext`\[Lambda], $CellContext`\[Phi], \
$CellContext`t], $CellContext`\[Lambda]]/($CellContext`R 
            Cos[$CellContext`\[Phi]])) == (-$CellContext`f) \
$CellContext`u[$CellContext`\[Lambda], $CellContext`\[Phi], $CellContext`t]}; 
      Block[{$CellContext`R = 6378000, $CellContext`\[Omega] = 
         2 (Pi/(24 3600)), $CellContext`f = (2 $CellContext`\[Omega]) 
          Sin[$CellContext`\[Phi]], $CellContext`g = 9.8, $CellContext`s = 
         0.95}, $CellContext`sol = First[
          ReplaceAll[$CellContext`h, 
           
           NDSolve[{$CellContext`swe, $CellContext`h[$CellContext`\[Lambda], \
$CellContext`\[Phi], 0] == E^((-2000) $CellContext`ldist[{
                   Subscript[$CellContext`\[Lambda], $CellContext`e], 
                   Subscript[$CellContext`\[Phi], 1]}, {
                   Subscript[$CellContext`\[Lambda], $CellContext`e], 
                   
                   Subscript[$CellContext`\[Phi], 
                    2]}][{$CellContext`\[Lambda], $CellContext`\[Phi]}]^2), \
$CellContext`u[$CellContext`\[Lambda], $CellContext`\[Phi], 0] == 
             0, $CellContext`v[$CellContext`\[Lambda], $CellContext`\[Phi], 
               0] == 0, $CellContext`h[$CellContext`\[Lambda], 
               
               Subscript[$CellContext`\[Phi], $CellContext`min], \
$CellContext`t] == $CellContext`h[$CellContext`\[Lambda], 
               
               Subscript[$CellContext`\[Phi], $CellContext`max], \
$CellContext`t], $CellContext`h[
               
               Subscript[$CellContext`\[Lambda], $CellContext`min], \
$CellContext`\[Phi], $CellContext`t] == $CellContext`h[
               
               Subscript[$CellContext`\[Lambda], $CellContext`max], \
$CellContext`\[Phi], $CellContext`t]}, $CellContext`h, \
{$CellContext`\[Lambda], 
             Subscript[$CellContext`\[Lambda], $CellContext`min], 
             
             Subscript[$CellContext`\[Lambda], $CellContext`max]}, \
{$CellContext`\[Phi], 
             Subscript[$CellContext`\[Phi], $CellContext`min], 
             
             Subscript[$CellContext`\[Phi], $CellContext`max]}, \
{$CellContext`t, 0, $CellContext`T}, 
            DependentVariables -> {$CellContext`h, $CellContext`u, \
$CellContext`v}, 
            Method -> {
             "MethodOfLines", 
              "SpatialDiscretization" -> {
               "TensorProductGrid", 
                "MinPoints" -> {$CellContext`nxy, $CellContext`nxy}, 
                "MaxPoints" -> {$CellContext`nxy, $CellContext`nxy}, 
                "DifferenceOrder" -> "Pseudospectral"}}]]]]; Null); 
     Typeset`initDone$$ = True),
    SynchronousInitialization->False,
    UnsavedVariables:>{Typeset`initDone$$},
    UntrackedVariables:>{Typeset`size$$}], "Manipulate",
   Deployed->True,
   StripOnInput->False],
  Manipulate`InterpretManipulate[1]]], "Output",
 CellID->640336563],

Cell[CellGroupData[{

Cell["THIS NOTEBOOK IS THE SOURCE CODE FROM", "Text",
 CellFrame->{{0, 0}, {0, 1}},
 CellMargins->{{48, 10}, {4, 28}},
 CellGroupingRules->{"SectionGrouping", 25},
 CellFrameMargins->{{48, 48}, {6, 5}},
 CellFrameColor->RGBColor[0.691905, 0.790311, 0.300252],
 FontFamily->"Helvetica",
 FontSize->10,
 FontWeight->"Bold",
 FontColor->RGBColor[0.691905, 0.790311, 0.300252]],

Cell[TextData[{
 "\"",
 ButtonBox["Mathematics of Tsunamis",
  BaseStyle->"Hyperlink",
  ButtonData->{
    URL["http://demonstrations.wolfram.com/MathematicsOfTsunamis/"], None},
  ButtonNote->"http://demonstrations.wolfram.com/MathematicsOfTsunamis/"],
 "\"",
 " from ",
 ButtonBox["The Wolfram Demonstrations Project",
  BaseStyle->"Hyperlink",
  ButtonData->{
    URL["http://demonstrations.wolfram.com/"], None},
  ButtonNote->"http://demonstrations.wolfram.com/"],
 "\[ParagraphSeparator]\[NonBreakingSpace]",
 ButtonBox["http://demonstrations.wolfram.com/MathematicsOfTsunamis/",
  BaseStyle->"Hyperlink",
  ButtonData->{
    URL["http://demonstrations.wolfram.com/MathematicsOfTsunamis/"], None},
  ButtonNote->"http://demonstrations.wolfram.com/MathematicsOfTsunamis/"]
}], "Text",
 CellMargins->{{48, Inherited}, {0, Inherited}},
 FontFamily->"Verdana",
 FontSize->10,
 FontColor->GrayLevel[0.5]],

Cell[" ", "Text",
 CellFrame->{{0, 0}, {0, 1}},
 CellMargins->{{48, 10}, {4, 28}},
 CellGroupingRules->{"SectionGrouping", 25},
 CellFrameMargins->{{48, 48}, {6, 5}},
 CellFrameColor->RGBColor[0.691905, 0.790311, 0.300252],
 FontFamily->"Helvetica",
 FontSize->10,
 FontWeight->"Bold",
 FontColor->RGBColor[0.691905, 0.790311, 0.300252]],

Cell[CellGroupData[{

Cell[TextData[{
 "Contributed by: ",
 ButtonBox["Yu-Sung Chang",
  BaseStyle->"Hyperlink",
  ButtonData->{
    URL["http://demonstrations.wolfram.com/author.html?author=Yu-Sung+Chang"],
     None},
  ButtonNote->
   "http://demonstrations.wolfram.com/author.html?author=Yu-Sung+Chang"]
}], "Text",
 CellDingbat->"\[FilledSmallSquare]",
 CellMargins->{{66, 48}, {2, 4}},
 FontFamily->"Verdana",
 FontSize->10,
 FontColor->GrayLevel[0.6]],

Cell[TextData[{
 "After work by: ",
 ButtonBox["Rob Knapp",
  BaseStyle->"Hyperlink",
  ButtonData->{
    URL["http://demonstrations.wolfram.com/author.html?author=Rob+Knapp"], 
    None},
  ButtonNote->
   "http://demonstrations.wolfram.com/author.html?author=Rob+Knapp"],
 " and ",
 ButtonBox["Roger Germundsson",
  BaseStyle->"Hyperlink",
  ButtonData->{
    URL["http://demonstrations.wolfram.com/author.html?author=Roger+\
Germundsson"], None},
  ButtonNote->
   "http://demonstrations.wolfram.com/author.html?author=Roger+Germundsson"]
}], "Text",
 CellDingbat->"\[FilledSmallSquare]",
 CellMargins->{{66, 48}, {2, 4}},
 FontFamily->"Verdana",
 FontSize->10,
 FontColor->GrayLevel[0.6],
 CellID->55604669]
}, Open  ]],

Cell[CellGroupData[{

Cell[TextData[{
 "A full-function Wolfram ",
 StyleBox["Mathematica",
  FontSlant->"Italic"],
 " 6 system is required to edit or run this notebook.\[IndentingNewLine](",
 StyleBox["Mathematica Player",
  FontSlant->"Italic"],
 " runs only Demonstrations published on this site.)\n",
 StyleBox[ButtonBox["GET WOLFRAM MATHEMATICA 6 \[RightGuillemet]",
  BaseStyle->"Hyperlink",
  ButtonData->{
    URL["http://www.wolfram.com/products/mathematica/"], None},
  ButtonNote->"http://www.wolfram.com/products/mathematica/"],
  FontFamily->"Helvetica",
  FontWeight->"Bold",
  FontSlant->"Italic",
  FontColor->RGBColor[1, 0.42, 0]]
}], "Text",
 CellFrame->True,
 CellMargins->{{48, 68}, {8, 28}},
 CellFrameMargins->12,
 CellFrameColor->RGBColor[0.865507, 0.90634, 0.680751],
 CellChangeTimes->{3.3750111182355957`*^9},
 ParagraphSpacing->{1., 1.},
 FontFamily->"Verdana",
 FontSize->10,
 FontColor->GrayLevel[0.411765],
 Background->RGBColor[0.986023, 0.991363, 0.969818]],

Cell[TextData[{
 "\[Copyright] ",
 StyleBox[ButtonBox["The Wolfram Demonstrations Project & Contributors",
  BaseStyle->"Hyperlink",
  ButtonData->{
    URL["http://demonstrations.wolfram.com/"], None},
  ButtonNote->"http://demonstrations.wolfram.com/"],
  FontColor->GrayLevel[0.6]],
 "\[ThickSpace]\[ThickSpace]\[ThickSpace]|\[ThickSpace]\[ThickSpace]\
\[ThickSpace]",
 StyleBox[ButtonBox["Terms of Use",
  BaseStyle->"Hyperlink",
  ButtonData->{
    URL["http://demonstrations.wolfram.com/termsofuse.html"], None},
  ButtonNote->"http://demonstrations.wolfram.com/termsofuse.html"],
  FontColor->GrayLevel[0.6]],
 "\[ThickSpace]\[ThickSpace]\[ThickSpace]|\[ThickSpace]\[ThickSpace]\
\[ThickSpace]",
 StyleBox[ButtonBox["Make a new version of this Demonstration \
\[RightGuillemet]",
  BaseStyle->"Hyperlink",
  ButtonData->{
    URL["http://demonstrations.wolfram.com/participate/upload.jsp?id=\
MathematicsOfTsunamis"], None},
  ButtonNote->None],
  FontColor->GrayLevel[0.6]]
}], "Text",
 CellFrame->{{0, 0}, {0, 0.5}},
 CellMargins->{{48, 10}, {20, 50}},
 CellFrameMargins->{{6, 0}, {6, 6}},
 CellFrameColor->GrayLevel[0.6],
 FontFamily->"Verdana",
 FontSize->9,
 FontColor->GrayLevel[0.6]]
}, Open  ]]
}, Open  ]]
},
Editable->True,
Saveable->False,
ScreenStyleEnvironment->"Working",
WindowSize->{710, 650},
WindowMargins->{{Inherited, Inherited}, {Inherited, 0}},
WindowElements->{
 "StatusArea", "MemoryMonitor", "MagnificationPopUp", "VerticalScrollBar", 
  "MenuBar"},
WindowTitle->"Mathematics of Tsunamis - Source",
DockedCells->{},
CellContext->Notebook,
FrontEndVersion->"6.0 for Microsoft Windows (32-bit) (June 19, 2007)",
StyleDefinitions->"Default.nb"
]
(* End of Notebook Content *)

(* Internal cache information *)
(*CellTagsOutline
CellTagsIndex->{}
*)
(*CellTagsIndex
CellTagsIndex->{}
*)
(*NotebookFileOutline
Notebook[{
Cell[CellGroupData[{
Cell[590, 23, 215, 4, 70, "Section"],
Cell[808, 29, 29982, 720, 70, "Input"]
}, Open  ]],
Cell[30805, 752, 15734, 307, 70, "Output",
 CellID->640336563],
Cell[CellGroupData[{
Cell[46564, 1063, 373, 9, 70, "Text",
 CellGroupingRules->{"SectionGrouping", 25}],
Cell[46940, 1074, 905, 24, 70, "Text"],
Cell[47848, 1100, 337, 9, 70, "Text",
 CellGroupingRules->{"SectionGrouping", 25}],
Cell[CellGroupData[{
Cell[48210, 1113, 436, 14, 70, "Text"],
Cell[48649, 1129, 711, 23, 70, "Text",
 CellID->55604669]
}, Open  ]],
Cell[CellGroupData[{
Cell[49397, 1157, 967, 27, 70, "Text"],
Cell[50367, 1186, 1197, 33, 70, "Text"]
}, Open  ]]
}, Open  ]]
}
]
*)

(* End of internal cache information *)
(* NotebookSignature 8S4QUGgAnBrMdD07j4Zz6IkT *)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -