27 May 2021 02:48:02 PM
WATHEN_TEST
C version
Test WATHEN.
TEST01
Assemble, factor and solve a Wathen system
defined by WATHEN_GE.
Elements in X direction NX = 4
Elements in Y direction NY = 4
Number of elements = 16
Number of nodes N = 65
Maximum solution error is 2.55351e-15
TEST02
Assemble, factor and solve a Wathen system
using WATHEN_GB.
Elements in X direction NX = 4
Elements in Y direction NY = 4
Number of elements = 16
Number of nodes N = 65
Lower bandwidth ML = 16
Upper bandwidth MU = 16
Maximum solution error is 2.55351e-15
TEST05
For various problem sizes and storage schemes,
measure the storage used for the Wathen system.
Predicted Observed
GE Band Band Band Sparse
NX Elements Nodes storage width width storage storage
1 1 8 64 15 15 176 64
2 4 21 441 21 21 651 221
4 16 65 4225 33 33 3185 817
8 64 225 50625 57 57 19125 3137
16 256 833 693889 105 105 130781 12289
32 1024 3201 10246401 201 201 963501 48641
TEST06
For various problem sizes,
time the assembly and factorization of a Wathen system
using the WATHEN_GE function.
NX Elements Nodes Storage Assembly Factor Error
1 1 8 64 2.00e-06 3.00e-06 1.58e-15
2 4 21 441 3.00e-06 1.40e-05 3.06e-15
4 16 65 4225 2.00e-05 1.18e-04 2.55e-15
8 64 225 50625 3.19e-04 1.77e-03 2.00e-15
16 256 833 693889 4.14e-03 3.38e-02 1.40e-13
32 1024 3201 10246401 4.85e-02 8.57e-01 1.19e-14
TEST07
For various problem sizes,
time the assembly and factorization of a Wathen system
using the WATHEN_GB function.
NX Elements Nodes Storage Assembly Factor Error
1 1 8 176 2.00e-06 3.00e-06 1.58e-15
2 4 21 651 4.00e-06 1.00e-05 3.06e-15
4 16 65 3185 1.20e-05 4.80e-05 2.55e-15
8 64 225 19125 6.70e-05 3.68e-04 2.00e-15
16 256 833 130781 4.44e-04 4.39e-03 1.40e-13
32 1024 3201 963501 5.17e-03 5.36e-02 1.19e-14
TEST08
For various problem sizes,
time the assembly and factorization of a Wathen system
WATHEN_GE/WATHEN_GB
NX Elements Nodes Storage Assembly Factor Error
WATHEN_GE 1 1 8 64 2.00e-06 3.00e-06 1.58e-15
WATHEN_GB 1 1 8 176 2.00e-06 3.00e-06 1.58e-15
WATHEN_GE 2 4 21 441 3.00e-06 1.10e-05 3.06e-15
WATHEN_GB 2 4 21 651 3.00e-06 9.00e-06 3.06e-15
WATHEN_GE 4 16 65 4225 1.50e-05 9.00e-05 2.55e-15
WATHEN_GB 4 16 65 3185 1.30e-05 4.80e-05 2.55e-15
WATHEN_GE 8 64 225 50625 1.42e-04 1.35e-03 2.00e-15
WATHEN_GB 8 64 225 19125 6.70e-05 3.69e-04 2.00e-15
WATHEN_GE 16 256 833 693889 1.89e-03 3.19e-02 1.40e-13
WATHEN_GB 16 256 833 130781 4.14e-04 4.28e-03 1.40e-13
WATHEN_GE 32 1024 3201 10246401 4.92e-02 8.55e-01 1.19e-14
WATHEN_GB 32 1024 3201 963501 3.77e-03 5.34e-02 1.19e-14
TEST10
Assemble, factor and solve a Wathen system
defined by WATHEN_GE and CG_GE.
Elements in X direction NX = 1
Elements in Y direction NY = 1
Number of elements = 1
Number of nodes N = 8
Maximum solution error is 1.04083e-15
TEST11
Assemble, factor and solve a Wathen system
defined by WATHEN_ST and CG_ST.
Elements in X direction NX = 1
Elements in Y direction NY = 1
Number of elements = 1
Number of nodes N = 8
Number of nonzeros NZ_NUM = 64
Maximum solution error is 9.99201e-16
TEST115
Assemble, factor and solve a Wathen system
using WATHEN_GB and CG_GB.
Elements in X direction NX = 4
Elements in Y direction NY = 4
Number of elements = 16
Number of nodes N = 65
Lower bandwidth ML = 16
Upper bandwidth MU = 16
Maximum solution error is 0.00122056
wathen_xy_test
wathen_xy returns the (X,Y) coordinates of nodes in the
Wathen finite element system.
k i j x y
0 0 0 0.0000 0.0000
1 1 0 0.1667 0.0000
2 2 0 0.3333 0.0000
3 3 0 0.5000 0.0000
4 4 0 0.6667 0.0000
5 5 0 0.8333 0.0000
6 6 0 1.0000 0.0000
7 0 1 0.0000 0.1667
8 1 1 0.3333 0.1667
9 2 1 0.6667 0.1667
10 3 1 1.0000 0.1667
11 0 2 0.0000 0.3333
12 1 2 0.1667 0.3333
13 2 2 0.3333 0.3333
14 3 2 0.5000 0.3333
15 4 2 0.6667 0.3333
16 5 2 0.8333 0.3333
17 6 2 1.0000 0.3333
18 0 3 0.0000 0.5000
19 1 3 0.3333 0.5000
20 2 3 0.6667 0.5000
21 3 3 1.0000 0.5000
22 0 4 0.0000 0.6667
23 1 4 0.1667 0.6667
24 2 4 0.3333 0.6667
25 3 4 0.5000 0.6667
26 4 4 0.6667 0.6667
27 5 4 0.8333 0.6667
28 6 4 1.0000 0.6667
29 0 5 0.0000 0.8333
30 1 5 0.3333 0.8333
31 2 5 0.6667 0.8333
32 3 5 1.0000 0.8333
33 0 6 0.0000 1.0000
34 1 6 0.1667 1.0000
35 2 6 0.3333 1.0000
36 3 6 0.5000 1.0000
37 4 6 0.6667 1.0000
38 5 6 0.8333 1.0000
39 6 6 1.0000 1.0000
WATHEN_TEST
Normal end of execution.
27 May 2021 02:48:04 PM
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
C 代码 比较存储方案.rar (11个子文件)
wathen
wathen.sh 203B
._wathen_prb.sh 4KB
._wathen.h 4KB
._wathen_prb.c 4KB
._wathen.c 4KB
._wathen.sh 4KB
wathen.c 63KB
wathen.h 2KB
wathen_test
wathen_test.txt 6KB
wathen_test.c 22KB
wathen_test.sh 388B
共 11 条
- 1
资源评论
卷积神经网络
- 粉丝: 342
- 资源: 8460
下载权益
C知道特权
VIP文章
课程特权
开通VIP
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功