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 @@ ...@@ -14,6 +14,13 @@
Run (button at the bottom of the left panel) 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"; Include "R_circuit_common.pro";
// FEM domain group data // FEM domain group data
......
/* ------------------------------------------------------------------- /* -------------------------------------------------------------------
File "microstrip.geo" File "microstrip.geo"
This file is the geometrical description used by GMSH to produce This file is the geometrical description used by Gmsh to produce
the file "microstrip.msh". the mesh file "microstrip.msh" that is read by GetDP.
------------------------------------------------------------------- */ ------------------------------------------------------------------- */
/* Definition of some parameters for geometrical dimensions, i.e. /* Definition of some parameters for geometrical dimensions, i.e. h (height of
h (height of 'Diel1'), w (width of 'Line'), t (thickness of 'Line') 'Diel1'), w (width of 'Line'), t (thickness of 'Line') xBox (width of the air
xBox (width of the air box) and yBox (height of the air box) */ box) and yBox (height of the air box) */
h = 1.e-3 ; w = 4.72e-3 ; t = 0.035e-3 ; h = 1.e-3 ; w = 4.72e-3 ; t = 0.035e-3 ;
xBox = w/2. * 6. ; yBox = h * 12. ; xBox = w/2. * 6. ; yBox = h * 12. ;
...@@ -43,12 +43,12 @@ Line(11) = {5,7}; ...@@ -43,12 +43,12 @@ Line(11) = {5,7};
Line Loop(12) = {1, 2, -8, -9, 7}; Plane Surface(13) = {12}; 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}; Line Loop(14) = {10,-11,8,3,4,5}; Plane Surface(15) = {14};
/* Definition of Physical entities (surfaces, lines). /* Definition of Physical entities (surfaces, lines). The definition of
The definition of Physical entities (Surfaces and Lines) Physical entities (Surfaces and Lines) tells Gmsh the elements and associated
tells GMSH the elements and associated region numbers region numbers that have to be saved in the mesh file 'microstrip.msh'. For
that have to be saved in the mesh file 'microstrip.msh'. example, Region 111 is made of the triangle elements of the geometric surface
For example, Region 111 is made of the triangle elements of the geometric surface 13, 13, whereas Region 121 is made of line elements of the geometric lines 9, 10
whereas Region 121 is made of line elements of the geometric lines 9, 10 and 11. */ and 11. */
Physical Surface ("Air", 101) = {15}; Physical Surface ("Air", 101) = {15};
Physical Surface ("Dielectric", 111) = {13}; Physical Surface ("Dielectric", 111) = {13};
......
/* ------------------------------------------------------------------- /* -------------------------------------------------------------------
File "microstrip.geo" File "floating.geo": copy of "microstrip.geo" from Tutorial 1
This file is the geometrical description used by GMSH to produce
the file "microstrip.msh".
------------------------------------------------------------------- */ ------------------------------------------------------------------- */
/* Definition of some parameters for geometrical dimensions, i.e. /* Definition of some parameters for geometrical dimensions, i.e. h (height of
h (height of 'Diel1'), w (width of 'Line'), t (thickness of 'Line') 'Diel1'), w (width of 'Line'), t (thickness of 'Line') xBox (width of the air
xBox (width of the air box) and yBox (height of the air box) */ box) and yBox (height of the air box) */
h = 1.e-3 ; w = 4.72e-3 ; t = 0.035e-3 ; h = 1.e-3 ; w = 4.72e-3 ; t = 0.035e-3 ;
xBox = w/2. * 6. ; yBox = h * 12. ; xBox = w/2. * 6. ; yBox = h * 12. ;
...@@ -43,12 +40,12 @@ Line(11) = {5,7}; ...@@ -43,12 +40,12 @@ Line(11) = {5,7};
Line Loop(12) = {1, 2, -8, -9, 7}; Plane Surface(13) = {12}; 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}; Line Loop(14) = {10,-11,8,3,4,5}; Plane Surface(15) = {14};
/* Definition of Physical entities (surfaces, lines). /* Definition of Physical entities (surfaces, lines). The definition of
The definition of Physical entities (Surfaces and Lines) Physical entities (Surfaces and Lines) tells Gmsh the elements and associated
tells GMSH the elements and associated region numbers region numbers that have to be saved in the mesh file 'microstrip.msh'. For
that have to be saved in the mesh file 'microstrip.msh'. example, Region 111 is made of the triangle elements of the geometric surface
For example, Region 111 is made of the triangle elements of the geometric surface 13, 13, whereas Region 121 is made of line elements of the geometric lines 9, 10
whereas Region 121 is made of line elements of the geometric lines 9, 10 and 11. */ and 11. */
Physical Surface ("Air", 101) = {15}; Physical Surface ("Air", 101) = {15};
Physical Surface ("Dielectric", 111) = {13}; 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