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
09afaac4
Commit
09afaac4
authored
5 years ago
by
Guillaume Demesy
Browse files
Options
Downloads
Patches
Plain Diff
new meshing sequence
parent
9a925d15
No related branches found
No related tags found
No related merge requests found
Pipeline
#5164
passed
5 years ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
DiffractionGratings/grating3D.geo
+22
-27
22 additions, 27 deletions
DiffractionGratings/grating3D.geo
with
22 additions
and
27 deletions
DiffractionGratings/grating3D.geo
+
22
−
27
View file @
09afaac4
...
...
@@ -99,22 +99,6 @@ If (tag_geom==6)
Volume
(
10
)
=
{
2
};
EndIf
L1_n
=
Sqrt
(
Abs
(
eps_re_L_1
));
L2_n
=
Sqrt
(
Abs
(
eps_re_L_2
));
L3_n
=
Sqrt
(
Abs
(
eps_re_L_3
));
L4_n
=
Sqrt
(
Abs
(
eps_re_L_4
));
L5_n
=
Sqrt
(
Abs
(
eps_re_L_5
));
L6_n
=
Sqrt
(
Abs
(
eps_re_L_6
));
Scat_n
=
2
;
PML_lc
=
lambda_m
/
(
paramaille
*
.5
);
L1_lc
=
lambda_m
/
(
paramaille
*
L1_n
);
L2_lc
=
lambda_m
/
(
paramaille
*
L2_n
);
L3_lc
=
lambda_m
/
(
paramaille
*
L3_n
);
L4_lc
=
lambda_m
/
(
paramaille
*
L4_n
);
L5_lc
=
lambda_m
/
(
paramaille
*
L5_n
);
L6_lc
=
lambda_m
/
(
paramaille
*
L6_n
);
Box
(
1
)
=
{
-
period_x
/
2
,
-
period_y
/
2
,
PML_bot_hh
,
period_x
,
period_y
,
PML_bot
};
Box
(
2
)
=
{
-
period_x
/
2
,
-
period_y
/
2
,
hh_L_6
,
period_x
,
period_y
,
thick_L_6
};
Box
(
3
)
=
{
-
period_x
/
2
,
-
period_y
/
2
,
hh_L_5
,
period_x
,
period_y
,
thick_L_5
};
...
...
@@ -205,18 +189,29 @@ pts_LAYER_L1() = PointsOf{ Physical Volume{7}; };
pts_PMLTOP
()
=
PointsOf
{
Physical
Volume
{
8
};
};
pts_ROD
()
=
PointsOf
{
Physical
Volume
{
9
};
};
// Characteristic Length{:} = PML_lc/5;
Characteristic
Length
{
:
}
=
PML_lc
;
Characteristic
Length
{
pts_LAYER_L1
()}
=
L1_lc
/
refine_mesh_L1
;
Characteristic
Length
{
pts_LAYER_L2
()}
=
L2_lc
/
refine_mesh_L2
;
Characteristic
Length
{
pts_LAYER_L6
()}
=
L6_lc
/
refine_mesh_L6
;
Characteristic
Length
{
pts_LAYER_L5
()}
=
L5_lc
/
refine_mesh_L5
;
Characteristic
Length
{
pts_LAYER_L4
()}
=
L4_lc
/
refine_mesh_L4
;
Characteristic
Length
{
pts_LAYER_L3
()}
=
L3_lc
/
refine_mesh_L3
;
Characteristic
Length
{
pts_ROD
()}
=
scat_lc
;
If
(
tag_geom
==
3
)
// Split torus weird otherwise
lc_PML
=
lambda_m
/
(
paramaille
*
.5
);
list_lc
(
0
)
=
lc_PML
;
For
k
In
{
1
:
6
}
n_L
~
{
k
}
=
Sqrt
(
Abs
(
eps_re_L
~
{
k
}));
lc_L
~
{
k
}
=
lambda_m
/
(
paramaille
*
n_L
~
{
k
});
list_lc
(
7
-
k
)
=
lc_L
~
{
k
};
EndFor
list_lc
(
7
)
=
lc_PML
;
list_lc
(
8
)
=
lc_scat
;
// This helps meshing: The default behavior of the PointsOf techinque
// overides points belonging to several domains
meshing_sequence
()
=
{
1
,
8
,
2
,
3
,
5
,
6
,
7
,
4
,
9
};
// Start with coarsest
Characteristic
Length
{
:
}
=
lc_PML
;
For
k
In
{
0
:
8
}
which_dom
=
meshing_sequence
(
k
);
Characteristic
Length
{
PointsOf
{
Physical
Volume
{
which_dom
};}}
=
list_lc
(
which_dom
-
1
);
EndFor
If
(
tag_geom
==
3
)
// Split torus weird otherwise
Mesh
.
Algorithm
=
6
;
EndIf
// Mesh.Optimimze=1;
// Mesh.Optimimze
3D
=1;
// Mesh.SurfaceEdges = 0;
Mesh
.
VolumeEdges
=
0
;
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