Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
110 changes: 110 additions & 0 deletions mfem/disc-nurbs.mesh
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
MFEM NURBS mesh v1.0

#
# MFEM Geometry Types (see mesh/geom.hpp):
#
# SEGMENT = 1
# SQUARE = 3
# CUBE = 5
#

dimension
2

elements
5
1 3 4 5 6 7
1 3 0 1 5 4
1 3 1 2 6 5
1 3 3 7 6 2
1 3 0 4 7 3

boundary
4
1 1 0 1
1 1 2 3
1 1 1 2
1 1 3 0

edges
12
0 0 1
0 4 5
0 7 6
0 3 2
1 1 2
1 5 6
1 4 7
1 0 3
2 0 4
2 1 5
2 2 6
2 3 7

vertices
8

knotvectors
3
2 3 0 0 0 1 1 1
2 3 0 0 0 1 1 1
2 3 0 0 0 1 1 1

weights
1 1 1 1 1 1 1 1

0.7071067811865475244
1
1
0.7071067811865475244

0.7071067811865475244
1
1
0.7071067811865475244

1
1
1
1

1
0.8535533905932737622
0.8535533905932737622
0.8535533905932737622
0.8535533905932737622

FiniteElementSpace
FiniteElementCollection: NURBS2
VDim: 2
Ordering: 1

-2 -2
2 -2
2 2
-2 2
-1 -1
1 -1
1 1
-1 1

0 -4
0 -1
0 1
0 4

4 0
1 0
-1 0
-4 0

-1.5 -1.5
1.5 -1.5
1.5 1.5
-1.5 1.5

0 0
0 -2.5
2.5 0
0 2.5
-2.5 0