Skip to content
Snippets Groups Projects
Commit 07deb705 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

pp

parent dc5ee46e
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -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
......
/* -------------------------------------------------------------------
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};
......
/* -------------------------------------------------------------------
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};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment