PageRenderTime 27ms CodeModel.GetById 33ms RepoModel.GetById 0ms app.codeStats 0ms

/gallery/gallery/apps/fvmbook/chap7/advinflow/README.html

https://github.com/clawpack/clawpack.github.com
HTML | 138 lines | 127 code | 10 blank | 1 comment | 0 complexity | 012e08c4d41b1f9f7b4fd0ae3a4404a8 MD5 | raw file
  1. <!DOCTYPE html>
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta charset="utf-8" />
  5. <title>Advection with inflow boundary conditions. &#8212; Clawpack 5.8.x documentation</title>
  6. <link rel="stylesheet" href="../../../../../_static/flasky.css" type="text/css" />
  7. <link rel="stylesheet" href="../../../../../_static/pygments.css" type="text/css" />
  8. <link rel="stylesheet" href="../../../../../_static/base.css" type="text/css" />
  9. <link rel="stylesheet" href="../../../../../_static/layout.css" type="text/css" />
  10. <link rel="stylesheet" type="text/css" href="../../../../../_static/graphviz.css" />
  11. <script id="documentation_options" data-url_root="../../../../../" src="../../../../../_static/documentation_options.js"></script>
  12. <script src="../../../../../_static/jquery.js"></script>
  13. <script src="../../../../../_static/underscore.js"></script>
  14. <script src="../../../../../_static/doctools.js"></script>
  15. <script src="../../../../../_static/language_data.js"></script>
  16. <script async="async" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
  17. <link rel="shortcut icon" href="../../../../../_static/clawicon.ico"/>
  18. <link rel="index" title="Index" href="../../../../../genindex.html" />
  19. <link rel="search" title="Search" href="../../../../../search.html" />
  20. </head><body>
  21. <div id="main-wrapper" class="sphinx">
  22. <div id="header-wrapper">
  23. <section id="header">
  24. <!-- <h1><a href="http://clawpack.org/">Clawpack</a></h1> -->
  25. <h1><a href="http://clawpack.org/">Clawpack-5</a></h1>
  26. <nav>
  27. <ul>
  28. <li>
  29. <a href="http://clawpack.org/contents.html">Docs</a>
  30. </li>
  31. <li>
  32. <a href="http://clawpack.org/installing.html">Install</a>
  33. </li>
  34. <li>
  35. <a class="" href="../../../../../index.html">Gallery</a>
  36. </li>
  37. <li>
  38. <a href="http://clawpack.org/about.html">Citation</a>
  39. </li>
  40. <li>
  41. <a class="active" href="http://github.com/clawpack">Github</a>
  42. </li>
  43. <li>
  44. <a href="http://clawpack.org/community.html">Community</a>
  45. </li>
  46. <li>
  47. <a href="http://clawpack.org/developers.html">Contribute</a>
  48. </li>
  49. </ul>
  50. </nav>
  51. </section>
  52. <div class="decoration"></div>
  53. </div>
  54. <div class="related" role="navigation" aria-label="related navigation">
  55. <h3>Navigation</h3>
  56. <ul>
  57. <li class="right" style="margin-right: 10px">
  58. <a href="../../../../../genindex.html" title="General Index"
  59. accesskey="I">index</a></li>
  60. <li class="right" >
  61. <a href="../../../../../py-modindex.html" title="Python Module Index"
  62. >modules</a> |</li>
  63. <li class="nav-item nav-item-0"><a href="../../../../../index.html">Clawpack 5.8.x documentation</a> &#187;</li>
  64. </ul>
  65. </div>
  66. <div class="document">
  67. <div class="documentwrapper">
  68. <div class="bodywrapper">
  69. <div class="body" role="main">
  70. <div class="section" id="advection-with-inflow-boundary-conditions">
  71. <span id="fvmbook-chap7-advinflow"></span><h1>Advection with inflow boundary conditions.<a class="headerlink" href="#advection-with-inflow-boundary-conditions" title="Permalink to this headline">ΒΆ</a></h1>
  72. <p>Inflow boundary condition <span class="math notranslate nohighlight">\(u(0,t) = g(t)\)</span> at <span class="math notranslate nohighlight">\(x=0\)</span>
  73. are specified by the user in the routines <cite>g.f</cite> and
  74. <cite>bc1.f</cite> by setting the ghost cells at the left edge to:</p>
  75. <p><span class="math notranslate nohighlight">\(Q_0^n = g(t + \Delta x/2u)\)</span></p>
  76. <p><span class="math notranslate nohighlight">\(Q_{-1}^n = g(t + 3\Delta x/2u)\)</span></p>
  77. <p>Example [book/chap7/advinflow] to accompany the book
  78. <a class="reference external" href="http://www.clawpack.org/book.html">Finite Volume Methods for Hyperbolic Problems</a>
  79. by R. J. LeVeque.</p>
  80. <p>Converted to Clawpack 5.0 form in 2013.</p>
  81. </div>
  82. </div>
  83. </div>
  84. </div>
  85. <div class="sphinxsidebar" role="navigation" aria-label="main navigation">
  86. <div class="sphinxsidebarwrapper">
  87. <p><a href="http://clawpack.org/">
  88. <img class="logo" src= "../../../../../_static/clawlogo.jpg" alt="Logo"/>
  89. </a>
  90. <h2>Version 5.8.x</h2>
  91. </p><h3>Related Topics</h3>
  92. <ul>
  93. <li><a href="../../../../../index.html">Documentation overview</a><ul>
  94. </ul></li>
  95. </ul>
  96. <h3>This Page</h3>
  97. <ul class="this-page-menu">
  98. <li><a href="../../../../../_sources/gallery/apps/fvmbook/chap7/advinflow/README.rst.txt"
  99. rel="nofollow">Show Source</a></li>
  100. </ul>
  101. <div id="searchbox" style="display: none" role="search">
  102. <h3 id="searchlabel">Quick search</h3>
  103. <div class="searchformwrapper">
  104. <form class="search" action="../../../../../search.html" method="get">
  105. <input type="text" name="q" aria-labelledby="searchlabel" />
  106. <input type="submit" value="Go" />
  107. </form>
  108. </div>
  109. </div>
  110. <script>$('#searchbox').show(0);</script>
  111. </div>
  112. </div>
  113. <div class="clearer"></div>
  114. </div>
  115. <div class="footer">
  116. &copy; Copyright CC-BY 2020, The Clawpack Development Team.
  117. Created using <a href="http://sphinx.pocoo.org/">Sphinx</a>.
  118. </div>
  119. <script>
  120. (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  121. (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  122. m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  123. })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
  124. ga('create', 'UA-44811544-1', 'auto');
  125. ga('send', 'pageview');
  126. </script>
  127. </body>
  128. </html>