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
9579cfaf
Commit
9579cfaf
authored
5 years ago
by
Guillaume Demesy
Browse files
Options
Downloads
Patches
Plain Diff
test 2D
parent
60be2889
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
+2
-5
2 additions, 5 deletions
DiffractionGratings/grating3D.pro
DiffractionGratings/grating3D_data_2Dlamellar.geo
+8
-8
8 additions, 8 deletions
DiffractionGratings/grating3D_data_2Dlamellar.geo
with
10 additions
and
13 deletions
DiffractionGratings/grating3D.pro
+
2
−
5
View file @
9579cfaf
...
...
@@ -10,7 +10,6 @@ Include "grating3D_materials.pro"
myDir
=
"run_results3D/"
;
Group
{
// SubDomains
PMLbot
=
Region
[
1
];
L_6_temp
=
Region
[
2
];
...
...
@@ -322,6 +321,7 @@ PostProcessing {
Quantity
{
{
Name
u
;
Value
{
Local
{
[
{
u
}
];
In
Omega
;
Jacobian
JVol
;
}
}
}
{
Name
Etot
;
Value
{
Local
{
[
{
u
}
+
E1
[]
];
In
Omega
;
Jacobian
JVol
;
}
}
}
{
Name
Htot
;
Value
{
Local
{
[
H1
[]
-
I
[]
/
(
mur
[]
*
mu0
*
om0
)
*
{
Curl
u
}];
In
Omega
;
Jacobian
JVol
;
}
}
}
{
Name
Edif
;
Value
{
Local
{
[
{
u
}
+
E1d
[]
];
In
Omega
;
Jacobian
JVol
;
}
}
}
{
Name
E1
;
Value
{
Local
{
[
E1
[]
];
In
Omega
;
Jacobian
JVol
;
}
}
}
{
Name
H1y
;
Value
{
Local
{
[
CompY
[
H1
[]]
];
In
Omega
;
Jacobian
JVol
;
}
}
}
...
...
@@ -329,7 +329,7 @@ PostProcessing {
{
Name
source
;
Value
{
Local
{
[
source
[]
];
In
Omega
;
Jacobian
JVol
;
}
}
}
{
Name
epsr_xx
;
Value
{
Local
{
[
CompXX
[
epsr
[]]
];
In
Omega
;
Jacobian
JVol
;
}
}
}
{
Name
Damp_pml_top
;
Value
{
Local
{
[
Damp_pml_top
[]
];
In
Omega
;
Jacobian
JVol
;
}
}
}
{
Name
Poy_tot
;
Value
{
Local
{
[
0.5
*
Re
[
Cross
[{
u
}
+
E1
[]
,
Conj
[
H1
[]
-
I
[]
/
(
mur
[]
*
mu0
*
om0
)
*
{
Curl
u
}]]]
];
In
Omega
;
Jacobian
JVol
;
}
}
}
{
Name
Poy_tot
;
Value
{
Local
{
[
0.5
*
Re
[
Cross
[{
u
}
+
E1
[]
,
Conj
[
H1
[]
-
I
[]
/
(
mur
[]
*
mu0
*
om0
)
*
{
Curl
u
}]]]
];
In
Omega
;
Jacobian
JVol
;
}
}
}
For
k
In
{
2
:
6
}
{
Name
Abs_L
~
{
k
}
;
Value
{
Integral
{
[
ep0
*
om0
*
0.5
*
Fabs
[
eps_im_L
~
{
k
}]
*
(
SquNorm
[{
u
}
+
E1
[]])
/
(
Pinc
*
period_x
*
period_y
)
]
;
In
L
~
{
k
}
;
Integration
I1
;
Jacobian
JVol
;
}
}
}
...
...
@@ -364,9 +364,6 @@ PostProcessing {
}
}
PostOperation
{
{
Name
postop_helmholtz_vector
;
NameOfPostProcessing
postpro_helmholtz_vector
;
Operation
{
...
...
This diff is collapsed.
Click to expand it.
DiffractionGratings/grating3D_data_2Dlamellar.geo
+
8
−
8
View file @
9579cfaf
...
...
@@ -46,10 +46,10 @@ DefineConstant[
eps_re_L_6
=
{
-
44.9757
,
Name
StrCat
[
pp4
,
"/layer 6: real part of relative permittivity"
]},
eps_im_L_6
=
{
2.9524
,
Name
StrCat
[
pp4
,
"/layer 6: imag part of relative permittivity"
]},
paramaille
=
{
1
5
,
Name
StrCat
[
pp5
,
"/1Number of mesh elements per wavelength [-]"
]},
paramaille
=
{
1
0
,
Name
StrCat
[
pp5
,
"/1Number of mesh elements per wavelength [-]"
]},
lc_scat
=
{
30
,
Name
StrCat
[
pp5
,
"/2Scatterer absolute mesh size [nm]"
]},
PML_top
=
{
lambda0
,
Name
StrCat
[
pp5
,
"/4PML top thickness [nm]"
]},
PML_bot
=
{
lambda0
,
Name
StrCat
[
pp5
,
"/5PML bot thickness [nm]"
]},
PML_bot
=
{
lambda0
/
5
,
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 [-]"
]},
...
...
@@ -61,12 +61,12 @@ DefineConstant[
InterpSampling
=
{
30
,
Name
StrCat
[
pp6
,
"/0Interpolation grid step [nm]"
]},
Flag_interp_cubic
=
{
0
,
Name
StrCat
[
pp6
,
"/1Interpolate on cubic grid?"
],
Choices
{
0
,
1
}
},
FlagOutEtotCuts
=
{
0
,
Name
StrCat
[
pp6
,
"/2Output Total Electric Field cuts?"
]
,
Choices
{
0
,
1
}
},
FlagOutHtotCuts
=
{
1
,
Name
StrCat
[
pp6
,
"/
2
Output Total Magnetic Field cuts?"
]
,
Choices
{
0
,
1
}
},
FlagOutEscaCuts
=
{
0
,
Name
StrCat
[
pp6
,
"/
3
Output Scattered Electric Field cuts?"
]
,
Choices
{
0
,
1
}
},
FlagOutPoyCut
=
{
0
,
Name
StrCat
[
pp6
,
"/
4
Output Poynting cuts?"
]
,
Choices
{
0
,
1
}
},
FlagOutEtotFull
=
{
0
,
Name
StrCat
[
pp6
,
"/
5
Total Electric Field Full Output?"
]
,
Choices
{
0
,
1
}
},
FlagOutEscaFull
=
{
0
,
Name
StrCat
[
pp6
,
"/
6
Scattered Electric Field Full Output?"
]
,
Choices
{
0
,
1
}
},
FlagOutPoyFull
=
{
0
,
Name
StrCat
[
pp6
,
"/
7
Poynting Full Output?"
]
,
Choices
{
0
,
1
}
}
FlagOutHtotCuts
=
{
1
,
Name
StrCat
[
pp6
,
"/
3
Output Total Magnetic Field cuts?"
]
,
Choices
{
0
,
1
}
},
FlagOutEscaCuts
=
{
0
,
Name
StrCat
[
pp6
,
"/
4
Output Scattered Electric Field cuts?"
]
,
Choices
{
0
,
1
}
},
FlagOutPoyCut
=
{
0
,
Name
StrCat
[
pp6
,
"/
5
Output Poynting cuts?"
]
,
Choices
{
0
,
1
}
},
FlagOutEtotFull
=
{
1
,
Name
StrCat
[
pp6
,
"/
6
Total Electric Field Full Output?"
]
,
Choices
{
0
,
1
}
},
FlagOutEscaFull
=
{
0
,
Name
StrCat
[
pp6
,
"/
7
Scattered Electric Field Full Output?"
]
,
Choices
{
0
,
1
}
},
FlagOutPoyFull
=
{
0
,
Name
StrCat
[
pp6
,
"/
8
Poynting Full Output?"
]
,
Choices
{
0
,
1
}
}
];
lambda_m
=
lambda0
;
...
...
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