<table class="navbar">
<tr>
<td>
- <a href="index.html">Back to this chapter's index</a>
+ <a href="toc.html">Back to this chapter's index</a>
</td>
<td>
<a href="../index.html">Back to the tutorial index</a>
<address>
<a href="mailto:schrage@gaia.iwr.uni-heidelberg.de">Jan Schrage</a></address>
<p>
-Last modified: Wed Mar 24 1999
+Last modified: $Date$
</p>
</body>
</html>
exactly one cell.
</p>
+<p class="Example">
+<span class="example">Example:</span> Below we show the includes,
+definitions and
+function calls needed. Be sure to use them in their appropriate places.
+This example will create the hypercube [-1,1]<sup>dim</sup>.
+</p>
+<pre class="example">
+<code>
+#include <grid/tria.h>
+
+int dim=2; // For example
+Triangulation<dim> tr;
+
+tr.create_hypercube(-1,1);
+</code>
+</pre>
+
+
<h3><a name="ball">Hyperball</a></h3>
<p>
A hyperball can be created using the function<br>
-<code>void Triangulation::create_hyper_ball(const Point<dim&rt; center=0.,const double radius=1.)</code><br>
+<code>void Triangulation::create_hyper_ball(const Point<dim> center=0.,const double radius=1.)</code><br>
This will create a hyperball of given centre and radius where the location of the centre defaults to the origin and the radius to unity.
</p>
+<p class="Example">
+<span class="example">Example:</span> Below we show the includes,
+definitions and
+function calls needed. Be sure to use them in their appropriate places.
+This example will create a hyperball with unit radius centred on (1,0).
+</p>
+<pre class="example">
+<code>
+#include <grid/tria.h>
+#include <base/point.h>
+
+int dim=2; // For example
+Triangulation<dim> tr;
+Point<dim> centre(1,0); // Taking (1,0) as the centre of the ball
+
+tr.create_hyperball(centre,1);
+
+</code>
+</pre>
+
+
<h3><a name="L">Hyper-L</a></h3>
<p>
A hyper-L can be created using the function<br>
from the smaller hypercube taken away.
</p>
+<p class="example">
+<span class="example">Example:</span> Below we show the includes,
+definitions and
+function calls needed. Be sure to use them in their appropriate places.
+This example will create the default hyper-L.
+</p>
+<pre class="example">
+<code>
+#include <grid/tria.h>
+
+int dim=2; // For example
+Triangulation<dim> tr;
+
+tr.create_hyper_L(-1,1);
+</code>
+</pre>
+
+
<h3><a name="file">Reading a grid from a file</a></h3>
<p>In many problems taken from real life you will find those grid types
reading a complete triangulation from a file in the <tt>ucd</tt>-format
used by avs. A <tt>ucd</tt>-file can be read with the function<br>
<code>void DataIn::read_ucd(istream&)</code><br>
-At present only lines in on dimension and lines and quads in two dimensions
+At present only lines in one dimension and lines and quads in two dimensions
are accepted. All other data is rejected.
</p>
<table class="navbar" >
<tr>
<td>
- <a href="index.html">Back to this chapter's index</a>
+ <a href="toc.html">Back to this chapter's index</a>
</td>
<td>
<a href="../index.html">Back to the tutorial index</a>
<address>
<a href="mailto:schrage@gaia.iwr.uni-heidelberg.de">Jan Schrage</a></address>
<p>
-Last modified: Wed Mar 24 1999
+Last modified: $Date$
</p>
</body>
</html>
<p>
<strong>Table of contents</strong>
</p>
- <ol>
+ <ol>
+ <li>
+ <p>
+ <a href="toc.html" target="body">Long table of contents</a>
+ </p>
+ </li>
<li>
<p>
<a href="grid_creation.html" target="body">Creation of a grid</a>
</p>
</li>
</ol>
+ <p>
+ <a href="../index.html" target="_top">Back to the tutorial index</a>
+ </p>
+<!-- Last modified: $Date$ -->
</body>
</html>
<!-- Title Frame -->
-<img src="../../pictures/deal10.gif" alt="DEAL Logo" align="left" hspace=20>
-<h1>The deal.II tutorial - Chapter 0 - Structure of a Finite Element Program</h1>
+<img src="../../pictures/deal10.gif" alt="DEAL Logo" align="left" hspace=20 class="chapter_title">
+<h1 class="chapter_title">The deal.II tutorial - Chapter 0 - Structure of a Finite Element Program</h1>
</body>
</html>
+
+
+
+
+
+
<table class="navbar">
<tr>
<td>
- <a href="index.html">Back to this chapter's index</a>
+ <a href="toc.html">Back to this chapter's index</a>
</td>
<td>
<a href="../index.html">Back to the tutorial index</a>
<table class="navbar">
<tr>
<td>
- <a href="index.html">Back to this chapter's index</a>
+ <a href="toc.html">Back to this chapter's index</a>
</td>
<td>
<a href="../index.html">Back to the tutorial index</a>
<hr>
<address><a href="mailto:schrage@gaia.iwr.uni-heidelberg.de">Jan Schrage</a></address>
<p>
-Last modified: Tue Mar 23, 1999
+Last modified: $Date$
</p>
</body>
</html>
// Insert the boundary conditions into the matrix.
map<int,double> boundary_values;
DoFHandler<2>::FunctionMap dirichlet_bc;
- BoundaryFct bfkt;
- dirichlet_bc[0]=&bfkt;
+ BoundaryFct bfct;
+ dirichlet_bc[0]=&bfct;
VectorTools<2>::interpolate_boundary_values(dof,dirichlet_bc,
fe,boundary,
boundary_values);
class Laplace
{
protected:
- Point<2> direction;
+// Point<2> direction;
Triangulation<2> tr;
DoFHandler<2> dof;
<table class="navbar">
<tr>
<td>
- <a href="index.html">Back to this chapter's index</a>
+ <a href="toc.html">Back to this chapter's index</a>
</td>
<td>
<a href="../index.html">Back to the tutorial index</a>
<p>
-Last modified: Tue Mar 23 1999
+Last modified: $Date$
</p>
</body>
</html>
<table class="navbar">
<tr>
<td>
- <a href="index.html">Back to this chapter's index</a>
+ <a href="toc.html">Back to this chapter's index</a>
</td>
<td>
<a href="../index.html">Back to the tutorial index</a>
<address>
<a href="mailto:schrage@gaia.iwr.uni-heidelberg.de">Jan Schrage</a></address>
<p>
-Last modified: Tue Mar 23 1999
+Last modified: $Date$
</p>
</body>
<ol>
<li>
<p>
+<a href="toc.html" target="body">Long table of contents</a>
+</p>
+</li>
+<li>
+<p>
<a href="structure.html" target="body">Program structure</a>
</p>
</li>
</p>
</li>
</ol>
+ <p>
+ <a href="../index.html" target="_top">Back to the tutorial index</a>
+ </p>
+
+<!-- Last modified: $Date$ -->
</body>
</html>
<pre><code>
void
-Laplace::solve_primal()
+Laplace::solve()
{
SolverControl control(1000, 1.e-10);
<table class="navbar">
<tr>
<td>
- <a href="index.html">Back to this chapter's index</a>
+ <a href="toc.html">Back to this chapter's index</a>
</td>
<td>
<a href="../index.html">Back to the tutorial index</a>
<address><a href="mailto:schrage@gaia.iwr.uni-heidelberg.de">Jan Schrage</a></address>
<p>
-Last modified: Tue Mar 23 1999
+Last modified: $Date$
</p>
</body>
</html>
<table class="navbar">
<tr>
<td>
- <a href="index.html">Back to this chapter's index</a>
+ <a href="toc.html">Back to this chapter's index</a>
</td>
<td>
<a href="../index.html">Back to the tutorial index</a>
<address>
<a href="mailto:schrage@gaia.iwr.uni-heidelberg.de">Jan Schrage</a></address>
<p>
-Last modified: Tue Mar 23 1999
+Last modified: $Date$
</p>
</body>
</html>
<table class="navbar">
<tr>
<td>
- <a href="index.html">Back to this chapter's index</a>
+ <a href="toc.html">Back to this chapter's index</a>
</td>
<td>
<a href="../index.html">Back to the tutorial index</a>
<address><a href="mailto:schrage@gaia.iwr.uni-heidelberg.de">Jan Schrage</a></address>
<p>
-Last modified: Tue Mar 23 1999
+Last modified: $Date$
</p>
</body>
</html>
Jan Schrage <schrage@gaia.iwr.uni-heidelberg.de> 1999
-->
-<title></title>
<link href="../dealtut.css" rel="StyleSheet" title="deal.II Tutorial">
<meta name="author" content="Jan Schrage <schrage@gaia.iwr.uni-heidelberg.de>">
<meta name="keywords" content="deal.II,deal.II tutorial,deal II">
<!-- Title Frame -->
-<img src="../../pictures/deal10.gif" alt="DEAL Logo" align="left" hspace=20>
-<h1>The deal.II tutorial - Chapter 1 - The Laplace Problem</h1>
+<img src="../../pictures/deal10.gif" alt="DEAL Logo" align="left" hspace=20 class="chapter_title">
+<h1 class="chapter_title">The deal.II tutorial - Chapter 1 - The Laplace Problem</h1>
</body>
</html>
<address>
<a href="mailto:schrage@gaia.iwr.uni-heidelberg.de">Jan Schrage</a></address>
<p>
-Last modified: Tue Mar 23 1999
+Last modified: $DateĀ§
</p>
</body>
</html>
<table class="navbar">
<tr>
<td>
- <a href="index.html">Back to this chapter's index</a>
+ <a href="toc.html">Back to this chapter's index</a>
</td>
<td>
<a href="../index.html">Back to the tutorial index</a>
<address><a href="mailto:schrage@gaia.iwr.uni-heidelberg.de">Jan Schrage</a></address>
<p>
-Last modified: Tue Mar 23 1999
+Last modified: $Date$
</p>
</body>
</html>
body { bgcolor: white; background-color: white; }
-span.parhead { font-weight: bold;
-
+span.parhead { font-weight: bold;
}
span.example { font-weight: bold;
<table class="navbar">
<tr>
<td>
- <a href="index.html">Back to this chapter's index</a>
+ <a href="toc.html">Back to this chapter's index</a>
</td>
<td>
<a href="../index.html">Back to the tutorial index</a>
<address>
<a href="mailto:schrage@gaia.iwr.uni-heidelberg.de">Jan Schrage</a></address>
<p>
-Last modified:
+Last modified: $Date$
</p>
</body>
</html>