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
b77a337d
Commit
b77a337d
authored
2 years ago
by
Guillaume Demesy
Browse files
Options
Downloads
Patches
Plain Diff
do not print raw fields
parent
272ba771
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
DiffractionGratings/grating3D.pro
+14
-12
14 additions, 12 deletions
DiffractionGratings/grating3D.pro
with
14 additions
and
12 deletions
DiffractionGratings/grating3D.pro
+
14
−
12
View file @
b77a337d
...
...
@@ -438,9 +438,10 @@
EndFor
EndFor
// Mmatrix computation : Retrieve the complex vector amplitude of the plane wave corresponding to the reflected specular order
// it is phase shifted by Exp[I[]*k1z[]*(thick_L_1+thick_L_2+thick_L_3)] because we measure it on SurfIntTop
// but it is better to have it at the surface on which the scatterer is relying (so that if there is no scatterer,
// it just corresponds to the usual definition of rs/rp for a simple diopter).
// it is phase shifted by Exp[I[]*k1z[]*(thick_L_1+thick_L_2+thick_L_3)] because we measure it on SurfIntTop...
// Is it better to compute it at the surface on which the scatterer is relying? (so that if there is no scatterer,
// it just corresponds to the usual definition of rs/rp for a simple diopter). Maybe... uncomment phasor if necessary.
// For the Mmatrix, we do not care about the phase.
{
Name
er_specular
;
Value
{
Term
{
Type
Global
;
[
// Exp[I[]*k1z[]*(thick_L_1+thick_L_2+thick_L_3)] *
Vector
[
$
int_x_r
~
{
ispecular
}
~
{
jspecular
},
...
...
@@ -464,15 +465,16 @@
PostOperation
{
{
Name
postop_helmholtz_vector
;
NameOfPostProcessing
postpro_helmholtz_vector
;
Operation
{
Print
[
uz
,
OnElementsOf
SurfIntTop
,
File
StrCat
[
myDir
,
"uz_ZP.pos"
]];
Print
[
uz
,
OnElementsOf
SurfIntBot
,
File
StrCat
[
myDir
,
"uz_ZM.pos"
]];
Print
[
epsr_xx
,
OnElementsOf
Omega
,
File
StrCat
[
myDir
,
"epsr_xx.pos"
]];
Print
[
u
,
OnElementsOf
Omega
,
File
StrCat
[
myDir
,
"Edif.pos"
]];
Print
[
Etot
,
OnElementsOf
Omega
,
File
StrCat
[
myDir
,
"Etot.pos"
]];
Print
[
CompZu
,
OnPlane
{
{
-
period_x
/
2
,
-
period_y
/
2
,
hh_L_6
+
0.5
*
nm
}
{
period_x
/
2
,
-
period_y
/
2
,
hh_L_6
+
0.5
*
nm
}
{
-
period_x
/
2
,
period_y
/
2
,
hh_L_6
+
0.5
*
nm
}
}
{
npts_interpX
,
npts_interpY
}
,
File
StrCat
[
myDir
,
"u_cut_ZM.pos"
]];
Print
[
CompZu
,
OnPlane
{
{
-
period_x
/
2
,
-
period_y
/
2
,
hh_L_1
+
thick_L_1
-
0.5
*
nm
}
{
period_x
/
2
,
-
period_y
/
2
,
hh_L_1
+
thick_L_1
-
0.5
*
nm
}
{
-
period_x
/
2
,
period_y
/
2
,
hh_L_1
+
thick_L_1
-
0.5
*
nm
}
}
{
npts_interpX
,
npts_interpY
}
,
File
StrCat
[
myDir
,
"u_cut_ZP.pos"
]];
// // Normal component of the unknown via Trace projection on L2 / extracted via OnPlane
// Print [ uz , OnElementsOf SurfIntTop, File StrCat[myDir,"uz_ZP.pos"]];
// Print [ uz , OnElementsOf SurfIntBot, File StrCat[myDir,"uz_ZM.pos"]];
// Print [ CompZu , OnPlane { {-period_x/2,-period_y/2,hh_L_6+0.5*nm} { period_x/2,-period_y/2,hh_L_6+0.5*nm} {-period_x/2, period_y/2,hh_L_6+0.5*nm} } {npts_interpX,npts_interpY} , File StrCat[myDir,"u_cut_ZM.pos"]];
// Print [ CompZu , OnPlane { {-period_x/2,-period_y/2,hh_L_1+thick_L_1-0.5*nm} { period_x/2,-period_y/2,hh_L_1+thick_L_1-0.5*nm} {-period_x/2, period_y/2,hh_L_1+thick_L_1-0.5*nm} } {npts_interpX,npts_interpY} , File StrCat[myDir,"u_cut_ZP.pos"]];
// // Debug : print opto-geometric parameters
// Print [ epsr_xx , OnElementsOf Omega, File StrCat[myDir,"epsr_xx.pos"]];
// // Debug : print raw u and Etot
// Print [ u , OnElementsOf Omega, File StrCat[myDir,"Edif.pos"]];
// Print [ Etot , OnElementsOf Omega, File StrCat[myDir,"Etot.pos"]];
If
(
FlagOutEscaFull
==
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