Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added gmsh and medit readers #47

Merged
merged 3 commits into from
Aug 23, 2024
Merged

added gmsh and medit readers #47

merged 3 commits into from
Aug 23, 2024

Conversation

nicolaslg
Copy link
Contributor

No description provided.

@nicolaslg nicolaslg linked an issue Aug 8, 2024 that may be closed by this pull request
Copy link

codacy-production bot commented Aug 8, 2024

Coverage summary from Codacy

See diff coverage on Codacy

Coverage variation Diff coverage
+1.94% (target: -1.00%) 97.70%
Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (de34a8c) 526 454 86.31%
Head commit (c4f62aa) 613 (+87) 541 (+87) 88.25% (+1.94%)

Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: <coverage of head commit> - <coverage of common ancestor commit>

Diff coverage details
Coverable lines Covered lines Diff coverage
Pull request (#47) 87 85 97.70%

Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: <covered lines added or modified>/<coverable lines added or modified> * 100%

See your quality gate settings    Change summary preferences

Codacy stopped sending the deprecated coverage status on June 5th, 2024. Learn more

@nicolaslg nicolaslg force-pushed the 5-gmsh-mesh-format-reading branch from 2566a87 to 999e844 Compare August 8, 2024 20:08
@nicolaslg nicolaslg force-pushed the 5-gmsh-mesh-format-reading branch from a350762 to fb2cc21 Compare August 8, 2024 20:33
@nicolaslg nicolaslg marked this pull request as ready for review August 8, 2024 20:37
@nicolaslg
Copy link
Contributor Author

nicolaslg commented Aug 8, 2024

It was written following https://gmsh.info/doc/texinfo/gmsh.html#MSH-file-format, more precisely the minimal ASCII MSH4.1 file provided in this section

$MeshFormat
4.1 0 8     MSH4.1, ASCII
$EndMeshFormat
$Nodes
1 6 1 6     1 entity bloc, 6 nodes total, min/max node tags: 1 and 6
2 1 0 6     2D entity (surface) 1, no parametric coordinates, 6 nodes
1             node tag #1
2             node tag #2
3             etc.
4
5
6
0. 0. 0.      node #1 coordinates (0., 0., 0.)
1. 0. 0.      node #2 coordinates (1., 0., 0.)
1. 1. 0.      etc.
0. 1. 0.
2. 0. 0.
2. 1. 0.
$EndNodes
$Elements
1 2 1 2     1 entity bloc, 2 elements total, min/max element tags: 1 and 2
2 1 3 2     2D entity (surface) 1, element type 3 (4-node quad), 2 elements
1 1 2 3 4     quad tag #1, nodes 1 2 3 4
2 2 5 6 3     quad tag #2, nodes 2 5 6 3
$EndElements
$NodeData
1           1 string tag:
"My view"     the name of the view ("My view")
1           1 real tag:
0.0           the time value (0.0)
3           3 integer tags:
0             the time step (0; time steps always start at 0)
1             1-component (scalar) field
6             6 associated nodal values
1 0.0       value associated with node #1 (0.0)
2 0.1       value associated with node #2 (0.1)
3 0.2       etc.
4 0.0
5 0.2
6 0.4
$EndNodeData

@nicolaslg nicolaslg merged commit f66cba8 into main Aug 23, 2024
4 checks passed
@nicolaslg nicolaslg deleted the 5-gmsh-mesh-format-reading branch August 23, 2024 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Gmsh mesh format reading
1 participant