Skip to content
Snippets Groups Projects
Unverified Commit 4b18f90a authored by Tom Wiesing's avatar Tom Wiesing
Browse files

Initial commit

parents
No related branches found
No related tags found
No related merge requests found
Copyright 2018 KWARC group
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
\ No newline at end of file
<!DOCTYPE html>
<html>
<head>
<!-- needed for the MathML to render properly -->
<meta charset="UTF-8">
<title>
Annotation Mockup
</title>
</head>
<body>
<div>
<h1>The Diffusion Equation -- Extract</h1>
<p>The equation is usually written as:</p>
<p>
<!-- Wikipedia does not seem to output MathML Proper anymore, so this has been rendered using LaTeXML -->
<!--\frac{\partial\phi(\mathbf{r},t)}{\partial t} = \nabla \cdot \big[ D(\phi,\mathbf{r}) \ \nabla\phi(\mathbf{r},t) \big], -->
<table xmlns="http://www.w3.org/1999/xhtml" id="S0.Ex1" style="border:2px solid #0073CF;background: #F5FFFA; text-align: center;">
<tr class="ltx_equation ltx_eqn_row ltx_align_baseline">
<td class="ltx_eqn_cell ltx_eqn_center_padleft"></td>
<td class="ltx_eqn_cell ltx_align_center"><math xmlns="http://www.w3.org/1998/Math/MathML" id="S0.Ex1.m1.1" class="ltx_Math" alttext="\frac{\partial\phi(\mathbf{r},t)}{\partial t}=\nabla\cdot\big{[}D(\phi,\mathbf%
{r})\ \nabla\phi(\mathbf{r},t)\big{]}" display="block"><semantics id="S0.Ex1.m1.1a"><mrow id="S0.Ex1.m1.1.21" xref="S0.Ex1.m1.1.21.cmml"><mfrac id="S0.Ex1.m1.1.1" xref="S0.Ex1.m1.1.1.cmml"><mrow id="S0.Ex1.m1.1.1.2" xref="S0.Ex1.m1.1.1.2.cmml"><mrow id="S0.Ex1.m1.1.1.2.9" xref="S0.Ex1.m1.1.1.2.9.cmml"><mo id="S0.Ex1.m1.1.1.2.1" xref="S0.Ex1.m1.1.1.2.1.cmml"></mo><mo id="S0.Ex1.m1.1.1.2.9a" xref="S0.Ex1.m1.1.1.2.9.cmml"></mo><mi id="S0.Ex1.m1.1.1.2.2" xref="S0.Ex1.m1.1.1.2.2.cmml">ϕ</mi></mrow><mo id="S0.Ex1.m1.1.1.2.8" xref="S0.Ex1.m1.1.1.2.8.cmml"></mo><mrow id="S0.Ex1.m1.1.1.2.10" xref="S0.Ex1.m1.1.1.2.10.1.cmml"><mo stretchy="false" id="S0.Ex1.m1.1.1.2.3">(</mo><mi id="S0.Ex1.m1.1.1.2.4" xref="S0.Ex1.m1.1.1.2.4.cmml">𝐫</mi><mo id="S0.Ex1.m1.1.1.2.5">,</mo><mi id="S0.Ex1.m1.1.1.2.6" xref="S0.Ex1.m1.1.1.2.6.cmml">t</mi><mo stretchy="false" id="S0.Ex1.m1.1.1.2.7">)</mo></mrow></mrow><mrow id="S0.Ex1.m1.1.1.3" xref="S0.Ex1.m1.1.1.3.cmml"><mo id="S0.Ex1.m1.1.1.3.1" xref="S0.Ex1.m1.1.1.3.1.cmml"></mo><mo id="S0.Ex1.m1.1.1.3a" xref="S0.Ex1.m1.1.1.3.cmml"></mo><mi id="S0.Ex1.m1.1.1.3.2" xref="S0.Ex1.m1.1.1.3.2.cmml">t</mi></mrow></mfrac><mo id="S0.Ex1.m1.1.2" xref="S0.Ex1.m1.1.2.cmml">=</mo><mrow id="S0.Ex1.m1.1.21.1" xref="S0.Ex1.m1.1.21.1.cmml"><mo id="S0.Ex1.m1.1.3" xref="S0.Ex1.m1.1.3.cmml"></mo><mo id="S0.Ex1.m1.1.4" xref="S0.Ex1.m1.1.4.cmml"></mo><mrow id="S0.Ex1.m1.1.21.1.1" xref="S0.Ex1.m1.1.21.1.1.1.cmml"><mo maxsize="120%" minsize="120%" id="S0.Ex1.m1.1.5" xref="S0.Ex1.m1.1.21.1.1.1.1.cmml">[</mo><mrow id="S0.Ex1.m1.1.21.1.1.2" xref="S0.Ex1.m1.1.21.1.1.1.cmml"><mi id="S0.Ex1.m1.1.6" xref="S0.Ex1.m1.1.6.cmml">D</mi><mo id="S0.Ex1.m1.1.21.1.1.2.1" xref="S0.Ex1.m1.1.21.1.1.2.1.cmml"></mo><mrow id="S0.Ex1.m1.1.21.1.1.2.2" xref="S0.Ex1.m1.1.21.1.1.2.2.1.cmml"><mo stretchy="false" id="S0.Ex1.m1.1.7">(</mo><mi id="S0.Ex1.m1.1.8" xref="S0.Ex1.m1.1.8.cmml">ϕ</mi><mo id="S0.Ex1.m1.1.9">,</mo><mi id="S0.Ex1.m1.1.10" xref="S0.Ex1.m1.1.10.cmml">𝐫</mi><mo rspace="7.5pt" stretchy="false" id="S0.Ex1.m1.1.11">)</mo></mrow><mo id="S0.Ex1.m1.1.21.1.1.2.1a" xref="S0.Ex1.m1.1.21.1.1.2.1.cmml"></mo><mrow id="S0.Ex1.m1.1.21.1.1.2.3" xref="S0.Ex1.m1.1.21.1.1.1.cmml"><mo id="S0.Ex1.m1.1.13" xref="S0.Ex1.m1.1.13.cmml"></mo><mo id="S0.Ex1.m1.1.21.1.1.2.3a"></mo><mi id="S0.Ex1.m1.1.14" xref="S0.Ex1.m1.1.14.cmml">ϕ</mi></mrow><mo id="S0.Ex1.m1.1.21.1.1.2.1b" xref="S0.Ex1.m1.1.21.1.1.2.1.cmml"></mo><mrow id="S0.Ex1.m1.1.21.1.1.2.4" xref="S0.Ex1.m1.1.21.1.1.2.4.1.cmml"><mo stretchy="false" id="S0.Ex1.m1.1.15">(</mo><mi id="S0.Ex1.m1.1.16" xref="S0.Ex1.m1.1.16.cmml">𝐫</mi><mo id="S0.Ex1.m1.1.17">,</mo><mi id="S0.Ex1.m1.1.18" xref="S0.Ex1.m1.1.18.cmml">t</mi><mo stretchy="false" id="S0.Ex1.m1.1.19">)</mo></mrow></mrow><mo maxsize="120%" minsize="120%" id="S0.Ex1.m1.1.20" xref="S0.Ex1.m1.1.21.1.1.1.1.cmml">]</mo></mrow></mrow></mrow><annotation-xml encoding="MathML-Content" id="S0.Ex1.m1.1b"><apply id="S0.Ex1.m1.1.21.cmml" xref="S0.Ex1.m1.1.21"><eq id="S0.Ex1.m1.1.2.cmml" xref="S0.Ex1.m1.1.2"/><apply id="S0.Ex1.m1.1.1.cmml" xref="S0.Ex1.m1.1.1"><divide id="S0.Ex1.m1.1.1.1.cmml"/><apply id="S0.Ex1.m1.1.1.2.cmml" xref="S0.Ex1.m1.1.1.2"><times id="S0.Ex1.m1.1.1.2.8.cmml" xref="S0.Ex1.m1.1.1.2.8"/><apply id="S0.Ex1.m1.1.1.2.9.cmml" xref="S0.Ex1.m1.1.1.2.9"><partialdiff id="S0.Ex1.m1.1.1.2.1.cmml" xref="S0.Ex1.m1.1.1.2.1"/><ci id="S0.Ex1.m1.1.1.2.2.cmml" xref="S0.Ex1.m1.1.1.2.2">italic-ϕ</ci></apply><interval closure="open" id="S0.Ex1.m1.1.1.2.10.1.cmml" xref="S0.Ex1.m1.1.1.2.10"><ci id="S0.Ex1.m1.1.1.2.4.cmml" xref="S0.Ex1.m1.1.1.2.4">𝐫</ci><ci id="S0.Ex1.m1.1.1.2.6.cmml" xref="S0.Ex1.m1.1.1.2.6">𝑡</ci></interval></apply><apply id="S0.Ex1.m1.1.1.3.cmml" xref="S0.Ex1.m1.1.1.3"><partialdiff id="S0.Ex1.m1.1.1.3.1.cmml" xref="S0.Ex1.m1.1.1.3.1"/><ci id="S0.Ex1.m1.1.1.3.2.cmml" xref="S0.Ex1.m1.1.1.3.2">𝑡</ci></apply></apply><apply id="S0.Ex1.m1.1.21.1.cmml" xref="S0.Ex1.m1.1.21.1"><ci id="S0.Ex1.m1.1.4.cmml" xref="S0.Ex1.m1.1.4"></ci><ci id="S0.Ex1.m1.1.3.cmml" xref="S0.Ex1.m1.1.3"></ci><apply id="S0.Ex1.m1.1.21.1.1.1.cmml" xref="S0.Ex1.m1.1.21.1.1"><csymbol cd="latexml" id="S0.Ex1.m1.1.21.1.1.1.1.cmml" xref="S0.Ex1.m1.1.5">delimited-[]</csymbol><apply id="S0.Ex1.m1.1.21.1.1.2.cmml" xref="S0.Ex1.m1.1.21.1.1"><times id="S0.Ex1.m1.1.21.1.1.2.1.cmml" xref="S0.Ex1.m1.1.21.1.1.2.1"/><ci id="S0.Ex1.m1.1.6.cmml" xref="S0.Ex1.m1.1.6">𝐷</ci><interval closure="open" id="S0.Ex1.m1.1.21.1.1.2.2.1.cmml" xref="S0.Ex1.m1.1.21.1.1.2.2"><ci id="S0.Ex1.m1.1.8.cmml" xref="S0.Ex1.m1.1.8">italic-ϕ</ci><ci id="S0.Ex1.m1.1.10.cmml" xref="S0.Ex1.m1.1.10">𝐫</ci></interval><apply id="S0.Ex1.m1.1.21.1.1.2.3.cmml" xref="S0.Ex1.m1.1.21.1.1"><ci id="S0.Ex1.m1.1.13.cmml" xref="S0.Ex1.m1.1.13"></ci><ci id="S0.Ex1.m1.1.14.cmml" xref="S0.Ex1.m1.1.14">italic-ϕ</ci></apply><interval closure="open" id="S0.Ex1.m1.1.21.1.1.2.4.1.cmml" xref="S0.Ex1.m1.1.21.1.1.2.4"><ci id="S0.Ex1.m1.1.16.cmml" xref="S0.Ex1.m1.1.16">𝐫</ci><ci id="S0.Ex1.m1.1.18.cmml" xref="S0.Ex1.m1.1.18">𝑡</ci></interval></apply></apply></apply></apply></annotation-xml><annotation encoding="application/x-tex" id="S0.Ex1.m1.1c">\frac{\partial\phi(\mathbf{r},t)}{\partial t}=\nabla\cdot\big{[}D(\phi,\mathbf%
{r})\ \nabla\phi(\mathbf{r},t)\big{]}</annotation></semantics></math></td>
<td class="ltx_eqn_cell ltx_eqn_center_padright"></td></tr>
</table>
</p>
<p>where
<span data-defines="#S0.Ex1.m1.1.1.2">
<i>ϕ</i>(<b>r</b>, <i>t</i>) is the <a href="/wiki/Density" title="Density">density</a> of the diffusing material at location <b>r</b> and time <i>t</i>
</span> and
<span data-defines="#S0.Ex1.m1.1.21.1.1.2">
<i>D</i>(<i>ϕ</i>, <b>r</b>) is the collective <a href="/wiki/Diffusion_coefficient" class="mw-redirect" title="Diffusion coefficient">diffusion coefficient</a> for density <i>ϕ</i> at location <b>r</b>
</span>; and
<span data-defines="#S0.Ex1.m1.1.3">
∇ represents the vector <a href="/wiki/Differential_operator" title="Differential operator">differential operator</a> <a href="/wiki/Del" title="Del">del</a>
</span>. If the diffusion coefficient depends on the density then the equation is nonlinear, otherwise it is linear.</p>
</div>
<!-- include jQuery and our script -->
<script src="./js/jquery-3.3.1.min.js" type="text/javascript"></script>
<script src="./js/annot.js" type="text/javascript"></script>
</body>
</html>
\ No newline at end of file
$(function(){
var annotationAttribute="data-defines"; // the attribute that we use for annotation
// given an element, find the element it defines
// has to be of the form #id
var getDefinedElement = function(elem){
var selector = $(elem).attr(annotationAttribute).substring(1);
return $(document.getElementById(selector));
}
// find all elements that have the attribute
// and add hover(enterHandler, leaveHandler) handlers
$("*["+annotationAttribute+"]").hover(function(){
getDefinedElement(this).attr("mathbackground", "red");
$(this).css("background-color", "orange");
}, function(){
getDefinedElement(this).removeAttr("mathbackground");
$(this).css("background-color", "");
});
})
\ No newline at end of file
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment