Skip to content

Quad dominant or all Quad mesh in 2D (preserving grain boundaries) #98

Answered by rquey
MiguelVCarvalho asked this question in Q&A
Discussion options

You must be logged in to vote

@MiguelVCarvalho - As of version 3.5.3-29, a mesh can be written under format msh version 4, using -format msh4. The mesh file can then be processed externally (by Gmsh) to get a full-quad mesh.

Here is an example:

neper -T -n 2 -dim 2
neper -M n2-id1.tess -format msh4
gmsh -2 n2-quad.geo

This is only a start - it will be integrated to Neper more thoroughly.

n2-quad.geo:

Merge "n2-id1.msh4";
Mesh.RecombinationAlgorithm = 1;
RecombineMesh;
Mesh.SecondOrderLinear = 1;
Mesh.SubdivisionAlgorithm = 1;
RefineMesh;

Replies: 6 comments 21 replies

Comment options

You must be logged in to vote
11 replies
@Mahdieh-karami
Comment options

@rquey
Comment options

@Mahdieh-karami
Comment options

@rquey
Comment options

@Mahdieh-karami
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
6 replies
@rquey
Comment options

@MiguelVCarvalho
Comment options

@rquey
Comment options

rquey Mar 7, 2023
Maintainer

@MiguelVCarvalho
Comment options

@rquey
Comment options

rquey Mar 8, 2023
Maintainer

Answer selected by rquey
Comment options

You must be logged in to vote
3 replies
@rquey
Comment options

rquey Mar 8, 2023
Maintainer

@mkasemer
Comment options

@rquey
Comment options

rquey Mar 8, 2023
Maintainer

Comment options

You must be logged in to vote
1 reply
@mkasemer
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants
Converted from issue

This discussion was converted from issue #45 on January 28, 2021 16:32.