Subject: [Fenics] [[email-masked]: [Branch ~fenics-core/fenics-doc/main] Rev 153: Add some missing files for biharmonic eqn.]

From: Anders Logg <[email-masked]>
Date: Wed, 1 Sep 2010 16:04:44 +0200

Shouldn't these files be in DOLFIN?

Or should we keep the .rst files in fenics-doc?

I guess that would make sense since they are not really useful as part
of DOLFIN, only as part of fenics-doc.

--
Anders

Subject: [Branch ~fenics-core/fenics-doc/main] Rev 153: Add some missing files for biharmonic eqn.
From: [email-masked]
To: Anders Logg <[email-masked]>
Date: Wed, 01 Sep 2010 13:57:22 -0000

------------------------------------------------------------
revno: 153
committer: Garth N. Wells <[email-masked]>
branch nick: fenics-doc
timestamp: Wed 2010-09-01 14:55:49 +0100
message:
  Add some missing files for biharmonic eqn.
added:
  source/demos/pde/biharmonic/cpp/documentation.rst
  source/demos/pde/biharmonic/python/documentation.rst
modified:
  source/conf.py
  source/demos/pde/biharmonic/common.txt

--
lp:fenics-doc
https://code.launchpad.net/~fenics-core/fenics-doc/main

You are subscribed to branch lp:fenics-doc.
To unsubscribe from this branch go to https://code.launchpad.net/~fenics-core/fenics-doc/main/+edit-subscription
=== modified file 'source/conf.py'
--- source/conf.py	2010-08-31 15:47:07 +0000
+++ source/conf.py	2010-09-01 13:55:49 +0000
@@ -217,9 +217,9 @@
                   'pointsize': '11pt',
                   'papersize': 'a4paper',
                   'fontenc': '',
-                  'preamble': '\usepackage{amssymb}'}
+                  'preamble': '\usepackage{amssymb} \usepackage{stmaryrd}'}
 
 # Parameters affecting the LaTeX PNGs in the HTML files
-#pngmath_latex_preamble = '\\usepackage{cmbright}'
+pngmath_latex_preamble = r" \usepackage{stmaryrd} "
 #pngmath_dvipng_args = ['-gamma 1.5', '-D 110']
 #pngmath_use_preview = True

=== modified file 'source/demos/pde/biharmonic/common.txt'
--- source/demos/pde/biharmonic/common.txt	2010-09-01 09:20:57 +0000
+++ source/demos/pde/biharmonic/common.txt	2010-09-01 13:55:49 +0000
@@ -36,9 +36,11 @@
 
 .. math::
    \sum_{K} \int_{K} \nabla^{2} v \nabla^{2} u \, dx \
-  - \int_{\Tilde{\Gamma}} \left<\nabla^{2} v \right> \left[\nabla u \cdot n \right] \, ds
-  - \int_{\Tilde{\Gamma}} \left[\nabla v \cdot n \right] \left<\nabla^{2} u \right>  \, ds
-  + \int_{\Tilde{\Gamma}} \frac{\alpha}{h} \left[ \nabla v \right] \left[ \nabla u \right] \, ds
+  - \int_{\Tilde{\Gamma}} \left<\nabla^{2} v \right> \llbracket\nabla u \cdot n \rrbracket \, ds
+  - \int_{\Tilde{\Gamma}} \llbracket\nabla v \cdot n \rrbracket \left<\nabla^{2} u \right>  \, ds
+  + \int_{\Tilde{\Gamma}} \frac{\alpha}{h} \llbracket \nabla v \rrbracket \llbracket \nabla u \rrbracket \, ds
   = \int_{\Omega} vf \, dx \quad \forall \ v \in V
 
 where . . . . . and :math:`\alpha \ge 0` is a penalty term.
+
+

=== added file 'source/demos/pde/biharmonic/cpp/documentation.rst'
--- source/demos/pde/biharmonic/cpp/documentation.rst	1970-01-01 00:00:00 +0000
+++ source/demos/pde/biharmonic/cpp/documentation.rst	2010-09-01 13:55:49 +0000
@@ -0,0 +1,19 @@
+.. Documentation for the biharmonic demo from DOLFIN.
+
+.. _demos_cpp_pde_biharmonic:
+
+
+Biharmonic equation
+===================
+
+.. include:: ../common.txt
+
+
+Implementation
+--------------
+
+The implementation is split in two files, a form file containing the definition
+of the variational forms expressed in UFL and the solver which is implemented
+in a C++ file.
+
+

=== added file 'source/demos/pde/biharmonic/python/documentation.rst'
--- source/demos/pde/biharmonic/python/documentation.rst	1970-01-01 00:00:00 +0000
+++ source/demos/pde/biharmonic/python/documentation.rst	2010-09-01 13:55:49 +0000
@@ -0,0 +1,21 @@
+.. Documentation for the biharmonic demo from DOLFIN.
+
+.. _demos_python_pde_biharmonic:
+
+Biharmonic equation
+===================
+
+This demo is implemented in a single Python file, :download:`demo.py`,
+which contains both the variational forms and the solver.
+
+.. include:: ../common.txt
+
+Implementation
+--------------
+
+
+Complete code
+-------------
+
+.. literalinclude:: demo.py
+   :start-after: # Begin demo