initial upload
This commit is contained in:
@@ -0,0 +1,56 @@
|
||||
# Tutorial LaGriT Introduction
|
||||
# Step 1. Build a Hex Mesh
|
||||
|
||||
# Create an empty hex mesh object called 3dmesh
|
||||
cmo / create / 3dmesh / / / hex
|
||||
|
||||
# View the mesh object attributes
|
||||
cmo / status / 3dmesh
|
||||
|
||||
# Define parameters that will be used to create a mesh.
|
||||
# Values used will be the last written
|
||||
|
||||
# Mesh domain 100x50x80
|
||||
define / XMIN / 0.
|
||||
define / XMAX / 100.
|
||||
define / YMIN / 0.
|
||||
define / YMAX / 50.
|
||||
define / ZMIN / 0.
|
||||
define / ZMAX / 80.
|
||||
|
||||
# Set the number of points along each axis
|
||||
# Spacing of 10 will have 11 points for length 100
|
||||
define / NX / 11
|
||||
define / NY / 6
|
||||
define / NZ / 9
|
||||
define / NZ / 17
|
||||
|
||||
# Create points and connect into a hex mesh
|
||||
createpts/brick/xyz/ NX NY NZ / XMIN YMIN ZMIN/ XMAX YMAX ZMAX / 1,1,1
|
||||
|
||||
# Set materials for nodes (imt) and elements (itetlcr) to 1
|
||||
# This is good practice and avoids 0 values in these atttributes
|
||||
# Note 1,0,0 represents all for node start,stride,end
|
||||
cmo / setatt / 3dmesh / imt / 1,0,0 / 1
|
||||
cmo / setatt / 3dmesh / itetclr / 1,0,0 / 1
|
||||
|
||||
# Set node boundary flags in the itp attribute
|
||||
# This is good practice and can be called anytime to update this array
|
||||
resetpts/itp
|
||||
|
||||
# View Mesh Object status, brief version
|
||||
cmo/status/ 3dmesh / brief
|
||||
|
||||
# Report the min max values of the mesh attributes
|
||||
# keyword -all- or -xyz- can be used
|
||||
cmo/printatt/3dmesh/ -xyz- minmax
|
||||
|
||||
# Check mesh with quality command
|
||||
# There should be no negative or zero volumes
|
||||
quality
|
||||
|
||||
# Write an AVS format mesh file for viewing
|
||||
dump/ avs / 01_hex_mesh.inp / 3dmesh
|
||||
|
||||
# END of command file
|
||||
finish
|
||||
@@ -0,0 +1,56 @@
|
||||
# Tutorial Example 1
|
||||
#
|
||||
|
||||
# Create an empty hex mesh object called 3dmesh
|
||||
cmo / create / 3dmesh / / / hex
|
||||
|
||||
# View the mesh object attributes
|
||||
cmo / status / 3dmesh
|
||||
|
||||
# Define parameters that will be used to create a mesh.
|
||||
# Values used will be the last written
|
||||
|
||||
# Mesh domain 100x50x80
|
||||
define / XMIN / 0.
|
||||
define / XMAX / 100.
|
||||
define / YMIN / 0.
|
||||
define / YMAX / 50.
|
||||
define / ZMIN / 0.
|
||||
define / ZMAX / 80.
|
||||
|
||||
# Set the number of points along each axis
|
||||
# Spacing of 10 will have 11 points for length 100
|
||||
define / NX / 11
|
||||
define / NY / 6
|
||||
define / NZ / 9
|
||||
define / NZ / 17
|
||||
|
||||
# Create points and connect into a hex mesh
|
||||
createpts/brick/xyz/ NX NY NZ / XMIN YMIN ZMIN/ XMAX YMAX ZMAX / 1,1,1
|
||||
|
||||
# Set materials for nodes (imt) and elements (itetlcr) to 1
|
||||
# This is good practice and avoids 0 values in these atttributes
|
||||
# Note 1,0,0 represents all for node start,stride,end
|
||||
cmo / setatt / 3dmesh / imt / 1,0,0 / 1
|
||||
cmo / setatt / 3dmesh / itetclr / 1,0,0 / 1
|
||||
|
||||
# Set node boundary flags in the itp attribute
|
||||
# This is good practice and can be called anytime to update this array
|
||||
resetpts/itp
|
||||
|
||||
# View Mesh Object status, brief version
|
||||
cmo/status/ 3dmesh / brief
|
||||
|
||||
# Report the min max values of the mesh attributes
|
||||
# keyword -all- or -xyz- can be used
|
||||
cmo/printatt/3dmesh/ -xyz- minmax
|
||||
|
||||
# Check mesh with quality command
|
||||
# There should be no negative or zero volumes
|
||||
quality
|
||||
|
||||
# Write an AVS format mesh file for viewing
|
||||
dump/ avs / 01_hex_mesh.inp / 3dmesh
|
||||
|
||||
# END of command file
|
||||
finish
|
||||
@@ -0,0 +1,21 @@
|
||||
cmo/create/3dmesh///hex
|
||||
cmo/status/3dmesh
|
||||
define/XMIN/0.
|
||||
define/XMAX/100.
|
||||
define/YMIN/0.
|
||||
define/YMAX/50.
|
||||
define/ZMIN/0.
|
||||
define/ZMAX/80.
|
||||
define/NX/11
|
||||
define/NY/6
|
||||
define/NZ/9
|
||||
define/NZ/17
|
||||
createpts/brick/xyz/NX NY NZ/XMIN YMIN ZMIN/XMAX YMAX ZMAX/1,1,1
|
||||
cmo/setatt/3dmesh/imt/1,0,0/1
|
||||
cmo/setatt/3dmesh/itetclr/1,0,0/1
|
||||
resetpts/itp
|
||||
cmo/status/3dmesh/brief
|
||||
cmo/printatt/3dmesh/-xyz- minmax
|
||||
quality
|
||||
dump/avs/01_hex_mesh.inp/3dmesh
|
||||
finish
|
||||
@@ -0,0 +1,197 @@
|
||||
|
||||
|
||||
* * * * * * * * * * * * * * * * * * * * * * * * *
|
||||
* * *
|
||||
* * Program: LaGriT V3.3.4 Linux *
|
||||
* * Compiler Name: GNU *
|
||||
* * Compiler Version: 9.4.0 *
|
||||
* * Date Compile: 2024/05/06 *
|
||||
* * Run Time: 2025/Jan 16 16:17:30 *
|
||||
* * 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: lagrit.out
|
||||
Command log file: lagrit.log
|
||||
|
||||
# Tutorial Example 1
|
||||
#
|
||||
# Create an empty hex mesh object called 3dmesh
|
||||
cmo/create/3dmesh///hex
|
||||
# View the mesh object attributes
|
||||
cmo/status/3dmesh
|
||||
|
||||
The current-mesh-object(CMO) is: 3dmesh
|
||||
|
||||
1 Mesh Object name: 3dmesh
|
||||
number of nodes = 0 number of elements = 0
|
||||
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 agl 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 0.000E+00
|
||||
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 0.000E+00
|
||||
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 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 0.000E+00
|
||||
38 ipointj INT scalar scalar const perma l 0.000E+00
|
||||
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
|
||||
# Define parameters that will be used to create a mesh.
|
||||
# Values used will be the last written
|
||||
# Mesh domain 100x50x80
|
||||
define/XMIN/0.
|
||||
define/XMAX/100.
|
||||
define/YMIN/0.
|
||||
define/YMAX/50.
|
||||
define/ZMIN/0.
|
||||
define/ZMAX/80.
|
||||
# Set the number of points along each axis
|
||||
# Spacing of 10 will have 11 points for length 100
|
||||
define/NX/11
|
||||
define/NY/6
|
||||
define/NZ/9
|
||||
define/NZ/17
|
||||
# Create points and connect into a hex mesh
|
||||
createpts/brick/xyz/NX NY NZ/XMIN YMIN ZMIN/XMAX YMAX ZMAX/1,1,1
|
||||
Number of nodes: 1122
|
||||
Number of elements: 800
|
||||
Number of negative volume elements: 0
|
||||
Total volume: 0.400000000000E+06
|
||||
# Set materials for nodes (imt) and elements (itetlcr) to 1
|
||||
# This is good practice and avoids 0 values in these atttributes
|
||||
# Note 1,0,0 represents all for node start,stride,end
|
||||
cmo/setatt/3dmesh/imt/1,0,0/1
|
||||
1122 values reset for attribute imt1
|
||||
|
||||
cmo/setatt/3dmesh/itetclr/1,0,0/1
|
||||
800 values reset for attribute itetclr
|
||||
|
||||
# Set node boundary flags in the itp attribute
|
||||
# This is good practice and can be called anytime to update this array
|
||||
resetpts/itp
|
||||
geniee
|
||||
finish
|
||||
# View Mesh Object status, brief version
|
||||
cmo/status/3dmesh/brief
|
||||
|
||||
The current-mesh-object(CMO) is: 3dmesh
|
||||
|
||||
1 Mesh Object name: 3dmesh
|
||||
number of nodes = 1122 number of elements = 800
|
||||
dimensions geometry = 3 element type = hex
|
||||
dimensions topology = 3 8 nodes 6 faces 12 edges
|
||||
boundary flag = 16000000 status = active
|
||||
|
||||
|
||||
# Report the min max values of the mesh attributes
|
||||
# keyword -all- or -xyz- can be used
|
||||
cmo/printatt/3dmesh/-xyz- minmax
|
||||
ATTRIBUTE NAME MIN MAX DIFFERENCE LENGTH
|
||||
xic 0.000000000E+00 1.000000000E+02 1.000000000E+02 1122
|
||||
yic 0.000000000E+00 5.000000000E+01 5.000000000E+01 1122
|
||||
zic 0.000000000E+00 8.000000000E+01 8.000000000E+01 1122
|
||||
|
||||
# Check mesh with quality command
|
||||
# There should be no negative or zero volumes
|
||||
quality
|
||||
|
||||
epsilonl, epsilonaspect: 3.0526086E-11 2.8445488E-32
|
||||
--------------------------------------------
|
||||
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. : 800
|
||||
min aspect ratio = 0.1000E+01 max aspect ratio = 0.1000E+01
|
||||
|
||||
epsilonvol: 8.8817842E-08
|
||||
---------------------------------------
|
||||
All elements have volume 5.0000000E+02
|
||||
-----------------------------------------------------------
|
||||
800 total elements evaluated.
|
||||
|
||||
# Write an AVS format mesh file for viewing
|
||||
dump/avs/01_hex_mesh.inp/3dmesh
|
||||
cmo/modatt/-def-/-def-/ioflag/x
|
||||
finish
|
||||
# END of command file
|
||||
finish
|
||||
LaGriT successfully completed
|
||||
3050
docs/pages/tutorial/lagrit_introduction/step_01/01_hex_mesh.inp
Normal file
3050
docs/pages/tutorial/lagrit_introduction/step_01/01_hex_mesh.inp
Normal file
File diff suppressed because it is too large
Load Diff
BIN
docs/pages/tutorial/lagrit_introduction/step_01/01_hex_mesh.png
Normal file
BIN
docs/pages/tutorial/lagrit_introduction/step_01/01_hex_mesh.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 336 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 485 KiB |
21
docs/pages/tutorial/lagrit_introduction/step_01/lagrit.log
Normal file
21
docs/pages/tutorial/lagrit_introduction/step_01/lagrit.log
Normal file
@@ -0,0 +1,21 @@
|
||||
cmo/create/3dmesh///hex
|
||||
cmo/status/3dmesh
|
||||
define/XMIN/0.
|
||||
define/XMAX/100.
|
||||
define/YMIN/0.
|
||||
define/YMAX/50.
|
||||
define/ZMIN/0.
|
||||
define/ZMAX/80.
|
||||
define/NX/11
|
||||
define/NY/6
|
||||
define/NZ/9
|
||||
define/NZ/17
|
||||
createpts/brick/xyz/NX NY NZ/XMIN YMIN ZMIN/XMAX YMAX ZMAX/1,1,1
|
||||
cmo/setatt/3dmesh/imt/1,0,0/1
|
||||
cmo/setatt/3dmesh/itetclr/1,0,0/1
|
||||
resetpts/itp
|
||||
cmo/status/3dmesh/brief
|
||||
cmo/printatt/3dmesh/-xyz- minmax
|
||||
quality
|
||||
dump/avs/01_hex_mesh.inp/3dmesh
|
||||
finish
|
||||
Reference in New Issue
Block a user