From 07deb7053f990b8e16d206d9e13d0811b22cb8ea Mon Sep 17 00:00:00 2001
From: Christophe Geuzaine <cgeuzaine@ulg.ac.be>
Date: Wed, 14 Mar 2018 19:07:46 +0100
Subject: [PATCH] pp

---
 CircuitCoupling/R_circuit.pro       |  7 +++++++
 Electrostatics/microstrip.geo       | 22 +++++++++++-----------
 ElectrostaticsFloating/floating.geo | 23 ++++++++++-------------
 3 files changed, 28 insertions(+), 24 deletions(-)

diff --git a/CircuitCoupling/R_circuit.pro b/CircuitCoupling/R_circuit.pro
index c93b642..02afd17 100644
--- a/CircuitCoupling/R_circuit.pro
+++ b/CircuitCoupling/R_circuit.pro
@@ -14,6 +14,13 @@
        Run (button at the bottom of the left panel)
    ------------------------------------------------------------------- */
 
+// This example shows how to implement a circuit with discrete elements in a
+// finite element simulation. Only lumped resistors, voltage- and
+// current-sources are used. There are four separate cubes, each with a certain
+// conductivity. The bottom of all cubes is kept at a constant voltage via the
+// constraint Voltage_3D. The top of the cubes are connected with a circuit
+// according the `R_circuit.jpg' schematic.
+
 Include "R_circuit_common.pro";
 
 // FEM domain group data
diff --git a/Electrostatics/microstrip.geo b/Electrostatics/microstrip.geo
index 8b791bd..ee8c8df 100644
--- a/Electrostatics/microstrip.geo
+++ b/Electrostatics/microstrip.geo
@@ -1,13 +1,13 @@
 /* -------------------------------------------------------------------
    File "microstrip.geo"
 
-   This file is the geometrical description used by GMSH to produce
-   the file "microstrip.msh".
+   This file is the geometrical description used by Gmsh to produce
+   the mesh file "microstrip.msh" that is read by GetDP.
    ------------------------------------------------------------------- */
 
-/* Definition of some parameters for geometrical dimensions, i.e.
-   h (height of 'Diel1'), w (width of 'Line'), t (thickness of 'Line')
-   xBox (width of the air box) and yBox (height of the air box) */
+/* Definition of some parameters for geometrical dimensions, i.e.  h (height of
+   'Diel1'), w (width of 'Line'), t (thickness of 'Line') xBox (width of the air
+   box) and yBox (height of the air box) */
 
 h = 1.e-3 ; w = 4.72e-3 ;  t = 0.035e-3 ;
 xBox = w/2. * 6. ;  yBox = h * 12. ;
@@ -43,12 +43,12 @@ Line(11) = {5,7};
 Line Loop(12) = {1, 2, -8, -9, 7};   Plane Surface(13) = {12};
 Line Loop(14) = {10,-11,8,3,4,5}; Plane Surface(15) = {14};
 
-/* Definition of Physical entities (surfaces, lines). 
-   The definition of Physical entities (Surfaces and Lines) 
-   tells GMSH the elements and associated region numbers
-   that have to be saved in the mesh file 'microstrip.msh'. 
-   For example, Region 111 is made of the triangle elements of the geometric surface 13, 
-   whereas Region 121 is made of line elements of the geometric lines 9, 10 and 11. */
+/* Definition of Physical entities (surfaces, lines).  The definition of
+   Physical entities (Surfaces and Lines) tells Gmsh the elements and associated
+   region numbers that have to be saved in the mesh file 'microstrip.msh'.  For
+   example, Region 111 is made of the triangle elements of the geometric surface
+   13, whereas Region 121 is made of line elements of the geometric lines 9, 10
+   and 11. */
 
 Physical Surface ("Air", 101) = {15};
 Physical Surface ("Dielectric", 111) = {13};
diff --git a/ElectrostaticsFloating/floating.geo b/ElectrostaticsFloating/floating.geo
index 8b791bd..88660c6 100644
--- a/ElectrostaticsFloating/floating.geo
+++ b/ElectrostaticsFloating/floating.geo
@@ -1,13 +1,10 @@
 /* -------------------------------------------------------------------
-   File "microstrip.geo"
-
-   This file is the geometrical description used by GMSH to produce
-   the file "microstrip.msh".
+   File "floating.geo": copy of "microstrip.geo" from Tutorial 1
    ------------------------------------------------------------------- */
 
-/* Definition of some parameters for geometrical dimensions, i.e.
-   h (height of 'Diel1'), w (width of 'Line'), t (thickness of 'Line')
-   xBox (width of the air box) and yBox (height of the air box) */
+/* Definition of some parameters for geometrical dimensions, i.e.  h (height of
+   'Diel1'), w (width of 'Line'), t (thickness of 'Line') xBox (width of the air
+   box) and yBox (height of the air box) */
 
 h = 1.e-3 ; w = 4.72e-3 ;  t = 0.035e-3 ;
 xBox = w/2. * 6. ;  yBox = h * 12. ;
@@ -43,12 +40,12 @@ Line(11) = {5,7};
 Line Loop(12) = {1, 2, -8, -9, 7};   Plane Surface(13) = {12};
 Line Loop(14) = {10,-11,8,3,4,5}; Plane Surface(15) = {14};
 
-/* Definition of Physical entities (surfaces, lines). 
-   The definition of Physical entities (Surfaces and Lines) 
-   tells GMSH the elements and associated region numbers
-   that have to be saved in the mesh file 'microstrip.msh'. 
-   For example, Region 111 is made of the triangle elements of the geometric surface 13, 
-   whereas Region 121 is made of line elements of the geometric lines 9, 10 and 11. */
+/* Definition of Physical entities (surfaces, lines).  The definition of
+   Physical entities (Surfaces and Lines) tells Gmsh the elements and associated
+   region numbers that have to be saved in the mesh file 'microstrip.msh'.  For
+   example, Region 111 is made of the triangle elements of the geometric surface
+   13, whereas Region 121 is made of line elements of the geometric lines 9, 10
+   and 11. */
 
 Physical Surface ("Air", 101) = {15};
 Physical Surface ("Dielectric", 111) = {13};
-- 
GitLab