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
909a2a63
"git@gitlab.onelab.info:lrp/gmsh.git" did not exist on "c71156cdc1e1ea7c3a040f3146edeed6441f26f6"
Commit
909a2a63
authored
5 years ago
by
Guillaume Demesy
Browse files
Options
Downloads
Patches
Plain Diff
formatting : Nmax
parent
4ed79d92
No related branches found
No related tags found
1 merge request
!4
Grating3d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
DiffractionGratings/grating3D.pro
+5
-5
5 additions, 5 deletions
DiffractionGratings/grating3D.pro
DiffractionGratings/grating3D_data_torus.geo
+1
-1
1 addition, 1 deletion
DiffractionGratings/grating3D_data_torus.geo
with
6 additions
and
6 deletions
DiffractionGratings/grating3D.pro
+
5
−
5
View file @
909a2a63
...
...
@@ -178,13 +178,13 @@ Function{
dephY
[]
=
Exp
[
I
[]
*
CompY
[
k1
[]]
*
period_y
];
// Fourier coefficients variables
Nb_ordre
=
2
*
N
_d_order
+
1
;
Nb_ordre
=
2
*
N
max
+
1
;
For
i
In
{
0
:
Nb_ordre
-
1
}
alpha
~
{
i
}[]
=
-
CompX
[
k1
[]]
+
2
*
Pi
/
period_x
*
(
i
-
N
_d_order
);
alpha
~
{
i
}[]
=
-
CompX
[
k1
[]]
+
2
*
Pi
/
period_x
*
(
i
-
N
max
);
expialphax
~
{
i
}[]
=
Exp
[
I
[]
*
alpha
~
{
i
}[]
*
X
[]];
EndFor
For
j
In
{
0
:
Nb_ordre
-
1
}
beta
~
{
j
}[]
=
-
CompY
[
k1
[]]
+
2
*
Pi
/
period_y
*
(
j
-
N
_d_order
);
beta
~
{
j
}[]
=
-
CompY
[
k1
[]]
+
2
*
Pi
/
period_y
*
(
j
-
N
max
);
expibetay
~
{
j
}[]
=
Exp
[
I
[]
*
beta
~
{
j
}[]
*
Y
[]];
EndFor
For
i
In
{
0
:
Nb_ordre
-
1
}
...
...
@@ -338,7 +338,7 @@ PostProcessing {
1
/
(
gammar
~
{
i
}
~
{
j
}[]
*-
CompZ
[
k1
[]])
*
((
gammar
~
{
i
}
~
{
j
}[]
^
2
+
alpha
~
{
i
}[]
^
2
)
*
SquNorm
[
$
int_x_r
~
{
i
}
~
{
j
}]
+
(
gammar
~
{
i
}
~
{
j
}[]
^
2
+
beta
~
{
j
}[]
^
2
)
*
SquNorm
[
$
int_y_r
~
{
i
}
~
{
j
}]
+
2
*
alpha
~
{
i
}[]
*
beta
~
{
j
}[]
*
Re
[
$
int_x_r
~
{
i
}
~
{
j
}
*
Conj
[
$
int_y_r
~
{
i
}
~
{
j
}]])
]
;
In
SurfIntTop
;
}
}
}
{
Name
numbering_ij
~
{
i
}
~
{
j
}
;
Value
{
Term
{
Type
Global
;
[
Vector
[
i
-
N
b_ordre
,
j
-
Nb_ordre
,
0
]]
;
In
SurfIntBot
;
}
}
}
{
Name
numbering_ij
~
{
i
}
~
{
j
}
;
Value
{
Term
{
Type
Global
;
[
Vector
[
i
-
N
max
,
j
-
Nmax
,
0
]]
;
In
SurfIntBot
;
}
}
}
EndFor
EndFor
...
...
@@ -422,7 +422,7 @@ PostOperation {
EndFor
For
i
In
{
0
:
Nb_ordre
-
1
}
For
j
In
{
0
:
Nb_ordre
-
1
}
Print
[
numbering_ij
~
{
i
}
~
{
j
}[
SurfIntBot
],
OnRegion
SurfIntBot
,
File
StrCat
[
myDir
,
"numbering_ij.txt"
],
Format
Table
];
Print
[
numbering_ij
~
{
i
}
~
{
j
}[
SurfIntBot
],
OnRegion
SurfIntBot
,
File
>
StrCat
[
myDir
,
"numbering_ij.txt"
],
Format
Table
];
EndFor
EndFor
}
...
...
This diff is collapsed.
Click to expand it.
DiffractionGratings/grating3D_data_torus.geo
+
1
−
1
View file @
909a2a63
...
...
@@ -50,7 +50,7 @@ DefineConstant[
scat_lc
=
{
20
,
Name
StrCat
[
pp5
,
"/2Scatterer absolute mesh size [nm]"
]},
PML_top
=
{
lambda0
*
1.5
,
Name
StrCat
[
pp5
,
"/4PML top thickness [nm]"
]},
PML_bot
=
{
lambda0
*
1.5
,
Name
StrCat
[
pp5
,
"/5PML bot thickness [nm]"
]},
N
_d_order
=
{
1
,
Name
StrCat
[
pp5
,
"/6
N
umber of non specular order to output [-]"
]},
N
max
=
{
1
,
Name
StrCat
[
pp5
,
"/6
Max n
umber of non specular order to output [-]"
]},
refine_mesh_L1
=
{
1
,
Name
StrCat
[
pp5
,
"/7refine layers/1refine mesh layer 1 [-]"
]},
refine_mesh_L2
=
{
1
,
Name
StrCat
[
pp5
,
"/7refine layers/2refine mesh layer 2 [-]"
]},
refine_mesh_L3
=
{
1
,
Name
StrCat
[
pp5
,
"/7refine layers/3refine mesh layer 3 [-]"
]},
...
...
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