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,43 @@
# Test LaGriT
# Create a new mesh along with some point sets.
cmo / create / mo / / / hex
createpts / brick / xyz / 11, 11, 11 / 0, 0, 0 / 10, 10, 10 / 1, 1, 1
pset / pset1 / geom / rtp / 1 0 0 / 0, 0, 0 / 5, 360, 180 /
pset / pset2 / geom / xyz / 1 0 0 / 7, 7, 7 / 10, 10, 10 /
eltset / eset1 / inclusive / pset get pset1 /
eltset / / list
# Assign colors to the points and elements
eltset / eset2 / inclusive / pset get pset2 /
cmo / setatt / mo / imt / 1 0 0 / 1
cmo / setatt / mo / imt / pset get pset1 / 2
cmo / setatt / mo / imt / pset get pset2 / 3
cmo / setatt / mo / itetclr / 1 0 0 / 1
cmo / setatt / mo / itetclr / eltset get eset1 / 2
cmo / setatt / mo / itetclr / eltset get eset2 / 3
dump / avs / output_mesh.inp / mo
# Test the list command.
eltset / / list
eltset / 0 / list
eltset / -def- / list
# Verify that eltset only appends '.cellset' if it is not already present.
eltset / eset1 / write / output_eset01
eltset / eset2 / write / output_eset02.cellset
# Test various incantations of the [ascii|binary] option.
eltset / eset1 / write / output_eset03 / ascii
eltset / eset1 / write / output_eset04 / binary
eltset / eset1 / write / output_eset05 /
eltset / eset1 / write / output_eset06 / -def-
eltset / eset1 / write / output_eset07
# Verify that -def-, -all-, and <blank> work properly as eltset names.
eltset / -def- / write / output_eset08
eltset / -all- / write / output_eset09
eltset / / write / output_eset10
finish

View File

@@ -0,0 +1,28 @@
cmo/create/mo///hex
createpts/brick/xyz/11,11,11/0,0,0/10,10,10/1,1,1
pset/pset1/geom/rtp/1 0 0/0,0,0/5,360,180/
pset/pset2/geom/xyz/1 0 0/7,7,7/10,10,10/
eltset/eset1/inclusive/pset get pset1/
eltset//list
eltset/eset2/inclusive/pset get pset2/
cmo/setatt/mo/imt/1 0 0/1
cmo/setatt/mo/imt/pset get pset1/2
cmo/setatt/mo/imt/pset get pset2/3
cmo/setatt/mo/itetclr/1 0 0/1
cmo/setatt/mo/itetclr/eltset get eset1/2
cmo/setatt/mo/itetclr/eltset get eset2/3
dump/avs/output_mesh.inp/mo
eltset//list
eltset/0/list
eltset/-def-/list
eltset/eset1/write/output_eset01
eltset/eset2/write/output_eset02.cellset
eltset/eset1/write/output_eset03/ascii
eltset/eset1/write/output_eset04/binary
eltset/eset1/write/output_eset05/
eltset/eset1/write/output_eset06/-def-
eltset/eset1/write/output_eset07
eltset/-def-/write/output_eset08
eltset/-all-/write/output_eset09
eltset//write/output_eset10
finish

View File

@@ -0,0 +1,12 @@
eltset ascii 1
eset1 1 99
1 2 3 4 5 6 11 12 13 14
15 21 22 23 24 25 31 32 33 34
35 41 42 43 44 51 101 102 103 104
105 111 112 113 114 115 121 122 123 124
125 131 132 133 134 141 142 143 201 202
203 204 205 211 212 213 214 215 221 222
223 224 225 231 232 233 234 241 242 243
301 302 303 304 305 311 312 313 314 321
322 323 324 331 332 333 341 401 402 403
404 411 412 413 421 422 423 431 501

View File

@@ -0,0 +1,9 @@
eltset ascii 1
eset2 2 64
667 668 669 670 677 678 679 680 687 688
689 690 697 698 699 700 767 768 769 770
777 778 779 780 787 788 789 790 797 798
799 800 867 868 869 870 877 878 879 880
887 888 889 890 897 898 899 900 967 968
969 970 977 978 979 980 987 988 989 990
997 998 999 1000

View File

@@ -0,0 +1,12 @@
eltset ascii 1
eset1 1 99
1 2 3 4 5 6 11 12 13 14
15 21 22 23 24 25 31 32 33 34
35 41 42 43 44 51 101 102 103 104
105 111 112 113 114 115 121 122 123 124
125 131 132 133 134 141 142 143 201 202
203 204 205 211 212 213 214 215 221 222
223 224 225 231 232 233 234 241 242 243
301 302 303 304 305 311 312 313 314 321
322 323 324 331 332 333 341 401 402 403
404 411 412 413 421 422 423 431 501

Binary file not shown.

View File

@@ -0,0 +1,12 @@
eltset ascii 1
eset1 1 99
1 2 3 4 5 6 11 12 13 14
15 21 22 23 24 25 31 32 33 34
35 41 42 43 44 51 101 102 103 104
105 111 112 113 114 115 121 122 123 124
125 131 132 133 134 141 142 143 201 202
203 204 205 211 212 213 214 215 221 222
223 224 225 231 232 233 234 241 242 243
301 302 303 304 305 311 312 313 314 321
322 323 324 331 332 333 341 401 402 403
404 411 412 413 421 422 423 431 501

View File

@@ -0,0 +1,12 @@
eltset ascii 1
eset1 1 99
1 2 3 4 5 6 11 12 13 14
15 21 22 23 24 25 31 32 33 34
35 41 42 43 44 51 101 102 103 104
105 111 112 113 114 115 121 122 123 124
125 131 132 133 134 141 142 143 201 202
203 204 205 211 212 213 214 215 221 222
223 224 225 231 232 233 234 241 242 243
301 302 303 304 305 311 312 313 314 321
322 323 324 331 332 333 341 401 402 403
404 411 412 413 421 422 423 431 501

View File

@@ -0,0 +1,12 @@
eltset ascii 1
eset1 1 99
1 2 3 4 5 6 11 12 13 14
15 21 22 23 24 25 31 32 33 34
35 41 42 43 44 51 101 102 103 104
105 111 112 113 114 115 121 122 123 124
125 131 132 133 134 141 142 143 201 202
203 204 205 211 212 213 214 215 221 222
223 224 225 231 232 233 234 241 242 243
301 302 303 304 305 311 312 313 314 321
322 323 324 331 332 333 341 401 402 403
404 411 412 413 421 422 423 431 501

View File

@@ -0,0 +1,12 @@
eltset ascii 1
eset1 1 99
1 2 3 4 5 6 11 12 13 14
15 21 22 23 24 25 31 32 33 34
35 41 42 43 44 51 101 102 103 104
105 111 112 113 114 115 121 122 123 124
125 131 132 133 134 141 142 143 201 202
203 204 205 211 212 213 214 215 221 222
223 224 225 231 232 233 234 241 242 243
301 302 303 304 305 311 312 313 314 321
322 323 324 331 332 333 341 401 402 403
404 411 412 413 421 422 423 431 501

View File

@@ -0,0 +1,9 @@
eltset ascii 1
eset2 2 64
667 668 669 670 677 678 679 680 687 688
689 690 697 698 699 700 767 768 769 770
777 778 779 780 787 788 789 790 797 798
799 800 867 868 869 870 877 878 879 880
887 888 889 890 897 898 899 900 967 968
969 970 977 978 979 980 987 988 989 990
997 998 999 1000

View File

@@ -0,0 +1,12 @@
eltset ascii 1
eset1 1 99
1 2 3 4 5 6 11 12 13 14
15 21 22 23 24 25 31 32 33 34
35 41 42 43 44 51 101 102 103 104
105 111 112 113 114 115 121 122 123 124
125 131 132 133 134 141 142 143 201 202
203 204 205 211 212 213 214 215 221 222
223 224 225 231 232 233 234 241 242 243
301 302 303 304 305 311 312 313 314 321
322 323 324 331 332 333 341 401 402 403
404 411 412 413 421 422 423 431 501

View File

@@ -0,0 +1,9 @@
eltset ascii 1
eset2 2 64
667 668 669 670 677 678 679 680 687 688
689 690 697 698 699 700 767 768 769 770
777 778 779 780 787 788 789 790 797 798
799 800 867 868 869 870 877 878 879 880
887 888 889 890 897 898 899 900 967 968
969 970 977 978 979 980 987 988 989 990
997 998 999 1000

View File

@@ -0,0 +1,12 @@
eltset ascii 1
eset1 1 99
1 2 3 4 5 6 11 12 13 14
15 21 22 23 24 25 31 32 33 34
35 41 42 43 44 51 101 102 103 104
105 111 112 113 114 115 121 122 123 124
125 131 132 133 134 141 142 143 201 202
203 204 205 211 212 213 214 215 221 222
223 224 225 231 232 233 234 241 242 243
301 302 303 304 305 311 312 313 314 321
322 323 324 331 332 333 341 401 402 403
404 411 412 413 421 422 423 431 501

View File

@@ -0,0 +1,9 @@
eltset ascii 1
eset2 2 64
667 668 669 670 677 678 679 680 687 688
689 690 697 698 699 700 767 768 769 770
777 778 779 780 787 788 789 790 797 798
799 800 867 868 869 870 877 878 879 880
887 888 889 890 897 898 899 900 967 968
969 970 977 978 979 980 987 988 989 990
997 998 999 1000

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,159 @@
* * * * * * * * * * * * * * * * * * * * * * * * *
* * *
* * Program: LaGriT V3.330 Linux *
* * date_compile: 2021/10/15 test *
* * Run Time: 2021/Nov 4 14:44:11 *
* * 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 LaGriT
# Create a new mesh along with some point sets.
cmo/create/mo///hex
createpts/brick/xyz/11,11,11/0,0,0/10,10,10/1,1,1
Number of nodes: 1331
Number of elements: 1000
Number of negative volume elements: 0
Total volume: 0.100000000000E+04
pset/pset1/geom/rtp/1 0 0/0,0,0/5,360,180/
THE PSET pset1 HAS 99 POINTS
pset/pset2/geom/xyz/1 0 0/7,7,7/10,10,10/
THE PSET pset2 HAS 64 POINTS
eltset/eset1/inclusive/pset get pset1/
THE ELTSET eset1 HAS 99 ELEMENTS
eltset//list
THERE ARE 1 ELTSETS DEFINED
eset1
# Assign colors to the points and elements
eltset/eset2/inclusive/pset get pset2/
THE ELTSET eset2 HAS 64 ELEMENTS
cmo/setatt/mo/imt/1 0 0/1
1331 values reset for attribute imt1
cmo/setatt/mo/imt/pset get pset1/2
99 values reset for attribute imt1
cmo/setatt/mo/imt/pset get pset2/3
64 values reset for attribute imt1
cmo/setatt/mo/itetclr/1 0 0/1
1000 values reset for attribute itetclr
cmo/setatt/mo/itetclr/eltset get eset1/2
99 values reset for attribute itetclr
cmo/setatt/mo/itetclr/eltset get eset2/3
64 values reset for attribute itetclr
dump/avs/output_mesh.inp/mo
cmo/modatt/-def-/-def-/ioflag/x
finish
# Test the list command.
eltset//list
THERE ARE 2 ELTSETS DEFINED
eset1 eset2
eltset/0/list
THERE ARE 2 ELTSETS DEFINED
eset1 eset2
eltset/-def-/list
THERE ARE 2 ELTSETS DEFINED
eset1 eset2
# Verify that eltset only appends '.cellset' if it is not already present.
eltset/eset1/write/output_eset01
THERE ARE 2 ELTSETS DEFINED
eset1 eset2
ELTSET: Appended .cellset to the file name
ELTSET: OUTPUT eset1 1 ELTSETS TO FILE
eltset/eset2/write/output_eset02.cellset
THERE ARE 2 ELTSETS DEFINED
eset1 eset2
ELTSET: OUTPUT eset2 1 ELTSETS TO FILE
# Test various incantations of the [ascii|binary] option.
eltset/eset1/write/output_eset03/ascii
THERE ARE 2 ELTSETS DEFINED
eset1 eset2
ELTSET: Appended .cellset to the file name
ELTSET: OUTPUT eset1 1 ELTSETS TO FILE
eltset/eset1/write/output_eset04/binary
THERE ARE 2 ELTSETS DEFINED
eset1 eset2
ELTSET: Appended .cellset to the file name
ELTSET: OUTPUT eset1 1 ELTSETS TO FILE
eltset/eset1/write/output_eset05/
THERE ARE 2 ELTSETS DEFINED
eset1 eset2
ELTSET: Appended .cellset to the file name
ELTSET: OUTPUT eset1 1 ELTSETS TO FILE
eltset/eset1/write/output_eset06/-def-
THERE ARE 2 ELTSETS DEFINED
eset1 eset2
ELTSET: Appended .cellset to the file name
ELTSET: OUTPUT eset1 1 ELTSETS TO FILE
eltset/eset1/write/output_eset07
THERE ARE 2 ELTSETS DEFINED
eset1 eset2
ELTSET: Appended .cellset to the file name
ELTSET: OUTPUT eset1 1 ELTSETS TO FILE
# Verify that -def-, -all-, and <blank> work properly as eltset names.
eltset/-def-/write/output_eset08
THERE ARE 2 ELTSETS DEFINED
eset1 eset2
ELTSET: Appended .cellset to the file name
ELTSET: OUTPUT -all- 1 ELTSETS TO FILE
ELTSET: Appended .cellset to the file name
ELTSET: OUTPUT -all- 1 ELTSETS TO FILE
eltset/-all-/write/output_eset09
THERE ARE 2 ELTSETS DEFINED
eset1 eset2
ELTSET: Appended .cellset to the file name
ELTSET: OUTPUT -all- 1 ELTSETS TO FILE
ELTSET: Appended .cellset to the file name
ELTSET: OUTPUT -all- 1 ELTSETS TO FILE
eltset//write/output_eset10
THERE ARE 2 ELTSETS DEFINED
eset1 eset2
ELTSET: Appended .cellset to the file name
ELTSET: OUTPUT -all- 1 ELTSETS TO FILE
ELTSET: Appended .cellset to the file name
ELTSET: OUTPUT -all- 1 ELTSETS TO FILE
finish
LaGriT successfully completed