Commit 95087341 authored by Jeremy BLEYER's avatar Jeremy BLEYER

Finished viscoelastic example

parent 779039e4
......@@ -10,6 +10,7 @@ Contents:
.. toctree::
:maxdepth: 1
demo/viscoelasticity/linear_viscoelasticity.ipynb
demo/2D_plasticity/vonMises_plasticity.py.rst
......
......@@ -25,7 +25,7 @@
<link rel="index" title="Index" href="../../genindex.html" />
<link rel="search" title="Search" href="../../search.html" />
<link rel="next" title="Beams and plates" href="../../beams_and_plates.html" />
<link rel="prev" title="Nonlinear problems in solid mechanics" href="../../nonlinear_problems.html" />
<link rel="prev" title="Linear viscoelasticity" href="../viscoelasticity/linear_viscoelasticity.html" />
</head>
<body>
<div class="header-wrapper" role="banner">
......@@ -33,7 +33,7 @@
<div class="headertitle"><a
href="../../index.html">Numerical tours of continuum mechanics using FEniCS</a></div>
<div class="rel" role="navigation" aria-label="related navigation">
<a href="../../nonlinear_problems.html" title="Nonlinear problems in solid mechanics"
<a href="../viscoelasticity/linear_viscoelasticity.html" title="Linear viscoelasticity"
accesskey="P">previous</a> |
<a href="../../beams_and_plates.html" title="Beams and plates"
accesskey="N">next</a> |
......@@ -428,6 +428,7 @@ when considering a zero hardening modulus.</p>
</ul>
</li>
<li class="toctree-l1 current"><a class="reference internal" href="../../nonlinear_problems.html">Nonlinear problems in solid mechanics</a><ul class="current">
<li class="toctree-l2"><a class="reference internal" href="../viscoelasticity/linear_viscoelasticity.html">Linear viscoelasticity</a></li>
<li class="toctree-l2 current"><a class="current reference internal" href="#">Elasto-plastic analysis of a 2D von Mises material</a></li>
</ul>
</li>
......@@ -461,7 +462,7 @@ when considering a zero hardening modulus.</p>
<div class="footer">
<div class="left">
<div role="navigation" aria-label="related navigaton">
<a href="../../nonlinear_problems.html" title="Nonlinear problems in solid mechanics"
<a href="../viscoelasticity/linear_viscoelasticity.html" title="Linear viscoelasticity"
>previous</a> |
<a href="../../beams_and_plates.html" title="Beams and plates"
>next</a> |
......
......@@ -238,6 +238,7 @@ writing/reading. Prefered output format is now .xdmf:</p>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="../../nonlinear_problems.html">Nonlinear problems in solid mechanics</a><ul>
<li class="toctree-l2"><a class="reference internal" href="../viscoelasticity/linear_viscoelasticity.html">Linear viscoelasticity</a></li>
<li class="toctree-l2"><a class="reference internal" href="../2D_plasticity/vonMises_plasticity.py.html">Elasto-plastic analysis of a 2D von Mises material</a></li>
</ul>
</li>
......
......@@ -2823,6 +2823,7 @@ if (IPython.notebook.kernel != null) {
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="../../nonlinear_problems.html">Nonlinear problems in solid mechanics</a><ul>
<li class="toctree-l2"><a class="reference internal" href="../viscoelasticity/linear_viscoelasticity.html">Linear viscoelasticity</a></li>
<li class="toctree-l2"><a class="reference internal" href="../2D_plasticity/vonMises_plasticity.py.html">Elasto-plastic analysis of a 2D von Mises material</a></li>
</ul>
</li>
......
......@@ -216,6 +216,7 @@ that:</p>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="../../nonlinear_problems.html">Nonlinear problems in solid mechanics</a><ul>
<li class="toctree-l2"><a class="reference internal" href="../viscoelasticity/linear_viscoelasticity.html">Linear viscoelasticity</a></li>
<li class="toctree-l2"><a class="reference internal" href="../2D_plasticity/vonMises_plasticity.py.html">Elasto-plastic analysis of a 2D von Mises material</a></li>
</ul>
</li>
......
......@@ -279,6 +279,7 @@ and the beam theory eigenfrequencies :</p>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="../../nonlinear_problems.html">Nonlinear problems in solid mechanics</a><ul>
<li class="toctree-l2"><a class="reference internal" href="../viscoelasticity/linear_viscoelasticity.html">Linear viscoelasticity</a></li>
<li class="toctree-l2"><a class="reference internal" href="../2D_plasticity/vonMises_plasticity.py.html">Elasto-plastic analysis of a 2D von Mises material</a></li>
</ul>
</li>
......
......@@ -2159,6 +2159,7 @@ if (IPython.notebook.kernel != null) {
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="../../nonlinear_problems.html">Nonlinear problems in solid mechanics</a><ul>
<li class="toctree-l2"><a class="reference internal" href="../viscoelasticity/linear_viscoelasticity.html">Linear viscoelasticity</a></li>
<li class="toctree-l2"><a class="reference internal" href="../2D_plasticity/vonMises_plasticity.py.html">Elasto-plastic analysis of a 2D von Mises material</a></li>
</ul>
</li>
......
......@@ -84,6 +84,7 @@
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="../../nonlinear_problems.html">Nonlinear problems in solid mechanics</a><ul>
<li class="toctree-l2"><a class="reference internal" href="../viscoelasticity/linear_viscoelasticity.html">Linear viscoelasticity</a></li>
<li class="toctree-l2"><a class="reference internal" href="../2D_plasticity/vonMises_plasticity.py.html">Elasto-plastic analysis of a 2D von Mises material</a></li>
</ul>
</li>
......
......@@ -213,6 +213,7 @@ so that no term arise in the linear functional):</p>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="../../nonlinear_problems.html">Nonlinear problems in solid mechanics</a><ul>
<li class="toctree-l2"><a class="reference internal" href="../viscoelasticity/linear_viscoelasticity.html">Linear viscoelasticity</a></li>
<li class="toctree-l2"><a class="reference internal" href="../2D_plasticity/vonMises_plasticity.py.html">Elasto-plastic analysis of a 2D von Mises material</a></li>
</ul>
</li>
......
......@@ -206,6 +206,7 @@ the thin plate solution.</p>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="../../nonlinear_problems.html">Nonlinear problems in solid mechanics</a><ul>
<li class="toctree-l2"><a class="reference internal" href="../viscoelasticity/linear_viscoelasticity.html">Linear viscoelasticity</a></li>
<li class="toctree-l2"><a class="reference internal" href="../2D_plasticity/vonMises_plasticity.py.html">Elasto-plastic analysis of a 2D von Mises material</a></li>
</ul>
</li>
......
......@@ -4345,6 +4345,7 @@ if (IPython.notebook.kernel != null) {
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="../../nonlinear_problems.html">Nonlinear problems in solid mechanics</a><ul>
<li class="toctree-l2"><a class="reference internal" href="../viscoelasticity/linear_viscoelasticity.html">Linear viscoelasticity</a></li>
<li class="toctree-l2"><a class="reference internal" href="../2D_plasticity/vonMises_plasticity.py.html">Elasto-plastic analysis of a 2D von Mises material</a></li>
</ul>
</li>
......
......@@ -2909,6 +2909,7 @@ Mechanics and Engineering, 85(3), 349-365.
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="../../nonlinear_problems.html">Nonlinear problems in solid mechanics</a><ul>
<li class="toctree-l2"><a class="reference internal" href="../viscoelasticity/linear_viscoelasticity.html">Linear viscoelasticity</a></li>
<li class="toctree-l2"><a class="reference internal" href="../2D_plasticity/vonMises_plasticity.py.html">Elasto-plastic analysis of a 2D von Mises material</a></li>
</ul>
</li>
......
......@@ -81,6 +81,7 @@
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="nonlinear_problems.html">Nonlinear problems in solid mechanics</a><ul>
<li class="toctree-l2"><a class="reference internal" href="demo/viscoelasticity/linear_viscoelasticity.html">Linear viscoelasticity</a></li>
<li class="toctree-l2"><a class="reference internal" href="demo/2D_plasticity/vonMises_plasticity.py.html">Elasto-plastic analysis of a 2D von Mises material</a></li>
</ul>
</li>
......
......@@ -89,6 +89,7 @@
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="nonlinear_problems.html">Nonlinear problems in solid mechanics</a><ul>
<li class="toctree-l2"><a class="reference internal" href="demo/viscoelasticity/linear_viscoelasticity.html">Linear viscoelasticity</a></li>
<li class="toctree-l2"><a class="reference internal" href="demo/2D_plasticity/vonMises_plasticity.py.html">Elasto-plastic analysis of a 2D von Mises material</a></li>
</ul>
</li>
......
......@@ -73,6 +73,7 @@
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="nonlinear_problems.html">Nonlinear problems in solid mechanics</a><ul>
<li class="toctree-l2"><a class="reference internal" href="demo/viscoelasticity/linear_viscoelasticity.html">Linear viscoelasticity</a></li>
<li class="toctree-l2"><a class="reference internal" href="demo/2D_plasticity/vonMises_plasticity.py.html">Elasto-plastic analysis of a 2D von Mises material</a></li>
</ul>
</li>
......@@ -118,6 +119,7 @@
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="nonlinear_problems.html">Nonlinear problems in solid mechanics</a><ul>
<li class="toctree-l2"><a class="reference internal" href="demo/viscoelasticity/linear_viscoelasticity.html">Linear viscoelasticity</a></li>
<li class="toctree-l2"><a class="reference internal" href="demo/2D_plasticity/vonMises_plasticity.py.html">Elasto-plastic analysis of a 2D von Mises material</a></li>
</ul>
</li>
......
......@@ -94,6 +94,7 @@
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="nonlinear_problems.html">Nonlinear problems in solid mechanics</a><ul>
<li class="toctree-l2"><a class="reference internal" href="demo/viscoelasticity/linear_viscoelasticity.html">Linear viscoelasticity</a></li>
<li class="toctree-l2"><a class="reference internal" href="demo/2D_plasticity/vonMises_plasticity.py.html">Elasto-plastic analysis of a 2D von Mises material</a></li>
</ul>
</li>
......
......@@ -24,7 +24,7 @@
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
<link rel="index" title="Index" href="genindex.html" />
<link rel="search" title="Search" href="search.html" />
<link rel="next" title="Elasto-plastic analysis of a 2D von Mises material" href="demo/2D_plasticity/vonMises_plasticity.py.html" />
<link rel="next" title="Linear viscoelasticity" href="demo/viscoelasticity/linear_viscoelasticity.html" />
<link rel="prev" title="Periodic homogenization of linear elastic materials" href="demo/periodic_homog_elas/periodic_homog_elas.html" />
</head>
<body>
......@@ -35,7 +35,7 @@
<div class="rel" role="navigation" aria-label="related navigation">
<a href="demo/periodic_homog_elas/periodic_homog_elas.html" title="Periodic homogenization of linear elastic materials"
accesskey="P">previous</a> |
<a href="demo/2D_plasticity/vonMises_plasticity.py.html" title="Elasto-plastic analysis of a 2D von Mises material"
<a href="demo/viscoelasticity/linear_viscoelasticity.html" title="Linear viscoelasticity"
accesskey="N">next</a> |
<a href="genindex.html" title="General Index"
accesskey="I">index</a>
......@@ -56,6 +56,7 @@
<p>Contents:</p>
<div class="toctree-wrapper compound">
<ul>
<li class="toctree-l1"><a class="reference internal" href="demo/viscoelasticity/linear_viscoelasticity.html">Linear viscoelasticity</a></li>
<li class="toctree-l1"><a class="reference internal" href="demo/2D_plasticity/vonMises_plasticity.py.html">Elasto-plastic analysis of a 2D von Mises material</a></li>
</ul>
</div>
......@@ -89,6 +90,7 @@
</ul>
</li>
<li class="toctree-l1 current"><a class="current reference internal" href="#">Nonlinear problems in solid mechanics</a><ul>
<li class="toctree-l2"><a class="reference internal" href="demo/viscoelasticity/linear_viscoelasticity.html">Linear viscoelasticity</a></li>
<li class="toctree-l2"><a class="reference internal" href="demo/2D_plasticity/vonMises_plasticity.py.html">Elasto-plastic analysis of a 2D von Mises material</a></li>
</ul>
</li>
......@@ -124,7 +126,7 @@
<div role="navigation" aria-label="related navigaton">
<a href="demo/periodic_homog_elas/periodic_homog_elas.html" title="Periodic homogenization of linear elastic materials"
>previous</a> |
<a href="demo/2D_plasticity/vonMises_plasticity.py.html" title="Elasto-plastic analysis of a 2D von Mises material"
<a href="demo/viscoelasticity/linear_viscoelasticity.html" title="Linear viscoelasticity"
>next</a> |
<a href="genindex.html" title="General Index"
>index</a>
......
......@@ -104,6 +104,7 @@
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="nonlinear_problems.html">Nonlinear problems in solid mechanics</a><ul>
<li class="toctree-l2"><a class="reference internal" href="demo/viscoelasticity/linear_viscoelasticity.html">Linear viscoelasticity</a></li>
<li class="toctree-l2"><a class="reference internal" href="demo/2D_plasticity/vonMises_plasticity.py.html">Elasto-plastic analysis of a 2D von Mises material</a></li>
</ul>
</li>
......
This diff is collapsed.
......@@ -10,6 +10,7 @@ Contents:
.. toctree::
:maxdepth: 1
demo/viscoelasticity/linear_viscoelasticity.ipynb
demo/2D_plasticity/vonMises_plasticity.py.rst
......
.. Numerical tours of continuum mechanics using FEniCS documentation master file, created by
sphinx-quickstart on Wed Jun 8 21:25:10 2016.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
Reissner-Mindlin plates
=======================
Contents:
.. toctree::
:maxdepth: 1
reissner_mindlin_quads.py.rst
reissner_mindlin_dg.py.rst
......@@ -30,7 +30,7 @@
},
{
"cell_type": "code",
"execution_count": 72,
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
......@@ -63,7 +63,8 @@
"(dw, dtheta) = split(du)\n",
"\n",
"\n",
"k_form = EI*inner(grad(theta_), grad(dtheta))*dx + kappa*GS*dot(grad(w_)[0]-theta_, grad(dw)[0]-dtheta)*dx\n",
"k_form = EI*inner(grad(theta_), grad(dtheta))*dx + \\\n",
" kappa*GS*dot(grad(w_)[0]-theta_, grad(dw)[0]-dtheta)*dx\n",
"l_form = Constant(1.)*u_[0]*dx"
]
},
......@@ -73,12 +74,12 @@
"raw_mimetype": "text/restructuredtext"
},
"source": [
"As in the :ref:`ModalAnalysis` tour, a dummy linear form `l_form` is used to call the `assemble_system` function which retains the symmetric structure of the associated matrix when imposing boundary conditions. Here, we will consider clamped conditions on the left side :math:`x=0` and simple supports on the right side :math:`x=L`."
"As in the :ref:`ModalAnalysis` tour, a dummy linear form :code:`l_form` is used to call the :code:`assemble_system` function which retains the symmetric structure of the associated matrix when imposing boundary conditions. Here, we will consider clamped conditions on the left side :math:`x=0` and simple supports on the right side :math:`x=L`."
]
},
{
"cell_type": "code",
"execution_count": 78,
"execution_count": 5,
"metadata": {},
"outputs": [],
"source": [
......@@ -117,7 +118,7 @@
},
{
"cell_type": "code",
"execution_count": 70,
"execution_count": 3,
"metadata": {},
"outputs": [],
"source": [
......@@ -142,7 +143,7 @@
},
{
"cell_type": "code",
"execution_count": 71,
"execution_count": 4,
"metadata": {},
"outputs": [
{
......
......@@ -30,7 +30,7 @@
},
{
"cell_type": "code",
"execution_count": 72,
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
......@@ -63,7 +63,8 @@
"(dw, dtheta) = split(du)\n",
"\n",
"\n",
"k_form = EI*inner(grad(theta_), grad(dtheta))*dx + kappa*GS*dot(grad(w_)[0]-theta_, grad(dw)[0]-dtheta)*dx\n",
"k_form = EI*inner(grad(theta_), grad(dtheta))*dx + \\\n",
" kappa*GS*dot(grad(w_)[0]-theta_, grad(dw)[0]-dtheta)*dx\n",
"l_form = Constant(1.)*u_[0]*dx"
]
},
......@@ -73,12 +74,12 @@
"raw_mimetype": "text/restructuredtext"
},
"source": [
"As in the :ref:`ModalAnalysis` tour, a dummy linear form `l_form` is used to call the `assemble_system` function which retains the symmetric structure of the associated matrix when imposing boundary conditions. Here, we will consider clamped conditions on the left side :math:`x=0` and simple supports on the right side :math:`x=L`."
"As in the :ref:`ModalAnalysis` tour, a dummy linear form :code:`l_form` is used to call the :code:`assemble_system` function which retains the symmetric structure of the associated matrix when imposing boundary conditions. Here, we will consider clamped conditions on the left side :math:`x=0` and simple supports on the right side :math:`x=L`."
]
},
{
"cell_type": "code",
"execution_count": 78,
"execution_count": 5,
"metadata": {},
"outputs": [],
"source": [
......@@ -117,7 +118,7 @@
},
{
"cell_type": "code",
"execution_count": 70,
"execution_count": 3,
"metadata": {},
"outputs": [],
"source": [
......@@ -142,7 +143,7 @@
},
{
"cell_type": "code",
"execution_count": 79,
"execution_count": 4,
"metadata": {},
"outputs": [
{
......@@ -946,9 +947,9 @@
"output_type": "stream",
"text": [
"Critical buckling loads:\n",
"Exact: 0.00032 FE: 0.31805 Rel. gap 99914.49%%\n",
"Exact: 0.00094 FE: 0.94033 Rel. gap 99940.30%%\n",
"Exact: 0.00187 FE: 1.87415 Rel. gap 99978.99%%\n"
"Exact: 0.31800 FE: 0.31805 Rel. gap 0.01%%\n",
"Exact: 0.93995 FE: 0.94033 Rel. gap 0.04%%\n",
"Exact: 1.87267 FE: 1.87415 Rel. gap 0.08%%\n"
]
}
],
......
{
"cells": [
{
"cell_type": "markdown",
"metadata": {
"nbsphinx": "hidden"
},
"source": [
"This notebook is part of the `nbsphinx` documentation: http://nbsphinx.readthedocs.io/."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Markdown Cells\n",
"\n",
"We can use *emphasis*, **boldface**, `preformatted text`.\n",
"\n",
"> It looks like strike-out text is not supported: ~~strikethrough~~.\n",
"\n",
"* Red\n",
"* Green\n",
"* Blue\n",
"\n",
"***\n",
"\n",
"1. One\n",
"1. Two\n",
"1. Three\n",
"\n",
"Arbitrary Unicode characters should be supported, e.g. łαßō.\n",
"Note, however, that this only works if your HTML browser and your LaTeX processor provide the appropriate fonts."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Equations\n",
"\n",
"Equations can be formatted really nicely, either inline, like $\\text{e}^{i\\pi} = -1$, or on a separate line, like\n",
"\n",
"\\begin{equation}\n",
"\\int_{-\\infty}^\\infty f(x) \\delta(x - x_0) dx = f(x_0)\n",
"\\end{equation}\n",
"\n",
"*Note:* Avoid leading and trailing spaces around math expressions, otherwise errors like the following will occur when Sphinx is running:\n",
"\n",
" ERROR: Unknown interpreted text role \"raw-latex\".\n",
"\n",
"See also the [pandoc docs](http://pandoc.org/MANUAL.html#math):\n",
"\n",
"> Anything between two `$` characters will be treated as TeX math. The opening `$` must have a non-space character immediately to its right, while the closing `$` must have a non-space character immediately to its left, and must not be followed immediately by a digit."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Code\n",
"\n",
"We can also write code with nice syntax highlighting:\n",
"\n",
"```python3\n",
"print(\"Hello, world!\")\n",
"```"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Tables\n",
"\n",
"A | B | A and B\n",
"------|-------|--------\n",
"False | False | False\n",
"True | False | False\n",
"False | True | False\n",
"True | True | True"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Images\n",
"\n",
"PNG file (local): ![Jupyter notebook icon](images/notebook_icon.png)\n",
"\n",
"SVG file (local): ![Python logo](images/python_logo.svg)\n",
"\n",
"PNG file (remote): ![Python logo (remote)](https://www.python.org/static/img/python-logo-large.png)\n",
"\n",
"SVG file (remote): ![Jupyter logo (remote)](http://jupyter.org/assets/nav_logo.svg)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## HTML Elements (HTML only)\n",
"\n",
"It is allowed to use plain HTML elements within Markdown cells.\n",
"Those elements are passed through to the HTML output and are ignored for the LaTeX output.\n",
"Below are a few examples.\n",
"\n",
"HTML5 [audio](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/audio) elements can be created like this:\n",
"\n",
"```html\n",
"<audio src=\"https://example.org/audio.ogg\" controls>alternative text</audio>\n",
"```\n",
"\n",
"Example:\n",
"\n",
"<audio src=\"https://upload.wikimedia.org/wikipedia/commons/6/61/DescenteInfinie.ogg\" controls>The HTML audio element is not supported!</audio>\n",
"\n",
"\n",
"HTML5 [video](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video) elements can be created like this:\n",
"\n",
"```html\n",
"<video src=\"https://example.org/video.ogv\" controls>alternative text</video>\n",
"```\n",
"\n",
"Example:\n",
"\n",
"<video src=\"https://upload.wikimedia.org/wikipedia/commons/4/42/Shepard_Calais_1906_FrenchGP.ogv\" controls autoplay loop>The HTML video element is not supported!</video>\n",
"\n",
"The alternative text is shown in browsers that don't support those elements. The same text is also shown in Sphinx's LaTeX output.\n",
"\n",
"<div class=\"alert alert-info\">\n",
"\n",
"**Note:** You can also use local files for the `<audio>` and `<video>` elements, but you have to create a link to the source file somewhere, because only then are the local files copied to the HTML output directory!\n",
"You should do that anyway to make the audio/video file accessible to browsers that don't support the `<audio>` and `<video>` elements.\n",
"\n",
"</div>"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Info/Warning Boxes\n",
"\n",
"<div class=\"alert alert-warning\">\n",
"\n",
"**Warning:**\n",
"\n",
"This is an *experimental feature*!\n",
"Its usage will probably change in the future or it might be removed completely!\n",
"\n",
"</div>\n",
"\n",
"Until there is an info/warning extension for Markdown/CommonMark (see [this issue](https://github.com/jupyter/notebook/issues/1292)), such boxes can be created by using HTML `<div>` elements like this:\n",
"\n",
"```html\n",
"<div class=\"alert alert-info\">\n",
"\n",
"**Note:** This is a note!\n",
"\n",
"</div>\n",
"```\n",
"\n",
"For this to work reliably, you should obey the following guidelines:\n",
"\n",
"* The `class` attribute has to be either `\"alert alert-info\"` or `\"alert alert-warning\"`, other values will not be converted correctly.\n",
"* No further attributes are allowed.\n",
"* For compatibility with CommonMark, you should add an empty line between the `<div>` start tag and the beginning of the content.\n",
"\n",
"<div class=\"alert alert-info\">\n",
"\n",
"**Note:**\n",
"\n",
"The text can contain further Markdown formatting.\n",
"It is even possible to have nested boxes:\n",
"\n",
"<div class=\"alert alert-warning\">\n",
"\n",
"... but please don't *overuse* this!\n",
"\n",
"</div>\n",
"</div>"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Links to Other Notebooks\n",
"\n",
"Relative links to local notebooks can be used:\n",
"[a link to a notebook in a subdirectory](subdir/a-notebook-in-a-subdir.ipynb),\n",
"[a link to an orphan notebook](orphan.ipynb)\n",
"(latter won't work in LaTeX output, because orphan pages are not included there).\n",
"\n",
"This is how a link is created in Markdown:\n",
"\n",
"```\n",
"[a link to a notebook in a subdirectory](subdir/a-notebook-in-a-subdir.ipynb)\n",
"```\n",
"\n",
"Markdown also supports *reference-style* links:\n",
"[a reference-style link][mylink],\n",
"[another version of the same link][mylink].\n",
"\n",
"[mylink]: subdir/a-notebook-in-a-subdir.ipynb\n",
"\n",
"These can be created with this syntax:\n",
"\n",
"```\n",
"[a reference-style link][mylink]\n",
"\n",
"[mylink]: subdir/a-notebook-in-a-subdir.ipynb\n",
"```\n",