1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
|
Default 1D mesh= Mesh(dimension=1, vertices=1, simplices=0)
1D mesh= Mesh(dimension=1, vertices=4, simplices=3)
Is empty? False
vertices= 0 : [ 0.5 ]
1 : [ 1.5 ]
2 : [ 2.1 ]
3 : [ 2.7 ]
simplices= [[0,1],[1,2],[2,3]]
volume= 2.200
simplices volume= [1,0.6,0.6]
is p= [1.3] in mesh? True
Nearest index( [1.8] )= 1
Nearest index( [1.8] ), found= True simplex= 1 coordinates= [0.5,0.5]
Nearest index( [-1.8] ), found= False simplex= 3 coordinates= []
Nearest index( [[-0.25], [2.25]] )= [0,2]
P1 gram=
[[ 0.333333 0.166667 0 0 ]
[ 0.166667 0.533333 0.1 0 ]
[ 0 0.1 0.4 0.1 ]
[ 0 0 0.1 0.2 ]]
2D mesh= Mesh(dimension=2, vertices=6, simplices=5)
volume= 1.750
simplices volume= [0.5,0.25,0.125,0.375,0.5]
Nearest index( [1.8, 1.8] )= 4
Nearest index( [[-0.25, -0.25], [2.25, 2.25]] )= [0,4]
P1 gram=
6x6
[[ 0.166667 0.0416667 0.0833333 0 0 0.0416667 ]
[ 0.0416667 0.125 0.0625 0.0208333 0 0 ]
[ 0.0833333 0.0625 0.291667 0.03125 0.0416667 0.0729167 ]
[ 0 0.0208333 0.03125 0.0625 0.0104167 0 ]
[ 0 0 0.0416667 0.0104167 0.0833333 0.03125 ]
[ 0.0416667 0 0.0729167 0 0.03125 0.145833 ]]
3D mesh= Mesh(dimension=3, vertices=8, simplices=6)
volume= 1.000
simplices volume= [0.166667,0.166667,0.166667,0.166667,0.166667,0.166667]
Nearest index( [1.8, 1.8, 1.8] )= 7
Nearest index( [[-0.25, -0.25, -0.25], [2.25, 2.25, 2.25]] )= [0,7]
P1 gram=
8x8
[[ 0.0166667 0.00833333 0.00833333 0 0.00833333 0 0 0 ]
[ 0.00833333 0.0833333 0.025 0.0166667 0.025 0.0166667 0.0333333 0 ]
[ 0.00833333 0.025 0.05 0.00833333 0.0166667 0 0.0166667 0 ]
[ 0 0.0166667 0.00833333 0.05 0 0.0166667 0.025 0.00833333 ]
[ 0.00833333 0.025 0.0166667 0 0.05 0.00833333 0.0166667 0 ]
[ 0 0.0166667 0 0.0166667 0.00833333 0.05 0.025 0.00833333 ]
[ 0 0.0333333 0.0166667 0.025 0.0166667 0.025 0.0833333 0.00833333 ]
[ 0 0 0 0.00833333 0 0.00833333 0.00833333 0.0166667 ]]
True
ok
submesh=Mesh(dimension=2, vertices=5, simplices=2)
|