📄 test11.di
字号:
17:27:50.4 27-Aug-1999-- >> % QMG test 11: miscellaneous tests.
17:27:50.4 27-Aug-1999-- >>
17:27:50.5 27-Aug-1999-- >> % test gm_addpropval & size control property
17:27:50.5 27-Aug-1999-- >>
17:27:50.5 27-Aug-1999-- >> % make a square
17:27:50.5 27-Aug-1999-- >> gradedsquare = gm_cpoly([0 0; 0 1; 1 1; 1 0], [0 1 1 1]');
17:27:50.5 27-Aug-1999-- >> gradedsquare{6}{1,0} = {'sizecontrol'; '(formula 1.005-%1)'};
17:27:50.5 27-Aug-1999-- >>
17:27:50.5 27-Aug-1999-- >> pr1 = gm_lookup_prop(gradedsquare, 1, 0, 'sizecontrol');
17:27:50.5 27-Aug-1999-- >>
17:27:50.5 27-Aug-1999-- >> show = 0;
17:27:50.5 27-Aug-1999-- >> global interactive
17:27:50.5 27-Aug-1999-- >> if length(interactive) > 0
show = 1;end17:27:50.5 27-Aug-1999-- >>
17:27:50.5 27-Aug-1999-- >> if show
disp(sprintf('prop = %s', pr1))end17:27:50.5 27-Aug-1999-- >>
17:27:50.5 27-Aug-1999-- >>
17:27:50.5 27-Aug-1999-- >> mesh = gmmeshgen(gradedsquare, 'show', show);
17:27:50.8 27-Aug-1999-- >>
17:27:50.8 27-Aug-1999-- >> if show
gmviz(mesh)end17:27:50.8 27-Aug-1999-- >>
17:27:50.8 27-Aug-1999-- >> asp = gmchecktri(gradedsquare,mesh);
Maximum aspect ratio = 11.0909 achieved insimplex #72 of topological entity mregion (2:0) which has vertices 20 21 55 Maximum global side length = 0.672681Minimum global altitude = 0.00146843Number of nodes = 62 number of elements = 9517:27:50.9 27-Aug-1999-- >>
17:27:50.9 27-Aug-1999-- >> [scrap, numvtx] = size(mesh{4});
17:27:50.9 27-Aug-1999-- >>
17:27:50.9 27-Aug-1999-- >> global aspprod
17:27:50.9 27-Aug-1999-- >> global meshsizesum
17:27:50.9 27-Aug-1999-- >>
17:27:50.9 27-Aug-1999-- >> if length(aspprod) > 0
aspprod = aspprod * asp; meshsizesum = meshsizesum + numvtx;end17:27:50.9 27-Aug-1999-- >>
17:27:50.9 27-Aug-1999-- >>
17:27:50.9 27-Aug-1999-- >> % test gmboundary
17:27:50.9 27-Aug-1999-- >>
17:27:50.9 27-Aug-1999-- >> m2 = gmboundary(mesh);
17:27:51.4 27-Aug-1999-- >> [scrap, numvtx] = size(m2{4});
17:27:51.4 27-Aug-1999-- >>
17:27:51.5 27-Aug-1999-- >> if length(aspprod) > 0
meshsizesum = meshsizesum + numvtx;end17:27:51.5 27-Aug-1999-- >>
17:27:51.5 27-Aug-1999-- >> % test gmq11read
17:27:51.5 27-Aug-1999-- >>
17:27:51.5 27-Aug-1999-- >> global QMG_DATA
17:27:51.5 27-Aug-1999-- >> tubeobj = gmq11read(fullfile(QMG_DATA, 'tubeobj.brp'));
17:27:52.9 27-Aug-1999-- >>
17:27:52.9 27-Aug-1999-- >> m = gmmeshgen(tubeobj, 'show', show);
17:28:02.0 27-Aug-1999-- >> [scrap, numvtx] = size(m{4});
17:28:02.0 27-Aug-1999-- >> asp = gmchecktri(tubeobj,m);
Maximum aspect ratio = 121.688 achieved insimplex #16005 of topological entity 3:0 (3:0) which has vertices 1928 1816 1960 3859 Maximum global side length = 0.346472Minimum global altitude = 0.000619213Number of nodes = 3909 number of elements = 1649717:28:07.2 27-Aug-1999-- >>
17:28:07.2 27-Aug-1999-- >> if length(aspprod) > 0
aspprod = aspprod * asp; meshsizesum = meshsizesum + numvtx;end17:28:07.2 27-Aug-1999-- >>
17:28:07.2 27-Aug-1999-- >>
17:28:07.2 27-Aug-1999-- >>
17:28:07.2 27-Aug-1999-- >>
17:28:07.2 27-Aug-1999-- >> % ------------------------------------------------------------------
17:28:07.2 27-Aug-1999-- >> % Copyright (c) 1999 by Cornell University. All rights reserved
17:28:07.2 27-Aug-1999-- >> % See the accompanying file 'Copyright' for authorship information,
17:28:07.2 27-Aug-1999-- >> % the terms of the license governing this software, and disclaimers
17:28:07.2 27-Aug-1999-- >> % concerning this software.
17:28:07.2 27-Aug-1999-- >> % ------------------------------------------------------------------
17:28:07.2 27-Aug-1999-- >> % This file is part of the QMG software.
17:28:07.2 27-Aug-1999-- >> % Version 2.0 of QMG, release date RELDATE.
17:28:07.3 27-Aug-1999-- >> % ------------------------------------------------------------------
17:28:07.3 27-Aug-1999-- >>
17:28:07.3 27-Aug-1999-- >>
17:28:07.3 27-Aug-1999-- >>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -