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,78 @@
# Test the connect command in two dimensions. Currently this test fails when the
# unit square is positioned at this location (1000, 0, 0) and also at various
# other locations.
# For full test Run ./test_delaunay_2d -s to see where else the test fails.
#
# 2D that works -----------------------------
cmo / create / mo / / / triplane
createpts / xyz / 2 2 1 / 0. 0. 0. / 1. 1. 0. / 1 1 1
cmo / setatt / mo / imt / 1 0 0 / 1
cmo / setatt / mo / itp / 1 0 0 / 0
connect
quality
# END 2D that works -----------------------------
# 2D single point ------------------------------
cmo delete mo
cmo / create / mo / / / triplane
createpts / xyz / 1 1 1 / 0. 0. 0. / 0. 0. 0. / 1 1 1
cmo / setatt / mo / imt / 1 0 0 / 1
cmo / setatt / mo / itp / 1 0 0 / 0
connect
quality
# END 2D single point ------------------------------
# 2D 4 points not found -----------------------------
# trying to connect 0 points
# 4 points are being marked because they could not be connected.
cmo delete mo
cmo / create / mo / / / triplane
createpts / xyz / 2 2 1 / 1000. 0. 0. / 1001. 1. 0. / 1 1 1
cmo / setatt / mo / imt / 1 0 0 / 1
cmo / setatt / mo / itp / 1 0 0 / 0
connect
quality
# END 2D 4 points not found -----------------------------
## 3D that works --------------------------------
cmo delete mo
cmo create mo / / / tet
createpts / xyz / 2 2 2 / 0. 0. 0. / 1. 1. 1. / 1 1 1
cmo / setatt / mo / imt / 1 0 0 / 1
cmo / setatt / mo / itp / 1 0 0 / 0
connect
quality
## END 3D that works ----------------------------
## 3D 1 point --------------------------------
cmo delete mo
cmo create mo / / / tet
createpts / xyz / 1 1 1 / 0. 0. 0. / 0. 0. 0. / 1 1 1
cmo / setatt / mo / imt / 1 0 0 / 1
cmo / setatt / mo / itp / 1 0 0 / 0
connect
quality
## END 3D 1 point --------------------------------
## 3D 8 points duplicate --------------------------------
cmo delete mo
cmo create mo / / / tet
createpts / xyz / 2 2 2 / 0. 0. 0. / 0. 0. 0. / 1 1 1
cmo / setatt / mo / imt / 1 0 0 / 1
cmo / setatt / mo / itp / 1 0 0 / 0
connect
quality
## END 3D 8 points duplicate --------------------------------
# CHECK bad cmo
cmo delete mo
connect
# CHECK empty cmo
cmo create mo
connect
# END ALL TESTS
finish

View File

@@ -0,0 +1,46 @@
cmo/create/mo///triplane
createpts/xyz/2 2 1/0. 0. 0./1. 1. 0./1 1 1
cmo/setatt/mo/imt/1 0 0/1
cmo/setatt/mo/itp/1 0 0/0
connect
quality
cmo delete mo
cmo/create/mo///triplane
createpts/xyz/1 1 1/0. 0. 0./0. 0. 0./1 1 1
cmo/setatt/mo/imt/1 0 0/1
cmo/setatt/mo/itp/1 0 0/0
connect
quality
cmo delete mo
cmo/create/mo///triplane
createpts/xyz/2 2 1/1000. 0. 0./1001. 1. 0./1 1 1
cmo/setatt/mo/imt/1 0 0/1
cmo/setatt/mo/itp/1 0 0/0
connect
quality
cmo delete mo
cmo create mo///tet
createpts/xyz/2 2 2/0. 0. 0./1. 1. 1./1 1 1
cmo/setatt/mo/imt/1 0 0/1
cmo/setatt/mo/itp/1 0 0/0
connect
quality
cmo delete mo
cmo create mo///tet
createpts/xyz/1 1 1/0. 0. 0./0. 0. 0./1 1 1
cmo/setatt/mo/imt/1 0 0/1
cmo/setatt/mo/itp/1 0 0/0
connect
quality
cmo delete mo
cmo create mo///tet
createpts/xyz/2 2 2/0. 0. 0./0. 0. 0./1 1 1
cmo/setatt/mo/imt/1 0 0/1
cmo/setatt/mo/itp/1 0 0/0
connect
quality
cmo delete mo
connect
cmo create mo
connect
finish

View File

@@ -0,0 +1,394 @@
* * * * * * * * * * * * * * * * * * * * * * * * *
* * *
* * Program: LaGriT V3.3.3 Linux *
* * Date Compile: 2023/12/20 *
* * Run Time: 2023/Dec 21 15:50:58 *
* * Manual: https://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 the connect command in two dimensions. Currently this test fails when the
# unit square is positioned at this location (1000, 0, 0) and also at various
# other locations.
# For full test Run ./test_delaunay_2d -s to see where else the test fails.
#
# 2D that works -----------------------------
cmo/create/mo///triplane
createpts/xyz/2 2 1/0. 0. 0./1. 1. 0./1 1 1
RZ GENERATED POINTS 1 TO 4
cmo/setatt/mo/imt/1 0 0/1
Warning: nelements = 0
4 values reset for attribute imt1
cmo/setatt/mo/itp/1 0 0/0
Warning: nelements = 0
4 values reset for attribute itp1
connect
Coordinates of enclosing triangle are:
-0.17500D+01-0.16000D+01 0.00000D+00
0.27500D+01-0.17500D+01 0.00000D+00
0.50500D+00 0.50000D+01 0.00000D+00
Successfully eliminated all multimaterial connections.
The mesh is now complete!
LaGriT FINISH: connect
recon/0
RECON2D reconnection loop2d: 1
RECON: done.
finish
LaGriT FINISH: recon 0 for connect 2d
quality
epsilonl, epsilonaspect: 3.1401849E-13 3.0964614E-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. : 2
min aspect ratio = 0.8284E+00 max aspect ratio = 0.8284E+00
epsilonvol: 4.4408921E-13
---------------------------------------
All elements have volume 5.0000000E-01
-----------------------------------------------------------
2 total elements evaluated.
# END 2D that works -----------------------------
# 2D single point ------------------------------
cmo delete mo
Released Mesh Object: mo
cmo/create/mo///triplane
createpts/xyz/1 1 1/0. 0. 0./0. 0. 0./1 1 1
RZ GENERATED POINTS 1 TO 1
cmo/setatt/mo/imt/1 0 0/1
Warning: nelements = 0
1 values reset for attribute imt1
cmo/setatt/mo/itp/1 0 0/0
Warning: nelements = 0
1 values reset for attribute itp1
connect
ERROR: connect2d
connect2d > invalid number of nodes: 1
connect2d > ending with ierr1 flag: 1
ERROR END COUNT: 1 for connect2d
LaGriT WARNING: connect (2d) error: 1
quality
0 total elements in mesh.
# END 2D single point ------------------------------
# 2D 4 points not found -----------------------------
# trying to connect 0 points
# 4 points are being marked because they could not be connected.
cmo delete mo
Released Mesh Object: mo
cmo/create/mo///triplane
createpts/xyz/2 2 1/1000. 0. 0./1001. 1. 0./1 1 1
RZ GENERATED POINTS 1 TO 4
cmo/setatt/mo/imt/1 0 0/1
Warning: nelements = 0
4 values reset for attribute imt1
cmo/setatt/mo/itp/1 0 0/0
Warning: nelements = 0
4 values reset for attribute itp1
connect
Coordinates of enclosing triangle are:
0.99825D+03-0.16000D+01 0.00000D+00
0.10028D+04-0.17500D+01 0.00000D+00
0.10105D+04 0.50000D+01 0.00000D+00
There are 4 points that failed step 1
1 2 3 4
4 Points failed volume ratio test 0 Points failed min volume test.
There are 4 points that failed step 2
1 2 3 4
4 Points failed volume ratio test 0 Points failed min volume test.
There are 4 points that failed step 3
1 2 3 4
4 Points failed volume ratio test 0 Points failed min volume test.
4 points are being marked because they could not be connected.
1 0.1000000E+04 0.0000000E+00 0.0000000E+00
2 0.1001000E+04 0.0000000E+00 0.0000000E+00
3 0.1000000E+04 0.1000000E+01 0.0000000E+00
4 0.1001000E+04 0.1000000E+01 0.0000000E+00
Successfully eliminated all multimaterial connections.
ERROR: delaunay2d
> invalid number for element estimate: 0
> exiting with error num: 1
ERROR END: delaunay2d
Warning from: connect2d set info 0 elements
Dudding 4 points that have no associated triangle.
0.1000000E+04 0.0000000E+00 0.0000000E+00 1 1
0.1000000E+04 0.0000000E+00 0.0000000E+00 1 1
0.1001000E+04 0.0000000E+00 0.0000000E+00 2 1
0.1001000E+04 0.0000000E+00 0.0000000E+00 2 1
0.1000000E+04 0.1000000E+01 0.0000000E+00 3 1
0.1000000E+04 0.1000000E+01 0.0000000E+00 3 1
0.1001000E+04 0.1000000E+01 0.0000000E+00 4 1
0.1001000E+04 0.1000000E+01 0.0000000E+00 4 1
The mesh is complete but could not include all points.
Number of points that could not be connected: 4
LaGriT FINISH: connect
LaGriT WARNING: connect finished with 0 elements
quality
0 total elements in mesh.
# END 2D 4 points not found -----------------------------
## 3D that works --------------------------------
cmo delete mo
Released Mesh Object: mo
cmo create mo///tet
createpts/xyz/2 2 2/0. 0. 0./1. 1. 1./1 1 1
RZ GENERATED POINTS 1 TO 8
cmo/setatt/mo/imt/1 0 0/1
Warning: nelements = 0
8 values reset for attribute imt1
cmo/setatt/mo/itp/1 0 0/0
Warning: nelements = 0
8 values reset for attribute itp1
connect
Coordinates of enclosing tetrahedron are:
-0.20000D+01 -0.75000D+00 -0.75000D+00
0.50000D+00 -0.75000D+00 0.42500D+01
0.30000D+01 -0.75000D+00 -0.75000D+00
0.50000D+00 0.42500D+01 0.50000D+00
Successfully eliminated all multimaterial connections.
The mesh is now complete!
LaGriT FINISH: connect
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. : 6
min aspect ratio = 0.6230E+00 max aspect ratio = 0.7321E+00
epsilonvol: 2.2204460E-13
---------------------------------------
All elements have volume 1.6666667E-01
-----------------------------------------------------------
6 total elements evaluated.
## END 3D that works ----------------------------
## 3D 1 point --------------------------------
cmo delete mo
Released Mesh Object: mo
cmo create mo///tet
createpts/xyz/1 1 1/0. 0. 0./0. 0. 0./1 1 1
RZ GENERATED POINTS 1 TO 1
cmo/setatt/mo/imt/1 0 0/1
Warning: nelements = 0
1 values reset for attribute imt1
cmo/setatt/mo/itp/1 0 0/0
Warning: nelements = 0
1 values reset for attribute itp1
connect
ERROR: connect
connect > invalid number of nodes: 1
connect > ending with ierr1 flag: 1
ERROR END COUNT: 1 for connect
LaGriT WARNING: connect returned error: 1
quality
0 total elements in mesh.
## END 3D 1 point --------------------------------
## 3D 8 points duplicate --------------------------------
cmo delete mo
Released Mesh Object: mo
cmo create mo///tet
createpts/xyz/2 2 2/0. 0. 0./0. 0. 0./1 1 1
RZ GENERATED POINTS 1 TO 8
cmo/setatt/mo/imt/1 0 0/1
Warning: nelements = 0
8 values reset for attribute imt1
cmo/setatt/mo/itp/1 0 0/0
Warning: nelements = 0
8 values reset for attribute itp1
connect
Coordinates of enclosing tetrahedron are:
0.00000D+00 0.00000D+00 0.00000D+00
0.00000D+00 0.00000D+00 0.00000D+00
0.00000D+00 0.00000D+00 0.00000D+00
0.00000D+00 0.00000D+00 0.00000D+00
There are 8 points that failed step 1
1 2 3 4 5 6 7
8
At step 1 0 Points failed volume ratio test
8 points failed min volume test.
There are 8 points that failed step 2
1 2 3 4 5 6 7
8
At step 2 0 Points failed volume ratio test
8 points failed min volume test.
There are 8 points that failed step 3
1 2 3 4 5 6 7
8
At step 3 0 Points failed volume ratio test
8 points failed min volume test.
There are 8 points that failed step 4
1 2 3 4 5 6 7
8
At step 4 0 Points failed volume ratio test
8 points failed min volume test.
There are 8 points that failed step 5
1 2 3 4 5 6 7
8
At step 5 0 Points failed volume ratio test
8 points failed min volume test.
8 points are being marked because they could not be connected.
1 1 0.0000000E+00 0.0000000E+00 0.0000000E+00
2 1 0.0000000E+00 0.0000000E+00 0.0000000E+00
3 1 0.0000000E+00 0.0000000E+00 0.0000000E+00
4 1 0.0000000E+00 0.0000000E+00 0.0000000E+00
5 1 0.0000000E+00 0.0000000E+00 0.0000000E+00
6 1 0.0000000E+00 0.0000000E+00 0.0000000E+00
7 1 0.0000000E+00 0.0000000E+00 0.0000000E+00
8 1 0.0000000E+00 0.0000000E+00 0.0000000E+00
Successfully eliminated all multimaterial connections.
ERROR: delaunay
> invalid number for element estimate: 0
> exiting with error num: 1
ERROR END: delaunay
Warning from: connect set info 0 elements
Dudding 8 points that have no associated tetrahedra.
0.0000000E+00 0.0000000E+00 0.0000000E+00 1 1
0.0000000E+00 0.0000000E+00 0.0000000E+00 1 1
0.0000000E+00 0.0000000E+00 0.0000000E+00 2 1
0.0000000E+00 0.0000000E+00 0.0000000E+00 2 1
0.0000000E+00 0.0000000E+00 0.0000000E+00 3 1
0.0000000E+00 0.0000000E+00 0.0000000E+00 3 1
0.0000000E+00 0.0000000E+00 0.0000000E+00 4 1
0.0000000E+00 0.0000000E+00 0.0000000E+00 4 1
0.0000000E+00 0.0000000E+00 0.0000000E+00 5 1
0.0000000E+00 0.0000000E+00 0.0000000E+00 5 1
0.0000000E+00 0.0000000E+00 0.0000000E+00 6 1
0.0000000E+00 0.0000000E+00 0.0000000E+00 6 1
0.0000000E+00 0.0000000E+00 0.0000000E+00 7 1
0.0000000E+00 0.0000000E+00 0.0000000E+00 7 1
0.0000000E+00 0.0000000E+00 0.0000000E+00 8 1
0.0000000E+00 0.0000000E+00 0.0000000E+00 8 1
The mesh is complete but could not include all points.
Number of points that could not be connected: 8
LaGriT FINISH: connect
quality
0 total elements in mesh.
## END 3D 8 points duplicate --------------------------------
# CHECK bad cmo
cmo delete mo
Released Mesh Object: mo
connect
CMO_GET_INFO: Mesh Object does not exist: -notset-
Error from: msgtty get_info nsdtopo
CMO_GET_INFO: Mesh Object does not exist: -notset-
Error from: msgtty get_info nsdgeom
LaGriT ABORT: connect
ndimensions_topo= -1 ndimensions_geom= -1 not consistent - connect will not work
LaGriT ABORT: connect
error in command : connect
# CHECK empty cmo
cmo create mo
connect
ERROR: connect
connect > invalid number of nodes: 0
connect > ending with ierr1 flag: 1
ERROR END COUNT: 1 for connect
LaGriT WARNING: connect returned error: 1
# END ALL TESTS
finish
LaGriT successfully completed