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,82 @@
# test pset for zone and zonn files
# option -all- will write one file for all psets
# for single file, cat into single file
# write zonn or zone only once at top
# do not write stop until end of file
define X0 0.
define X1 100.
define Y0 0.
define Y1 100.
define Z0 1.
define Z1 100.
define / NX / 11
define / NY / 2
define / NZ / 11
cmo/create/cmohex///hex
createpts/brick/xyz/NX NY NZ /X0 Y0 Z0 / X1 Y1 Z1 / &
1,1,1/ 1,1,0/ 1. 1. 1.
resetpts itp
cmo/copyatt/cmohex cmohex/ imt zic
cmo/printatt/ cmohex / imt minmax
pset/p1/ attribute imt/1,0,0/ lt 10.
pset/p2/ attribute imt/1,0,0/ gt 90.
pset/p3/ attribute imt/1,0,0/ eq 50.
cmo setatt cmohex idebug 10
# LIST the sets
pset/-all- list
pset/ list
pset/ / list
#######################################
# Write all vertex, zonn and zone, ascii and binary
# vertex ascii
pset/-all-/ write / out_pset_asc
pset/-all-/ write / out_pset_bin / binary
pset/-all-/ zone / out_pset_asc
pset/-all-/ zone / out_pset_bin / binary
pset/-all-/ zonn / out_pset_bin / binary
pset/-all-/ zonn / out_pset_asc
#######################################
# Write single vertex zonn and zone
pset/ p1 / zone / out_sngl_p1 / ascii / 10
pset/ p2 / zonn / out_sngl_p2 / ascii / 20
pset/ p3 / write / out_sngl_p3 / ascii / 30
#######################################
# Read single vertex zonn and zone
read / zone / out_sngl_p1.zone / cmohex / iset10
cmo printatt cmohex iset10 minmax
read / zonn / out_sngl_p2.zonn / cmohex / iset20
cmo printatt cmohex iset20 minmax
#######################################
# Write ELEMENTS
eltset/e1/ inclusive pset,get,p1
eltset/e1/write/ out_eltset_asc / ascii
# Read ELEMENTS
# test read_element for zone file
# there is no option to write element zone
# use one created outside of lagrit
read zone_element input_element.zone cmohex ezone
cmo printatt cmohex ezone minmax
finish

View File

@@ -0,0 +1,5 @@
zone
1 e1
nnum
10
1 2 3 4 5 6 7 8 9 10

View File

@@ -0,0 +1,82 @@
# test pset for zone and zonn files
# option -all- will write one file for all psets
# for single file, cat into single file
# write zonn or zone only once at top
# do not write stop until end of file
define X0 0.
define X1 100.
define Y0 0.
define Y1 100.
define Z0 1.
define Z1 100.
define / NX / 11
define / NY / 2
define / NZ / 11
cmo/create/cmohex///hex
createpts/brick/xyz/NX NY NZ /X0 Y0 Z0 / X1 Y1 Z1 / &
1,1,1/ 1,1,0/ 1. 1. 1.
resetpts itp
cmo/copyatt/cmohex cmohex/ imt zic
cmo/printatt/ cmohex / imt minmax
pset/p1/ attribute imt/1,0,0/ lt 10.
pset/p2/ attribute imt/1,0,0/ gt 90.
pset/p3/ attribute imt/1,0,0/ eq 50.
cmo setatt cmohex idebug 10
# LIST the sets
pset/-all- list
pset/ list
pset/ / list
#######################################
# Write all vertex, zonn and zone, ascii and binary
# vertex ascii
pset/-all-/ write / out_pset_asc
pset/-all-/ write / out_pset_bin / binary
pset/-all-/ zone / out_pset_asc
pset/-all-/ zone / out_pset_bin / binary
pset/-all-/ zonn / out_pset_bin / binary
pset/-all-/ zonn / out_pset_asc
#######################################
# Write single vertex zonn and zone
pset/ p1 / zone / out_sngl_p1 / ascii / 10
pset/ p2 / zonn / out_sngl_p2 / ascii / 20
pset/ p3 / write / out_sngl_p3 / ascii / 30
#######################################
# Read single vertex zonn and zone
read / zone / out_sngl_p1.zone / cmohex / iset10
cmo printatt cmohex iset10 minmax
read / zonn / out_sngl_p2.zonn / cmohex / iset20
cmo printatt cmohex iset20 minmax
#######################################
# Write ELEMENTS
eltset/e1/ inclusive pset,get,p1
eltset/e1/write/ out_eltset_asc / ascii
# Read ELEMENTS
# test read_element for zone file
# there is no option to write element zone
# use one created outside of lagrit
read zone_element input_element.zone cmohex ezone
cmo printatt cmohex ezone minmax
finish

View File

@@ -0,0 +1,5 @@
zone
1 e1
nnum
10
1 2 3 4 5 6 7 8 9 10

View File

@@ -0,0 +1,39 @@
define X0 0.
define X1 100.
define Y0 0.
define Y1 100.
define Z0 1.
define Z1 100.
define/NX/11
define/NY/2
define/NZ/11
cmo/create/cmohex///hex
createpts/brick/xyz/NX NY NZ/X0 Y0 Z0/X1 Y1 Z1/1,1,1/1,1,0/1. 1. 1.
resetpts itp
cmo/copyatt/cmohex cmohex/imt zic
cmo/printatt/cmohex/imt minmax
pset/p1/attribute imt/1,0,0/lt 10.
pset/p2/attribute imt/1,0,0/gt 90.
pset/p3/attribute imt/1,0,0/eq 50.
cmo setatt cmohex idebug 10
pset/-all- list
pset/list
pset//list
pset/-all-/write/out_pset_asc
pset/-all-/write/out_pset_bin/binary
pset/-all-/zone/out_pset_asc
pset/-all-/zone/out_pset_bin/binary
pset/-all-/zonn/out_pset_bin/binary
pset/-all-/zonn/out_pset_asc
pset/p1/zone/out_sngl_p1/ascii/10
pset/p2/zonn/out_sngl_p2/ascii/20
pset/p3/write/out_sngl_p3/ascii/30
read/zone/out_sngl_p1.zone/cmohex/iset10
cmo printatt cmohex iset10 minmax
read/zonn/out_sngl_p2.zonn/cmohex/iset20
cmo printatt cmohex iset20 minmax
eltset/e1/inclusive pset,get,p1
eltset/e1/write/out_eltset_asc/ascii
read zone_element input_element.zone cmohex ezone
cmo printatt cmohex ezone minmax
finish

View File

@@ -0,0 +1,3 @@
eltset ascii 1
e1 1 10
1 2 3 4 5 6 7 8 9 10

View File

@@ -0,0 +1,5 @@
pset ascii 1
p1 1 22
1 2 3 4 5 6 7 8 9 10
11 12 13 14 15 16 17 18 19 20
21 22

View File

@@ -0,0 +1,9 @@
zone
000001 p1
nnum
22
1 2 3 4 5 6 7 8 9 10
11 12 13 14 15 16 17 18 19 20
21 22
stop

View File

@@ -0,0 +1,9 @@
zonn
000001 p1
nnum
22
1 2 3 4 5 6 7 8 9 10
11 12 13 14 15 16 17 18 19 20
21 22
stop

View File

@@ -0,0 +1,5 @@
pset ascii 1
p2 2 22
221 222 223 224 225 226 227 228 229 230
231 232 233 234 235 236 237 238 239 240
241 242

View File

@@ -0,0 +1,9 @@
zone
000002 p2
nnum
22
221 222 223 224 225 226 227 228 229 230
231 232 233 234 235 236 237 238 239 240
241 242
stop

View File

@@ -0,0 +1,9 @@
zonn
000002 p2
nnum
22
221 222 223 224 225 226 227 228 229 230
231 232 233 234 235 236 237 238 239 240
241 242
stop

View File

@@ -0,0 +1,5 @@
pset ascii 1
p3 3 22
111 112 113 114 115 116 117 118 119 120
121 122 123 124 125 126 127 128 129 130
131 132

View File

@@ -0,0 +1,9 @@
zone
000003 p3
nnum
22
111 112 113 114 115 116 117 118 119 120
121 122 123 124 125 126 127 128 129 130
131 132
stop

View File

@@ -0,0 +1,9 @@
zonn
000003 p3
nnum
22
111 112 113 114 115 116 117 118 119 120
121 122 123 124 125 126 127 128 129 130
131 132
stop

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,9 @@
zone
000010 p1
nnum
22
1 2 3 4 5 6 7 8 9 10
11 12 13 14 15 16 17 18 19 20
21 22
stop

View File

@@ -0,0 +1,9 @@
zonn
000020 p2
nnum
22
221 222 223 224 225 226 227 228 229 230
231 232 233 234 235 236 237 238 239 240
241 242
stop

View File

@@ -0,0 +1,5 @@
pset ascii 1
p3 3 22
111 112 113 114 115 116 117 118 119 120
121 122 123 124 125 126 127 128 129 130
131 132

View File

@@ -0,0 +1,226 @@
* * * * * * * * * * * * * * * * * * * * * * * * *
* * *
* * Program: LaGriT V3.330 Linux *
* * date_compile: 2021/10/15 test *
* * Run Time: 2021/Nov 8 16:45:35 *
* * 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 pset for zone and zonn files
# option -all- will write one file for all psets
# for single file, cat into single file
# write zonn or zone only once at top
# do not write stop until end of file
define X0 0.
define X1 100.
define Y0 0.
define Y1 100.
define Z0 1.
define Z1 100.
define/NX/11
define/NY/2
define/NZ/11
cmo/create/cmohex///hex
createpts/brick/xyz/NX NY NZ/X0 Y0 Z0/X1 Y1 Z1/1,1,1/1,1,0/1. 1. 1.
Number of nodes: 242
Number of elements: 100
Number of negative volume elements: 0
Total volume: 0.990000000000E+06
resetpts itp
geniee
finish
cmo/copyatt/cmohex cmohex/imt zic
Warning: Attribute type VDOUBLE written to VINT
242 copied from cmohex zic to -> cmohex imt1
cmo/printatt/cmohex/imt minmax
ATTRIBUTE NAME MIN MAX DIFFERENCE LENGTH
imt1 1 100 99 242
pset/p1/attribute imt/1,0,0/lt 10.
THE PSET p1 HAS 22 POINTS
pset/p2/attribute imt/1,0,0/gt 90.
THE PSET p2 HAS 22 POINTS
pset/p3/attribute imt/1,0,0/eq 50.
THE PSET p3 HAS 22 POINTS
cmo setatt cmohex idebug 10
1 values reset for attribute idebug
# LIST the sets
pset/-all- list
PSET: THERE ARE 3 PSETS DEFINED
p1 p2 p3
pset/list
PSET: THERE ARE 3 PSETS DEFINED
p1 p2 p3
pset//list
PSET: THERE ARE 3 PSETS DEFINED
p1 p2 p3
#######################################
# Write all vertex, zonn and zone, ascii and binary
# vertex ascii
pset/-all-/write/out_pset_asc
PSET: THERE ARE 3 PSETS DEFINED
p1 p2 p3
PSET: Appended .vertexset to the file name
PSET: OUTPUT p1 1 PSETS TO FILE
PSET: Appended .vertexset to the file name
PSET: OUTPUT p2 1 PSETS TO FILE
PSET: Appended .vertexset to the file name
PSET: OUTPUT p3 1 PSETS TO FILE
pset/-all-/write/out_pset_bin/binary
PSET: THERE ARE 3 PSETS DEFINED
p1 p2 p3
PSET: Appended .vertexset to the file name
PSET: OUTPUT p1 1 PSETS TO FILE
PSET: Appended .vertexset to the file name
PSET: OUTPUT p2 1 PSETS TO FILE
PSET: Appended .vertexset to the file name
PSET: OUTPUT p3 1 PSETS TO FILE
pset/-all-/zone/out_pset_asc
PSET: THERE ARE 3 PSETS DEFINED
p1 p2 p3
PSET: Appended .zone to the file name
PSET: OUTPUT p1 1 PSETS TO FILE
PSET: Appended .zone to the file name
PSET: OUTPUT p2 1 PSETS TO FILE
PSET: Appended .zone to the file name
PSET: OUTPUT p3 1 PSETS TO FILE
pset/-all-/zone/out_pset_bin/binary
PSET: THERE ARE 3 PSETS DEFINED
p1 p2 p3
PSET: Appended .zone to the file name
PSET: OUTPUT p1 1 PSETS TO FILE
PSET: Appended .zone to the file name
PSET: OUTPUT p2 1 PSETS TO FILE
PSET: Appended .zone to the file name
PSET: OUTPUT p3 1 PSETS TO FILE
pset/-all-/zonn/out_pset_bin/binary
PSET: THERE ARE 3 PSETS DEFINED
p1 p2 p3
PSET: Appended .zonn to the file name
PSET: OUTPUT p1 1 PSETS TO FILE
PSET: Appended .zonn to the file name
PSET: OUTPUT p2 1 PSETS TO FILE
PSET: Appended .zonn to the file name
PSET: OUTPUT p3 1 PSETS TO FILE
pset/-all-/zonn/out_pset_asc
PSET: THERE ARE 3 PSETS DEFINED
p1 p2 p3
PSET: Appended .zonn to the file name
PSET: OUTPUT p1 1 PSETS TO FILE
PSET: Appended .zonn to the file name
PSET: OUTPUT p2 1 PSETS TO FILE
PSET: Appended .zonn to the file name
PSET: OUTPUT p3 1 PSETS TO FILE
#######################################
# Write single vertex zonn and zone
pset/p1/zone/out_sngl_p1/ascii/10
PSET: THERE ARE 3 PSETS DEFINED
p1 p2 p3
PSET: Appended .zone to the file name
PSET: OUTPUT p1 1 PSETS TO FILE
pset/p2/zonn/out_sngl_p2/ascii/20
PSET: THERE ARE 3 PSETS DEFINED
p1 p2 p3
PSET: Appended .zonn to the file name
PSET: OUTPUT p2 1 PSETS TO FILE
pset/p3/write/out_sngl_p3/ascii/30
PSET: THERE ARE 3 PSETS DEFINED
p1 p2 p3
PSET: Appended .vertexset to the file name
PSET: OUTPUT p3 1 PSETS TO FILE
#######################################
# Read single vertex zonn and zone
read/zone/out_sngl_p1.zone/cmohex/iset10
Reading zone file: out_sngl_p1.zone into iset10 for nodes
cmo/addatt/cmohex/iset10/vint/scalar/nnodes/linear/permanent/agl/0/
finish
zone/zonn id_zone name #nodes index__min index_max
---------------------------------------------------------------------------
zone 10 p1 22 1 22
---------------------------------------------------------------------------
cmo printatt cmohex iset10 minmax
ATTRIBUTE NAME MIN MAX DIFFERENCE LENGTH
iset10 0 10 10 242
read/zonn/out_sngl_p2.zonn/cmohex/iset20
Reading zone file: out_sngl_p2.zonn into iset20 for nodes
cmo/addatt/cmohex/iset20/vint/scalar/nnodes/linear/permanent/agl/0/
finish
zone/zonn id_zone name #nodes index__min index_max
---------------------------------------------------------------------------
zonn 20 p2 22 221 242
---------------------------------------------------------------------------
cmo printatt cmohex iset20 minmax
ATTRIBUTE NAME MIN MAX DIFFERENCE LENGTH
iset20 0 20 20 242
#######################################
# Write ELEMENTS
eltset/e1/inclusive pset,get,p1
THE ELTSET e1 HAS 10 ELEMENTS
1 2 3 4 5 6 7 8
9 10
eltset/e1/write/out_eltset_asc/ascii
THERE ARE 1 ELTSETS DEFINED
e1
ELTSET: Appended .cellset to the file name
ELTSET: OUTPUT e1 1 ELTSETS TO FILE
# Read ELEMENTS
# test read_element for zone file
# there is no option to write element zone
# use one created outside of lagrit
read zone_element input_element.zone cmohex ezone
Reading zone file: input_element.zone into ezone for elements
cmo/addatt/cmohex/ezone/vint/scalar/nelements/linear/permanent/agl/0/
finish
zone/zonn id_zone name #elements index__min index_max
---------------------------------------------------------------------------
zone 1 e1 10 1 10
---------------------------------------------------------------------------
cmo printatt cmohex ezone minmax
ATTRIBUTE NAME MIN MAX DIFFERENCE LENGTH
ezone 0 1 1 100
finish
LaGriT successfully completed