Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
tutorials
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
documentation
tutorials
Merge requests
!1
electrostatic tutorial
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
electrostatic tutorial
Electrostatic
into
master
Overview
0
Commits
1
Pipelines
0
Changes
2
Merged
Christophe Geuzaine
requested to merge
Electrostatic
into
master
7 years ago
Overview
0
Commits
1
Pipelines
0
Changes
2
0
0
Merge request reports
Viewing commit
62dca156
Show latest version
2 files
+
234
−
0
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
62dca156
electrostatic tutorial
· 62dca156
François Henrotte
authored
7 years ago
Electrostatic/microstrip.geo
0 → 100644
+
57
−
0
View file @ 62dca156
Edit in single-file editor
Open in Web IDE
/* -------------------------------------------------------------------
File "mStrip.geo"
This file is the geometrical description used by GMSH to produce
the file "mStrip.msh".
------------------------------------------------------------------- */
/* 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.
;
/* Definition of parameters for local mesh dimensions */
s
=
1.
;
p0
=
h
/
10.
*
s
;
pLine0
=
w
/
2.
/
10.
*
s
;
pLine1
=
w
/
2.
/
50.
*
s
;
pxBox
=
xBox
/
10.
*
s
;
pyBox
=
yBox
/
8.
*
s
;
/* Definition of gemetrical points */
Point
(
1
)
=
{
0
,
0
,
0
,
p0
}
;
Point
(
2
)
=
{
xBox
,
0
,
0
,
pxBox
}
;
Point
(
3
)
=
{
xBox
,
h
,
0
,
pxBox
}
;
Point
(
4
)
=
{
0
,
h
,
0
,
pLine0
}
;
Point
(
5
)
=
{
w
/
2.
,
h
,
0
,
pLine1
}
;
Point
(
6
)
=
{
0
,
h
+
t
,
0
,
pLine0
}
;
Point
(
7
)
=
{
w
/
2.
,
h
+
t
,
0
,
pLine1
}
;
Point
(
8
)
=
{
0
,
yBox
,
0
,
pyBox
}
;
Point
(
9
)
=
{
xBox
,
yBox
,
0
,
pyBox
}
;
/* Definition of gemetrical lines */
Line
(
1
)
=
{
1
,
2
};
Line
(
2
)
=
{
2
,
3
};
Line
(
3
)
=
{
3
,
9
};
Line
(
4
)
=
{
9
,
8
};
Line
(
5
)
=
{
8
,
6
};
Line
(
7
)
=
{
4
,
1
};
Line
(
8
)
=
{
5
,
3
};
Line
(
9
)
=
{
4
,
5
};
Line
(
10
)
=
{
6
,
7
};
Line
(
11
)
=
{
5
,
7
};
/* Definition of geometrical surfaces */
Line
Loop
(
12
)
=
{
8
,
-
2
,
-
1
,
-
7
,
9
};
Plane
Surface
(
13
)
=
{
12
};
Line
Loop
(
14
)
=
{
10
,
-
11
,
8
,
3
,
4
,
5
};
Plane
Surface
(
15
)
=
{
14
};
/* Definition of Physical entities (surfaces, lines). The Physical
entities tell GMSH the elements and their associated region numbers
to save in the file 'mStrip.msh'. For example, the Region
111 is made of elements of surface 13, while the Region 121 is
made of elements of lines 9, 10 and 11 */
Physical
Surface
(
101
)
=
{
15
}
;
/* Air */
Physical
Surface
(
111
)
=
{
13
}
;
/* Diel1 */
Physical
Line
(
120
)
=
{
1
}
;
/* Ground */
Physical
Line
(
121
)
=
{
9
,
10
,
11
}
;
/* Line */
Physical
Line
(
130
)
=
{
2
,
3
,
4
}
;
/* SurfInf */
Loading