initial upload

This commit is contained in:
2025-12-17 11:00:57 +08:00
parent 2bc7b24a71
commit a09a73537f
4614 changed files with 3478433 additions and 2 deletions

View File

@@ -0,0 +1,60 @@
*TEST createpts/brick (lagrit_input_createbrick)
* 3D and 2D
*
* Example to create a retangular grid that
* captures the geometry of an interface in the
* stair steps of a regular grid.
*
* Carl Gable 3/12/98
*
****************************************************
* Create and color a 3D brick mesh
* Create a cmo with hexahedral storage arrays
cmo/create/cmohex/ / / hex
* Define the exterior and a plane
* Define the material regions
surface/cube/reflect/box/0.0,0.0,0.0/1.0,1.0,1.0/
surface/cutplane/intrface/plane/0.,0.,.1/1.,0.,.5/1.,1.,.8
region/mattop/le cube and gt cutplane/
region/matbot/le cube and le cutplane
mregion/mattop/le cube and gt cutplane/
mregion/matbot/le cube and lt cutplane
* Create a rectangular grid
creatpts/brick/xyz/21,5,41/0.,0.,0./1.,1.,1./1 1 1
*rzbrick/xyz/21,5,41/0.,0.,0./1.,1.,1./1 1 1
* Color the nodes according to the mregions
setpts
* Color the elements according to the mregions
settets
* Output the final grid
dump/avs/output_createbrick.inp
* begin compare brick
cmo/status/cmohex
cmo/printatt/cmohex/-xyz-/minmax
cmo/printatt/cmohex/imt1/minmax
quality
* end compare brick
****************************************************
* Create a 2D quad mesh
* rzbrick and createpts do not currently work in 2D
* this is a substitute method that works
cmo create cmoquad///quad
quadxy 5 5/ 0. 0. 0. / 20. 0. 0./20. 20. 0. / 0. 20. 0.
rzbrick/xyz/5,5,1/1,0,0/connect
dump avs output_quad.inp cmoquad
* begin compare quad
cmo/status/cmoquad
cmo/printatt/cmoquad/-xyz-/minmax
quality
* end compare quad
finish

View File

@@ -0,0 +1,23 @@
cmo/create/cmohex///hex
surface/cube/reflect/box/0.0,0.0,0.0/1.0,1.0,1.0/
surface/cutplane/intrface/plane/0.,0.,.1/1.,0.,.5/1.,1.,.8
region/mattop/le cube and gt cutplane/
region/matbot/le cube and le cutplane
mregion/mattop/le cube and gt cutplane/
mregion/matbot/le cube and lt cutplane
creatpts/brick/xyz/21,5,41/0.,0.,0./1.,1.,1./1 1 1
setpts
settets
dump/avs/output_createbrick.inp
cmo/status/cmohex
cmo/printatt/cmohex/-xyz-/minmax
cmo/printatt/cmohex/imt1/minmax
quality
cmo create cmoquad///quad
quadxy 5 5/0. 0. 0./20. 0. 0./20. 20. 0./0. 20. 0.
rzbrick/xyz/5,5,1/1,0,0/connect
dump avs output_quad.inp cmoquad
cmo/status/cmoquad
cmo/printatt/cmoquad/-xyz-/minmax
quality
finish

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,72 @@
25 16 4 0 0
001 0.000000000000E+00 0.000000000000E+00 0.000000000000E+00
002 5.000000000000E+00 0.000000000000E+00 0.000000000000E+00
003 1.000000000000E+01 0.000000000000E+00 0.000000000000E+00
004 1.500000000000E+01 0.000000000000E+00 0.000000000000E+00
005 2.000000000000E+01 0.000000000000E+00 0.000000000000E+00
006 0.000000000000E+00 5.000000000000E+00 0.000000000000E+00
007 5.000000000000E+00 5.000000000000E+00 0.000000000000E+00
008 1.000000000000E+01 5.000000000000E+00 0.000000000000E+00
009 1.500000000000E+01 5.000000000000E+00 0.000000000000E+00
010 2.000000000000E+01 5.000000000000E+00 0.000000000000E+00
011 0.000000000000E+00 1.000000000000E+01 0.000000000000E+00
012 5.000000000000E+00 1.000000000000E+01 0.000000000000E+00
013 1.000000000000E+01 1.000000000000E+01 0.000000000000E+00
014 1.500000000000E+01 1.000000000000E+01 0.000000000000E+00
015 2.000000000000E+01 1.000000000000E+01 0.000000000000E+00
016 0.000000000000E+00 1.500000000000E+01 0.000000000000E+00
017 5.000000000000E+00 1.500000000000E+01 0.000000000000E+00
018 1.000000000000E+01 1.500000000000E+01 0.000000000000E+00
019 1.500000000000E+01 1.500000000000E+01 0.000000000000E+00
020 2.000000000000E+01 1.500000000000E+01 0.000000000000E+00
021 0.000000000000E+00 2.000000000000E+01 0.000000000000E+00
022 5.000000000000E+00 2.000000000000E+01 0.000000000000E+00
023 1.000000000000E+01 2.000000000000E+01 0.000000000000E+00
024 1.500000000000E+01 2.000000000000E+01 0.000000000000E+00
025 2.000000000000E+01 2.000000000000E+01 0.000000000000E+00
001 1 quad 1 2 7 6
002 1 quad 2 3 8 7
003 1 quad 3 4 9 8
004 1 quad 4 5 10 9
005 1 quad 6 7 12 11
006 1 quad 7 8 13 12
007 1 quad 8 9 14 13
008 1 quad 9 10 15 14
009 1 quad 11 12 17 16
010 1 quad 12 13 18 17
011 1 quad 13 14 19 18
012 1 quad 14 15 20 19
013 1 quad 16 17 22 21
014 1 quad 17 18 23 22
015 1 quad 18 19 24 23
016 1 quad 19 20 25 24
00004 1 1 1 1
imt1, integer
itp1, integer
icr1, integer
isn1, integer
1 0 0 0 0
2 0 0 0 0
3 0 0 0 0
4 0 0 0 0
5 0 0 0 0
6 0 0 0 0
7 0 0 0 0
8 0 0 0 0
9 0 0 0 0
10 0 0 0 0
11 0 0 0 0
12 0 0 0 0
13 0 0 0 0
14 0 0 0 0
15 0 0 0 0
16 0 0 0 0
17 0 0 0 0
18 0 0 0 0
19 0 0 0 0
20 0 0 0 0
21 0 0 0 0
22 0 0 0 0
23 0 0 0 0
24 0 0 0 0
25 0 0 0 0

View File

@@ -0,0 +1,380 @@
* * * * * * * * * * * * * * * * * * * * * * * * *
* * *
* * Program: LaGriT V3.330 Linux *
* * date_compile: 2021/10/15 test *
* * Run Time: 2021/Nov 4 14:38:12 *
* * Manual: http://lagrit.lanl.gov *
* * *
* * * * * * * * * * * * * * * * * * * * * * * * *
-----oOo-----
LaGriT V3 LA-CC-15-069 https://github.com/lanl/LaGriT
Copyright 2016. Triad National Security, LLC. All rights reserved. This
program was produced under U.S. Government contract 89233218CNA000001
for Los Alamos National Laboratory (LANL), which is operated by Triad
National Security, LLC for the U.S. Department of Energy/National Nuclear
Security Administration. All rights in the program are reserved by Triad
National Security, LLC, and the U.S. Department of Energy/National Nuclear
Security Administration. The Government is granted for itself and others
acting on its behalf a nonexclusive, paid-up, irrevocable worldwide license
in this material to reproduce, prepare derivative works, distribute copies
to the public, perform publicly and display publicly, and to permit others to
do so. This software is open source and available under the BSD-3 License.
-----oOo-----
Output log file: outx3dgen
Command log file: logx3dgen
*TEST createpts/brick (lagrit_input_createbrick)
* 3D and 2D
*
* Example to create a retangular grid that
* captures the geometry of an interface in the
* stair steps of a regular grid.
*
* Carl Gable 3/12/98
*
****************************************************
* Create and color a 3D brick mesh
* Create a cmo with hexahedral storage arrays
cmo/create/cmohex///hex
* Define the exterior and a plane
* Define the material regions
surface/cube/reflect/box/0.0,0.0,0.0/1.0,1.0,1.0/
cmo/addatt//ncon50/INT/scalar/scalar/constant/permanent/l/0
finish
cmo/addatt//nconbnd/INT/scalar/scalar/constant/permanent/l/0
finish
cmo/addatt//icontab/VINT/scalar/ncon50/constant/permanent/l/0.0
finish
surface/cutplane/intrface/plane/0.,0.,.1/1.,0.,.5/1.,1.,.8
The unit vector for cutplane is -0.3577709i -0.2683282j 0.8944272k
region/mattop/le cube and gt cutplane/
region/matbot/le cube and le cutplane
mregion/mattop/le cube and gt cutplane/
mregion/matbot/le cube and lt cutplane
* Create a rectangular grid
creatpts/brick/xyz/21,5,41/0.,0.,0./1.,1.,1./1 1 1
Number of nodes: 4305
Number of elements: 3200
Number of negative volume elements: 0
Total volume: 0.100000000000E+01
*rzbrick/xyz/21,5,41/0.,0.,0./1.,1.,1./1 1 1
* Color the nodes according to the mregions
setpts
FOR icr 1 TYPE surface 1 0 0 THERE ARE 2082 POINTS
FOR imt= 1 NAME= mattop THERE ARE 2350 POINTS
FOR imt= 2 NAME= matbot THERE ARE 1930 POINTS
FOR imt= 3 NAME= intrface THERE ARE 25 POINTS
* Color the elements according to the mregions
settets
Interface node converted to interior 421
Interface node converted to interior 1765
Interface node converted to interior 2190
Interface node converted to interior 2615
Interface node converted to interior 3040
Interface node converted to interior 3465
Adding 38 interface-coupled points.
Multimaterial tet: 321 itet= 421 422 443 442
526 527 548 547
Multimaterial tet: 322 itet= 422 423 444 443
527 528 549 548
Multimaterial tet: 401 itet= 526 527 548 547
631 632 653 652
Multimaterial tet: 402 itet= 527 528 549 548
632 633 654 653
Multimaterial tet: 403 itet= 528 529 550 549
633 634 655 654
Multimaterial tet: 481 itet= 631 632 653 652
736 737 758 4307
Multimaterial tet: 482 itet= 632 633 654 653
737 738 759 758
Multimaterial tet: 483 itet= 633 634 655 654
738 739 760 759
Multimaterial tet: 484 itet= 634 635 656 655
739 740 761 760
Multimaterial tet: 561 itet= 736 737 758 4307
841 842 863 862
Multimaterial tet: 562 itet= 737 738 759 758
842 843 864 863
Multimaterial tet: 563 itet= 738 739 760 759
843 844 865 864
Multimaterial tet: 564 itet= 739 740 761 760
844 845 866 865
Multimaterial tet: 565 itet= 740 741 762 761
845 4308 867 866
Multimaterial tet: 581 itet= 4306 758 779 778
862 863 884 883
Multimaterial tet: 582 itet= 758 759 780 779
863 864 885 884
Multimaterial tet: 642 itet= 842 843 864 863
947 948 969 968
Multimaterial tet: 643 itet= 843 844 865 864
948 949 970 969
Multimaterial tet: 644 itet= 844 845 866 865
949 950 971 970
Multimaterial tet: 645 itet= 845 4309 867 866
950 951 972 971
Multimaterial tet: 646 itet= 4308 847 868 867
951 952 973 972
Multimaterial tet: 647 itet= 847 848 869 868
952 953 974 973
Multimaterial tet: 661 itet= 862 863 884 883
967 968 989 988
Multimaterial tet: 662 itet= 863 864 885 884
968 969 990 989
Multimaterial tet: 663 itet= 864 865 886 885
969 970 991 990
Multimaterial tet: 723 itet= 948 949 970 969
1053 1054 1075 1074
Multimaterial tet: 724 itet= 949 950 971 970
1054 1055 1076 1075
Multimaterial tet: 725 itet= 950 951 972 971
1055 1056 1077 1076
Multimaterial tet: 726 itet= 951 952 973 972
1056 1057 1078 1077
Multimaterial tet: 727 itet= 952 953 974 973
1057 1058 1079 1078
There are 368 multimaterial tets.
* Output the final grid
dump/avs/output_createbrick.inp
Second argument is not a filename. Trying to use default mesh object.
cmo/modatt/-def-/-def-/ioflag/x
finish
* begin compare brick
cmo/status/cmohex
The current-mesh-object(CMO) is: cmohex
1 Mesh Object name: cmohex
number of nodes = 4343 number of elements = 3200
dimensions geometry = 3 element type = hex
dimensions topology = 3 8 nodes 6 faces 12 edges
boundary flag = 16000000 status = active
NAME TYPE RANK LENGTH INTER PERSI IO VALUE
1 -def- VDOU scalar nnodes linea tempo x 0.000E+00
2 scalar INT scalar scalar const perma l 1.000E+00
3 vector INT scalar scalar const perma l 3.000E+00
4 nnodes INT scalar scalar const perma l 4.343E+03
5 nedges INT scalar scalar const perma l 0.000E+00
6 nfaces INT scalar scalar const perma l 0.000E+00
7 nelements INT scalar scalar const perma l 3.200E+03
8 mbndry INT scalar scalar const perma l 1.600E+07
9 ndimensions_top INT scalar scalar const perma l 3.000E+00
10 ndimensions_geo INT scalar scalar const perma l 3.000E+00
11 nodes_per_eleme INT scalar scalar const perma l 8.000E+00
12 edges_per_eleme INT scalar scalar const perma l 1.200E+01
13 faces_per_eleme INT scalar scalar const perma l 6.000E+00
14 isetwd VDOU scalar nnodes or perma l 0.000E+00
15 ialias VINT scalar nnodes seque perma l 0.000E+00
16 imt1 VINT scalar nnodes max perma gal 0.000E+00
17 itp1 VINT scalar nnodes min perma gal 0.000E+00
18 icr1 VINT scalar nnodes min perma gal 0.000E+00
19 isn1 VINT scalar nnodes user perma gal 0.000E+00
20 xic VDOU scalar nnodes linea perma l 0.000E+00
21 yic VDOU scalar nnodes linea perma l 0.000E+00
22 zic VDOU scalar nnodes linea perma l 0.000E+00
23 xtetwd VDOU scalar nelements or perma l 0.000E+00
24 itetclr VINT scalar nelements user perma l 0.000E+00
25 itettyp VINT scalar nelements user perma l 0.000E+00
26 itetoff VINT scalar nelements user perma l 0.000E+00
27 jtetoff VINT scalar nelements user perma l 0.000E+00
28 itet VINT nodes_per_ nelements user perma l 0.000E+00
29 jtet VINT faces_per_ nelements user perma l 0.000E+00
30 ipolydat CHAR scalar scalar const perma l no
31 vor2d CHAR scalar scalar const perma l yes
32 vor3d CHAR scalar scalar const perma l no
33 epsilon REAL scalar scalar const perma l 1.000E-15
34 epsilonl REAL scalar scalar const perma l 3.846E-13
35 epsilona REAL scalar scalar const perma l 6.661E-13
36 epsilonv REAL scalar scalar const perma l 2.220E-13
37 ipointi INT scalar scalar const perma l 4.306E+03
38 ipointj INT scalar scalar const perma l 4.343E+03
39 idebug INT scalar scalar const perma l 0.000E+00
40 itypconv_sm INT scalar scalar const perma l 1.000E+00
41 maxiter_sm INT scalar scalar const perma l 2.500E+01
42 tolconv_sm REAL scalar scalar const perma l 1.000E+00
43 nnfreq INT scalar scalar const perma l 1.000E+00
44 ivoronoi INT scalar scalar const perma l 1.000E+00
45 iopt2to2 INT scalar scalar const perma l 2.000E+00
46 dumptype CHAR scalar scalar const perma l binary
47 velname CHAR scalar scalar const perma l vels
48 densname CHAR scalar scalar const perma l ric
49 presname CHAR scalar scalar const perma l pic
50 enername CHAR scalar scalar const perma l eic
51 xmin REAL scalar scalar const perma l 0.000E+00
52 ymin REAL scalar scalar const perma l 0.000E+00
53 zmin REAL scalar scalar const perma l 0.000E+00
54 xmax REAL scalar scalar const perma l 1.000E+00
55 ymax REAL scalar scalar const perma l 1.000E+00
56 zmax REAL scalar scalar const perma l 1.000E+00
57 kdtree_level INT scalar scalar const perma l 0.000E+00
58 max_number_sets INT scalar scalar const perma l 6.400E+01
59 number_of_psets INT scalar scalar const perma l 0.000E+00
60 number_of_eltse INT scalar scalar const perma l 0.000E+00
61 psetnames VCHA scalar max_number_sets const perma l
62 eltsetnames VCHA scalar max_number_sets const perma l
63 geom_name CHAR scalar max_number_sets const perma l -defaultge
64 fsetnames VCHA scalar max_number_sets const perma l
65 number_of_fsets INT scalar scalar const perma l 0.000E+00
66 ncon50 INT scalar scalar const perma l 2.500E+03
67 nconbnd INT scalar scalar const perma l 1.000E+00
68 icontab VINT scalar ncon50 const perma l 0.000E+00
cmo/printatt/cmohex/-xyz-/minmax
ATTRIBUTE NAME MIN MAX DIFFERENCE LENGTH
xic 0.000000000E+00 1.000000000E+00 1.000000000E+00 4343
yic 0.000000000E+00 1.000000000E+00 1.000000000E+00 4343
zic 0.000000000E+00 1.000000000E+00 1.000000000E+00 4343
cmo/printatt/cmohex/imt1/minmax
ATTRIBUTE NAME MIN MAX DIFFERENCE LENGTH
imt1 1 2 1 4343
quality
epsilonl, epsilonaspect: 3.8459254E-13 5.6885628E-38
--------------------------------------------
elements with aspect ratio < .01: 0
elements with aspect ratio b/w .01 and .02: 0
elements with aspect ratio b/w .02 and .05: 0
elements with aspect ratio b/w .05 and .1 : 0
elements with aspect ratio b/w .1 and .2 : 0
elements with aspect ratio b/w .2 and .5 : 0
elements with aspect ratio b/w .5 and 1. : 3200
min aspect ratio = 0.1000E+01 max aspect ratio = 0.1000E+01
epsilonvol: 2.2204460E-13
---------------------------------------
All elements have volume 3.1250000E-04
-----------------------------------------------------------
3200 total elements evaluated.
* end compare brick
****************************************************
* Create a 2D quad mesh
* rzbrick and createpts do not currently work in 2D
* this is a substitute method that works
cmo create cmoquad///quad
quadxy 5 5/0. 0. 0./20. 0. 0./20. 20. 0./0. 20. 0.
QUADXY GENERATED POINTS 1 TO 25
rzbrick/xyz/5,5,1/1,0,0/connect
Number of nodes: 25
Number of elements: 16
Number of negative volume elements: 0
Total volume: 0.400000000000E+03
dump avs output_quad.inp cmoquad
cmo/modatt/-def-/-def-/ioflag/x
finish
* begin compare quad
cmo/status/cmoquad
The current-mesh-object(CMO) is: cmoquad
2 Mesh Object name: cmoquad
number of nodes = 25 number of elements = 16
dimensions geometry = 3 element type = qua
dimensions topology = 2 4 nodes 4 faces 4 edges
boundary flag = 16000000 status = active
NAME TYPE RANK LENGTH INTER PERSI IO VALUE
1 -def- VDOU scalar nnodes linea tempo x 0.000E+00
2 scalar INT scalar scalar const perma l 1.000E+00
3 vector INT scalar scalar const perma l 3.000E+00
4 nnodes INT scalar scalar const perma l 2.500E+01
5 nedges INT scalar scalar const perma l 0.000E+00
6 nfaces INT scalar scalar const perma l 0.000E+00
7 nelements INT scalar scalar const perma l 1.600E+01
8 mbndry INT scalar scalar const perma l 1.600E+07
9 ndimensions_top INT scalar scalar const perma l 2.000E+00
10 ndimensions_geo INT scalar scalar const perma l 3.000E+00
11 nodes_per_eleme INT scalar scalar const perma l 4.000E+00
12 edges_per_eleme INT scalar scalar const perma l 4.000E+00
13 faces_per_eleme INT scalar scalar const perma l 4.000E+00
14 isetwd VDOU scalar nnodes or perma l 0.000E+00
15 ialias VINT scalar nnodes seque perma l 0.000E+00
16 imt1 VINT scalar nnodes max perma gal 0.000E+00
17 itp1 VINT scalar nnodes min perma gal 0.000E+00
18 icr1 VINT scalar nnodes min perma gal 0.000E+00
19 isn1 VINT scalar nnodes user perma gal 0.000E+00
20 xic VDOU scalar nnodes linea perma l 0.000E+00
21 yic VDOU scalar nnodes linea perma l 0.000E+00
22 zic VDOU scalar nnodes linea perma l 0.000E+00
23 xtetwd VDOU scalar nelements or perma l 0.000E+00
24 itetclr VINT scalar nelements user perma l 0.000E+00
25 itettyp VINT scalar nelements user perma l 0.000E+00
26 itetoff VINT scalar nelements user perma l 0.000E+00
27 jtetoff VINT scalar nelements user perma l 0.000E+00
28 itet VINT nodes_per_ nelements user perma l 0.000E+00
29 jtet VINT faces_per_ nelements user perma l 0.000E+00
30 ipolydat CHAR scalar scalar const perma l no
31 vor2d CHAR scalar scalar const perma l yes
32 vor3d CHAR scalar scalar const perma l no
33 epsilon REAL scalar scalar const perma l 1.000E-15
34 epsilonl REAL scalar scalar const perma l 1.000E-08
35 epsilona REAL scalar scalar const perma l 1.000E-08
36 epsilonv REAL scalar scalar const perma l 1.000E-08
37 ipointi INT scalar scalar const perma l 2.000E+00
38 ipointj INT scalar scalar const perma l 2.500E+01
39 idebug INT scalar scalar const perma l 0.000E+00
40 itypconv_sm INT scalar scalar const perma l 1.000E+00
41 maxiter_sm INT scalar scalar const perma l 2.500E+01
42 tolconv_sm REAL scalar scalar const perma l 1.000E+00
43 nnfreq INT scalar scalar const perma l 1.000E+00
44 ivoronoi INT scalar scalar const perma l 1.000E+00
45 iopt2to2 INT scalar scalar const perma l 2.000E+00
46 dumptype CHAR scalar scalar const perma l binary
47 velname CHAR scalar scalar const perma l vels
48 densname CHAR scalar scalar const perma l ric
49 presname CHAR scalar scalar const perma l pic
50 enername CHAR scalar scalar const perma l eic
51 xmin REAL scalar scalar const perma l -1.000E+00
52 ymin REAL scalar scalar const perma l -1.000E+00
53 zmin REAL scalar scalar const perma l -1.000E+00
54 xmax REAL scalar scalar const perma l 1.000E+00
55 ymax REAL scalar scalar const perma l 1.000E+00
56 zmax REAL scalar scalar const perma l 1.000E+00
57 kdtree_level INT scalar scalar const perma l 0.000E+00
58 max_number_sets INT scalar scalar const perma l 6.400E+01
59 number_of_psets INT scalar scalar const perma l 0.000E+00
60 number_of_eltse INT scalar scalar const perma l 0.000E+00
61 psetnames VCHA scalar max_number_sets const perma l
62 eltsetnames VCHA scalar max_number_sets const perma l
63 geom_name CHAR scalar max_number_sets const perma l -defaultge
64 fsetnames VCHA scalar max_number_sets const perma l
65 number_of_fsets INT scalar scalar const perma l 0.000E+00
cmo/printatt/cmoquad/-xyz-/minmax
ATTRIBUTE NAME MIN MAX DIFFERENCE LENGTH
xic 0.000000000E+00 2.000000000E+01 2.000000000E+01 25
yic 0.000000000E+00 2.000000000E+01 2.000000000E+01 25
zic 0.000000000E+00 0.000000000E+00 0.000000000E+00 25
quality
epsilonl, epsilonaspect: 9.9999999E-09 9.9999998E-25
--------------------------------------------
elements with aspect ratio < .01: 0
elements with aspect ratio b/w .01 and .02: 0
elements with aspect ratio b/w .02 and .05: 0
elements with aspect ratio b/w .05 and .1 : 0
elements with aspect ratio b/w .1 and .2 : 0
elements with aspect ratio b/w .2 and .5 : 0
elements with aspect ratio b/w .5 and 1. : 16
min aspect ratio = 0.1000E+01 max aspect ratio = 0.1000E+01
epsilonvol: 1.7763568E-10
---------------------------------------
All elements have volume 2.5000000E+01
-----------------------------------------------------------
16 total elements evaluated.
* end compare quad
finish
LaGriT successfully completed