Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
models
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
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
documentation
models
Commits
e31fb65b
Commit
e31fb65b
authored
5 years ago
by
Guillaume Demesy
Browse files
Options
Downloads
Patches
Plain Diff
testlink facets
parent
e84d6a68
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
DiffractionGratings/grating3D.pro
+12
-10
12 additions, 10 deletions
DiffractionGratings/grating3D.pro
DiffractionGratings/grating3D_data_2Dlamellar.geo
+9
-9
9 additions, 9 deletions
DiffractionGratings/grating3D_data_2Dlamellar.geo
with
21 additions
and
19 deletions
DiffractionGratings/grating3D.pro
+
12
−
10
View file @
e31fb65b
...
...
@@ -31,7 +31,8 @@ Group {
SurfDirichlet
=
Region
[{
401
,
402
}];
SurfBloch
=
Region
[{
SurfBlochYm
,
SurfBlochYp
}];
SurfBloch
=
Region
[{}];
// SurfBloch = Region[{SurfBlochXm,SurfBlochXp,SurfBlochYm,SurfBlochYp}];
L_1
=
Region
[{
L_1_temp
,
SurfIntTop
}];
L_6
=
Region
[{
L_6_temp
,
SurfIntBot
}];
...
...
@@ -214,8 +215,8 @@ Constraint {
}
{
Name
BlochX
;
Case
{
//
{ Region SurfBlochXp; Type LinkCplx ; RegionRef SurfBlochXm;
//
Coefficient dephX[]; Function Vector[$X-period_x,$Y,$Z] ; }
{
Region
SurfBlochXp
;
Type
LinkCplx
;
RegionRef
SurfBlochXm
;
Coefficient
dephX
[];
Function
Vector
[
$
X
-
period_x
,
$
Y
,
$
Z
]
;
}
}
}
{
Name
BlochY
;
...
...
@@ -269,7 +270,7 @@ FunctionSpace {
If
(
oi
==
2
)
{
Name
sn3
;
NameOfCoef
un3
;
Function
BF_Edge_3F_b
;
Support
Region
[
Omega
];
Entity
FacetsOf
[
Omega
,
Not
SurfBloch
];
}
{
Name
sn4
;
NameOfCoef
un4
;
Function
BF_Edge_3F_c
;
Support
Region
[
Omega
];
Entity
FacetsOf
[
Omega
,
Not
SurfBloch
];
}
{
Name
sn5
;
NameOfCoef
un5
;
Function
BF_Edge_4E
;
Support
Region
[
Omega
];
Entity
EdgesOf
[
Omega
,
Not
SurfBloch
];
}
{
Name
sn5
;
NameOfCoef
un5
;
Function
BF_Edge_4E
;
Support
Region
[
Omega
];
Entity
EdgesOf
[
Omega
,
Not
SurfBloch
];
}
EndIf
}
Constraint
{
...
...
@@ -280,14 +281,14 @@ FunctionSpace {
{
NameOfCoef
un2
;
EntityType
EdgesOf
;
NameOfConstraint
BlochY
;
}
{
NameOfCoef
un2
;
EntityType
EdgesOf
;
NameOfConstraint
Dirichlet
;
}
If
(
oi
==
2
)
//
{ NameOfCoef un3; EntityType FacetsOf ; NameOfConstraint BlochX; }
//
{ NameOfCoef un3; EntityType FacetsOf ; NameOfConstraint BlochY; }
{
NameOfCoef
un3
;
EntityType
FacetsOf
;
NameOfConstraint
BlochX
;
}
{
NameOfCoef
un3
;
EntityType
FacetsOf
;
NameOfConstraint
BlochY
;
}
{
NameOfCoef
un3
;
EntityType
FacetsOf
;
NameOfConstraint
Dirichlet
;
}
//
{ NameOfCoef un4; EntityType FacetsOf ; NameOfConstraint BlochX; }
//
{ NameOfCoef un4; EntityType FacetsOf ; NameOfConstraint BlochY; }
{
NameOfCoef
un4
;
EntityType
FacetsOf
;
NameOfConstraint
BlochX
;
}
{
NameOfCoef
un4
;
EntityType
FacetsOf
;
NameOfConstraint
BlochY
;
}
{
NameOfCoef
un4
;
EntityType
FacetsOf
;
NameOfConstraint
Dirichlet
;
}
//
{ NameOfCoef un5; EntityType EdgesOf ; NameOfConstraint BlochX; }
//
{ NameOfCoef un5; EntityType EdgesOf ; NameOfConstraint BlochY; }
{
NameOfCoef
un5
;
EntityType
EdgesOf
;
NameOfConstraint
BlochX
;
}
{
NameOfCoef
un5
;
EntityType
EdgesOf
;
NameOfConstraint
BlochY
;
}
{
NameOfCoef
un5
;
EntityType
EdgesOf
;
NameOfConstraint
Dirichlet
;
}
EndIf
}
...
...
@@ -414,6 +415,7 @@ PostOperation {
// Print [ epsr_xx , OnElementsOf Omega, File StrCat[myDir,"epsr_xx.pos"]];
// Print [ H1x , OnElementsOf Omega, File StrCat[myDir,"H1x.pos"]];
// Print [ Etot , OnElementsOf Omega, File StrCat[myDir,"Etot.pos"]];
Print
[
u
,
OnElementsOf
Omega
,
File
StrCat
[
myDir
,
"u.pos"
]];
// Print [ Htotx , OnElementsOf Omega, File StrCat[myDir,"Htotx.pos"]];
For
k
In
{
2
:
6
}
Print
[
Abs_L
~
{
k
}[
L
~
{
k
}],
OnGlobal
,
File
>
StrCat
[
myDir
,
Sprintf
[
"temp-Q_L_%g.txt"
,
k
]],
Format
Table
];
...
...
This diff is collapsed.
Click to expand it.
DiffractionGratings/grating3D_data_2Dlamellar.geo
+
9
−
9
View file @
e31fb65b
...
...
@@ -10,8 +10,8 @@ DefineConstant[
thetadeg
=
{
30
,
Name
StrCat
[
pp1
,
"/2theta0 [deg]"
]},
phideg
=
{
90
,
Name
StrCat
[
pp1
,
"/3phi0 [deg]"
]},
psideg
=
{
0
,
Name
StrCat
[
pp1
,
"/4psi0 [deg]"
]},
period_x
=
{
10
,
Name
StrCat
[
pp2
,
"/1X period [nm]"
]},
period_y
=
{
100
0
,
Name
StrCat
[
pp2
,
"/2Y period [nm]"
]},
period_x
=
{
10
0
,
Name
StrCat
[
pp2
,
"/1X period [nm]"
]},
period_y
=
{
100
,
Name
StrCat
[
pp2
,
"/2Y period [nm]"
]},
thick_L_1
=
{
200
,
Name
StrCat
[
pp2
,
"/3thickness layer 1 [nm] (superstrate)"
]},
thick_L_2
=
{
200
,
Name
StrCat
[
pp2
,
"/4thickness layer 2 [nm]"
]},
thick_L_3
=
{
1050
,
Name
StrCat
[
pp2
,
"/5thickness layer 3 [nm]"
]},
...
...
@@ -48,17 +48,17 @@ DefineConstant[
og
=
{
0
,
Name
StrCat
[
pp5
,
"/0geometrical order [-]"
]
,
Choices
{
0
=
"1"
,
1
=
"2"
}
},
oi
=
{
1
,
Name
StrCat
[
pp5
,
"/0interpolation order [-]"
],
Choices
{
0
=
"1"
,
1
=
"2"
}
},
paramaille
=
{
1
0
,
Name
StrCat
[
pp5
,
"/1Number of mesh elements per wavelength [-]"
]},
lc_scat
=
{
2
0
,
Name
StrCat
[
pp5
,
"/2Scatterer absolute mesh size [nm]"
]},
PML_top
=
{
lambda0
*
1
,
Name
StrCat
[
pp5
,
"/4PML top thickness [nm]"
]},
PML_bot
=
{
lambda0
/
5
,
Name
StrCat
[
pp5
,
"/5PML bot thickness [nm]"
]},
paramaille
=
{
0
.1
,
Name
StrCat
[
pp5
,
"/1Number of mesh elements per wavelength [-]"
]},
lc_scat
=
{
50
0
,
Name
StrCat
[
pp5
,
"/2Scatterer absolute mesh size [nm]"
]},
PML_top
=
{
100
,
Name
StrCat
[
pp5
,
"/4PML top thickness [nm]"
]},
PML_bot
=
{
100
,
Name
StrCat
[
pp5
,
"/5PML bot thickness [nm]"
]},
Nmax
=
{
1
,
Name
StrCat
[
pp5
,
"/6Number of non specular order to output [-]"
]},
refine_mesh_L_1
=
{
1
,
Name
StrCat
[
pp5
,
"/7refine layers/1refine mesh layer 1 [-]"
]},
refine_mesh_L_2
=
{
1
,
Name
StrCat
[
pp5
,
"/7refine layers/2refine mesh layer 2 [-]"
]},
refine_mesh_L_3
=
{
1
,
Name
StrCat
[
pp5
,
"/7refine layers/3refine mesh layer 3 [-]"
]},
refine_mesh_L_4
=
{
0.3
,
Name
StrCat
[
pp5
,
"/7refine layers/4refine mesh layer 4 [-]"
]},
refine_mesh_L_5
=
{
0.3
,
Name
StrCat
[
pp5
,
"/7refine layers/5refine mesh layer 5 [-]"
]},
refine_mesh_L_6
=
{
0.3
,
Name
StrCat
[
pp5
,
"/7refine layers/6refine mesh layer 6 [-]"
]},
refine_mesh_L_4
=
{
1
,
Name
StrCat
[
pp5
,
"/7refine layers/4refine mesh layer 4 [-]"
]},
refine_mesh_L_5
=
{
1
,
Name
StrCat
[
pp5
,
"/7refine layers/5refine mesh layer 5 [-]"
]},
refine_mesh_L_6
=
{
1
,
Name
StrCat
[
pp5
,
"/7refine layers/6refine mesh layer 6 [-]"
]},
InterpSampling
=
{
30
,
Name
StrCat
[
pp6
,
"/0Interpolation grid step [nm]"
]},
Flag_interp_cubic
=
{
0
,
Name
StrCat
[
pp6
,
"/1Interpolate on cubic grid?"
],
Choices
{
0
,
1
}
},
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment