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

Impose homogeneous Dirichlet condition on the top and right surfaces, instead...

Impose homogeneous Dirichlet condition on the top and right surfaces, instead of homogeneous Neumann. It's a bit more natural, amd it matches the small example in the getdp documentation.
parent 066e4c75
No related branches found
No related tags found
No related merge requests found
Pipeline #5495 passed
...@@ -35,8 +35,9 @@ ...@@ -35,8 +35,9 @@
(called "Electrode" below) and to 0 V on the ground. A homogeneous Neumann (called "Electrode" below) and to 0 V on the ground. A homogeneous Neumann
boundary condition (zero flux of the displacement field, i.e. n.d = 0) is boundary condition (zero flux of the displacement field, i.e. n.d = 0) is
imposed on the left boundary of the domain to account for the symmetry of the imposed on the left boundary of the domain to account for the symmetry of the
problem, as well as on the top and right boundaries that truncate the problem. The domain is truncated on the top and right with a homogeneous
simulation domain. */ Dirichlet boundary condition (v = 0), assumed to be imposed sufficiently far
away from the microstrip. */
Group { Group {
/* One starts by giving explicit meaningful names to the Physical regions /* One starts by giving explicit meaningful names to the Physical regions
...@@ -48,6 +49,7 @@ Group { ...@@ -48,6 +49,7 @@ Group {
Ground = Region[120]; Ground = Region[120];
Electrode = Region[121]; Electrode = Region[121];
SurfInf = Region[130];
/* We now define abstract regions to be used below in the definition of the /* We now define abstract regions to be used below in the definition of the
scalar electric potential formulation: scalar electric potential formulation:
...@@ -90,6 +92,7 @@ Constraint { ...@@ -90,6 +92,7 @@ Constraint {
Case { Case {
{ Region Ground; Value 0.; } { Region Ground; Value 0.; }
{ Region Electrode; Value 1.e-3; } { Region Electrode; Value 1.e-3; }
{ Region SurfInf; Value 0; }
} }
} }
} }
......
...@@ -85,11 +85,13 @@ Function { ...@@ -85,11 +85,13 @@ Function {
} }
Constraint { Constraint {
/* The Dirichlet boundary condition on the local electric potential is no /* The Dirichlet boundary condition on the local electric potential is only
longer used. The microstrip and the ground are herein treated as electrodes, used for the homogeneous condition on the top and right boundaries. The
whose voltage is imposed with the "SetGlobalPotential" constraint below. */ microstrip and the ground are now treated as electrodes, whose voltage is
imposed with the "SetGlobalPotential" constraint below. */
{ Name Dirichlet_Ele; Type Assign; { Name Dirichlet_Ele; Type Assign;
Case { Case {
{ Region SurfInf; Value 0; }
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment