Skip to content

Commit

Permalink
Add link to meshes
Browse files Browse the repository at this point in the history
  • Loading branch information
DorianDepriester committed Feb 3, 2021
1 parent 5c4fc52 commit f2597cb
Show file tree
Hide file tree
Showing 14 changed files with 391,755 additions and 22 deletions.
11,863 changes: 11,863 additions & 0 deletions docs/Periodic-x.msh

Large diffs are not rendered by default.

12,248 changes: 12,248 additions & 0 deletions docs/Periodic-xy.msh

Large diffs are not rendered by default.

675 changes: 675 additions & 0 deletions docs/Quad.msh

Large diffs are not rendered by default.

675 changes: 675 additions & 0 deletions docs/Tri.msh

Large diffs are not rendered by default.

138,267 changes: 138,267 additions & 0 deletions docs/brick-quadratic.msh

Large diffs are not rendered by default.

29,272 changes: 29,272 additions & 0 deletions docs/brick.msh

Large diffs are not rendered by default.

34,282 changes: 34,282 additions & 0 deletions docs/constant_elmtSize.msh

Large diffs are not rendered by default.

61,318 changes: 61,318 additions & 0 deletions docs/curvature.msh

Large diffs are not rendered by default.

33,288 changes: 33,288 additions & 0 deletions docs/default.msh

Large diffs are not rendered by default.

699 changes: 699 additions & 0 deletions docs/geometry.geo

Large diffs are not rendered by default.

73 changes: 55 additions & 18 deletions docs/html/meshing.html

Large diffs are not rendered by default.

45 changes: 41 additions & 4 deletions docs/meshing.m
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
% The geometry described by the object |G| can be meshed using the Gmsh
% software as follows:
mesh(G,'default.msh')
%%
% <../default.msh Open mesh file>
%

%%
% The above command results in a 1 element thick mesh, consisting in
Expand All @@ -24,6 +27,8 @@
% following illustrates the geometry when opening the mesh file with Gmsh:
%
% <<msh_cst.png>>
%
% <../constant_elmtSize.msh Open mesh file>
%

%%
Expand All @@ -42,13 +47,16 @@
% * $d_{GB}(\mathbf{x})$ the euclidean distance from the closest grain
% boundary.
%
% This can be done with the following command:
%
% mesh(G,meshFile,'ElementSize',s0,'gradient',k);
% If one wants to mesh with element size equal to 50 at grain boundaries
% and a slope of k=0.5:
%
mesh(G,'sizeGradient.msh','ElementSize',50,'gradient',0.5);

%%
%
% <<msh_gradient.png>>
%
% <../sizeGradient.msh Open mesh file>
%


Expand All @@ -60,7 +68,8 @@
%%
%
% <<msh_curvature.png>>
%
%
% <../curvature.msh Open mesh file>


%% Element type
Expand All @@ -70,6 +79,8 @@
%%
%
% <<msh_brick.png>>
%
% <../brick.msh Open mesh file>
%
% *Note:* In this case, the mesh will be hex-dominated. Indeed, the
% resulting mesh may still contain some wedge elements. To avoid it, use
Expand All @@ -78,12 +89,24 @@
%%
% Tetrahedron can also be used:
mesh(G,'tet.msh','ElementType','Tet');
%%
%
% <../tet.msh Open mesh file>


%%
% If you wants to work in 2D only, use triangular (|'Tri'|) or quandrangular
% (|'Quad'|) elements instead:
mesh(G,'Tri.msh','ElementType','Tri');
%%
%
% <../Tri.msh Open mesh file>

mesh(G,'Quad.msh','ElementType','Quad');
%%
%
% <../Quad.msh Open mesh file>


%%
% Again, |'Quad'| results in quad-dominated mesh. For pure Quad mesh (no
Expand All @@ -93,6 +116,9 @@
% The default element order is 1 (linear elements). It can be changed with
% the |ElementOrder| option. E.g.:
mesh(G,'brick-quadratic.msh','ElementType','Hex','ElementOrder',2);
%%
%
% <../brick-quadratic.msh Open mesh file>



Expand All @@ -102,12 +128,23 @@
% coordinates. This is usually requested for periodic conditions in FEM in
% order to take into account the medium surrounding the RoI.
mesh(G,'Periodic-x.msh','elementSize',100,'periodic','x');
%%
%
% <../Periodic-x.msh Open mesh file>

mesh(G,'Periodic-xy.msh','elementSize',100,'periodic','both');
%%
%
% <../Periodic-xy.msh Open mesh file>


%% Dump the geometry in an ASCII file
% The geometry can be exported into a Gmsh-readable (and somehow
% human-readable) format using the following command:
savegeo(G,'geometry.geo')
%%
%
% <../geometry.geo Open geo file>

%%
% <html><hr></html>
Expand Down

0 comments on commit f2597cb

Please sign in to comment.