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,145 @@
**************************************************************
* Test AMR refinement levels using principal refine direction (prd)
* Refine to 2 levels in xyz, refine to 7 levels in xy
* Use the refine command with amr keyword followed by iprd
* iprd - integer indicating the principal refinement direction.
* 123 = x,y,z
* 1 = x, 2 = y, 3 = z
* 12 = xy, 23 = yz, 13 = xz
* no amr flag reverts to the original octree without prd option
*
**************************************************************
* create a box with hex elements
cmo/create/cmo_hex///hex
createpts/brick/xyz/3,3,2/0.,0.,0./50.,50.,20./1,1,1
cmo/setatt/cmo_hex/imt/1,0,0/1
cmo/setatt/cmo_hex/idebug/3
cmo/set_id/cmo_hex/element/itetclr
* select a subset group of the hex elements to refine
pset/p1/geom/xyz/ 1,0,0/0.,0.,0./1. 1. 50.
cmo/setatt/cmo_hex/imt/pset,get,p1/2
* refine the selected set of elements in all directions
* begin compare here
refine/constant/imt1/linear/element/pset,get,p1/-1.,0.,0./inclusive/ amr 123
cmo status cmo_hex brief
* end compare here
rmpoint compress
* refine again
pset/p1/release
cmo/setatt/cmo_hex/imt/1,0,0/1
pset/p1/geom/xyz/ 1,0,0/0.,0.,0./1. 1. 50.
cmo/setatt/cmo_hex/imt/pset,get,p1/2
refine/constant/imt1/linear/element/pset,get,p1/-1.,0.,0./inclusive/ amr 123
rmpoint compress
* refine again in the x and y directions
pset/p1/release
cmo/setatt/cmo_hex/imt/1,0,0/1
pset/p1/geom/xyz/ 1,0,0/0.,0.,0./1. 1. 50.
cmo/setatt/cmo_hex/imt/pset,get,p1/2
refine/constant/imt1/linear/element/pset,get,p1/-1.,0.,0./inclusive/ amr 12
rmpoint compress
* refine again
pset/p1/release
cmo/setatt/cmo_hex/imt/1,0,0/1
pset/p1/geom/xyz/ 1,0,0/0.,0.,0./1. 1. 50.
cmo/setatt/cmo_hex/imt/pset,get,p1/2
refine/constant/imt1/linear/element/pset,get,p1/-1.,0.,0./inclusive/ amr 12
rmpoint compress
* refine again
pset/p1/release
cmo/setatt/cmo_hex/imt/1,0,0/1
pset/p1/geom/xyz/ 1,0,0/0.,0.,0./1. 1. 50.
cmo/setatt/cmo_hex/imt/pset,get,p1/2
refine/constant/imt1/linear/element/pset,get,p1/-1.,0.,0./inclusive/ amr 12
rmpoint compress
* refine again
pset/p1/release
cmo/setatt/cmo_hex/imt/1,0,0/1
pset/p1/geom/xyz/ 1,0,0/0.,0.,0./1. 1. 50.
cmo/setatt/cmo_hex/imt/pset,get,p1/2
refine/constant/imt1/linear/element/pset,get,p1/-1.,0.,0./inclusive/ amr 12
rmpoint compress
* refine again
pset/p1/release
cmo/setatt/cmo_hex/imt/1,0,0/1
pset/p1/geom/xyz/ 1,0,0/0.,0.,0./1. 1. 50.
cmo/setatt/cmo_hex/imt/pset,get,p1/2
refine/constant/imt1/linear/element/pset,get,p1/-1.,0.,0./inclusive/ amr 12
rmpoint compress
* refine again
pset/p1/release
cmo/setatt/cmo_hex/imt/1,0,0/1
pset/p1/geom/xyz/ 1,0,0/0.,0.,0./1. 1. 50.
cmo/setatt/cmo_hex/imt/pset,get,p1/2
* begin compare here
refine/constant/imt1/linear/element/pset,get,p1/-1.,0.,0./inclusive/ amr 123
rmpoint compress
cmo status cmo_hex brief
cmo printatt cmo_hex -all- minmax
* end compare here
*dump gmv output20_prd_L8.gmv
cmo delete cmo_hex
* Element set 3D
* one level xyz, second z
read avs input_hex.inp cmo_hex
eltset/ elm2 /itetclr/eq 2
pset/ pelm2 / eltset elm2
cmo setatt cmo_hex idebug 6
refine/constant/imt1/linear/element/pset,get,pelm2/-1.,0.,0./inclusive/ amr 123
rmpoint compress
eltset/ elm2 /itetclr/eq 2
pset/ pelm2 / eltset elm2
cmo setatt cmo_hex idebug 6
*begin compare here
refine/constant/imt1/linear/element/pset,get,pelm2/-1.,0.,0./inclusive/ amr 12
*end compare here
*dump gmv output21_L2x.gmv
cmo delete cmo_hex
* Element set 2D
* one level xy, second x
read avs input_quad.inp cmo_hex
cmo setatt cmo_hex idebug 6
cmo setatt cmo_hex imt1 1
resetpts itp
eltset/ elm2 /itetclr/ge 7
pset/ pelm2 / eltset elm2
refine/constant/imt1/linear/element/pset,get,pelm2/-1.,0.,0./inclusive/ amr 12
* begin compare here
cmo printatt cmo_hex itetclr
cmo printatt cmo_hex itetlev
cmo printatt cmo_hex itetkid
cmo printatt cmo_hex itetpar
* end compare here
*dump gmv output22_2d_L1xy.gmv cmo_hex ascii
eltset elm2 delete
pset pelm2 delete
eltset/ elm2 /itetclr/le 2
pset/ pelm2 / eltset elm2
* begin compare here
refine/constant/imt1/linear/element/pset,get,pelm2/-1.,0.,0./inclusive/ amr 1
* end compare here
*dump gmv output23_2d_L2xyz.gmv
* STOP
finish

View File

@@ -0,0 +1,46 @@
18 4 4 0 0
001 0.000000000000E+00 0.000000000000E+00 0.000000000000E+00
002 1.500000000000E+00 0.000000000000E+00 0.000000000000E+00
003 3.000000000000E+00 0.000000000000E+00 0.000000000000E+00
004 0.000000000000E+00 2.000000000000E+00 0.000000000000E+00
005 1.500000000000E+00 2.000000000000E+00 0.000000000000E+00
006 3.000000000000E+00 2.000000000000E+00 0.000000000000E+00
007 0.000000000000E+00 0.000000000000E+00 1.500000000000E+00
008 1.500000000000E+00 0.000000000000E+00 1.500000000000E+00
009 3.000000000000E+00 0.000000000000E+00 1.500000000000E+00
010 0.000000000000E+00 2.000000000000E+00 1.500000000000E+00
011 1.500000000000E+00 2.000000000000E+00 1.500000000000E+00
012 3.000000000000E+00 2.000000000000E+00 1.500000000000E+00
013 0.000000000000E+00 0.000000000000E+00 3.000000000000E+00
014 1.500000000000E+00 0.000000000000E+00 3.000000000000E+00
015 3.000000000000E+00 0.000000000000E+00 3.000000000000E+00
016 0.000000000000E+00 2.000000000000E+00 3.000000000000E+00
017 1.500000000000E+00 2.000000000000E+00 3.000000000000E+00
018 3.000000000000E+00 2.000000000000E+00 3.000000000000E+00
001 1 hex 7 8 11 10 1 2 5 4
002 2 hex 8 9 12 11 2 3 6 5
003 3 hex 13 14 17 16 7 8 11 10
004 4 hex 14 15 18 17 8 9 12 11
00004 1 1 1 1
imt1, integer
itp1, integer
icr1, integer
isn1, integer
1 1 0 0 0
2 1 0 0 0
3 1 0 0 0
4 1 0 0 0
5 1 0 0 0
6 1 0 0 0
7 1 0 0 0
8 1 0 0 0
9 1 0 0 0
10 1 0 0 0
11 1 0 0 0
12 1 0 0 0
13 1 0 0 0
14 1 0 0 0
15 1 0 0 0
16 1 0 0 0
17 1 0 0 0
18 1 0 0 0

View File

@@ -0,0 +1,44 @@
15 8 4 0 0
001 0.000000000000E+00 0.000000000000E+00 0.000000000000E+00
002 1.250000000000E+00 0.000000000000E+00 0.000000000000E+00
003 2.500000000000E+00 0.000000000000E+00 0.000000000000E+00
004 3.750000000000E+00 0.000000000000E+00 0.000000000000E+00
005 5.000000000000E+00 0.000000000000E+00 0.000000000000E+00
006 0.000000000000E+00 0.000000000000E+00 2.500000000000E+00
007 1.250000000000E+00 0.000000000000E+00 2.500000000000E+00
008 2.500000000000E+00 0.000000000000E+00 2.500000000000E+00
009 3.750000000000E+00 0.000000000000E+00 2.500000000000E+00
010 5.000000000000E+00 0.000000000000E+00 2.500000000000E+00
011 0.000000000000E+00 0.000000000000E+00 5.000000000000E+00
012 1.250000000000E+00 0.000000000000E+00 5.000000000000E+00
013 2.500000000000E+00 0.000000000000E+00 5.000000000000E+00
014 3.750000000000E+00 0.000000000000E+00 5.000000000000E+00
015 5.000000000000E+00 0.000000000000E+00 5.000000000000E+00
001 1 quad 1 2 7 6
002 2 quad 2 3 8 7
003 3 quad 3 4 9 8
004 4 quad 4 5 10 9
005 5 quad 6 7 12 11
006 6 quad 7 8 13 12
007 7 quad 8 9 14 13
008 8 quad 9 10 15 14
00004 1 1 1 1
imt1, integer
itp1, integer
icr1, integer
isn1, integer
1 1 0 0 0
2 1 0 0 0
3 1 0 0 0
4 1 0 0 0
5 1 0 0 0
6 1 0 0 0
7 1 0 0 0
8 1 0 0 0
9 1 0 0 0
10 1 0 0 0
11 1 0 0 0
12 1 0 0 0
13 1 0 0 0
14 1 0 0 0
15 1 0 0 0

View File

@@ -0,0 +1,83 @@
cmo/create/cmo_hex///hex
createpts/brick/xyz/3,3,2/0.,0.,0./50.,50.,20./1,1,1
cmo/setatt/cmo_hex/imt/1,0,0/1
cmo/setatt/cmo_hex/idebug/3
cmo/set_id/cmo_hex/element/itetclr
pset/p1/geom/xyz/1,0,0/0.,0.,0./1. 1. 50.
cmo/setatt/cmo_hex/imt/pset,get,p1/2
refine/constant/imt1/linear/element/pset,get,p1/-1.,0.,0./inclusive/amr 123
cmo status cmo_hex brief
rmpoint compress
pset/p1/release
cmo/setatt/cmo_hex/imt/1,0,0/1
pset/p1/geom/xyz/1,0,0/0.,0.,0./1. 1. 50.
cmo/setatt/cmo_hex/imt/pset,get,p1/2
refine/constant/imt1/linear/element/pset,get,p1/-1.,0.,0./inclusive/amr 123
rmpoint compress
pset/p1/release
cmo/setatt/cmo_hex/imt/1,0,0/1
pset/p1/geom/xyz/1,0,0/0.,0.,0./1. 1. 50.
cmo/setatt/cmo_hex/imt/pset,get,p1/2
refine/constant/imt1/linear/element/pset,get,p1/-1.,0.,0./inclusive/amr 12
rmpoint compress
pset/p1/release
cmo/setatt/cmo_hex/imt/1,0,0/1
pset/p1/geom/xyz/1,0,0/0.,0.,0./1. 1. 50.
cmo/setatt/cmo_hex/imt/pset,get,p1/2
refine/constant/imt1/linear/element/pset,get,p1/-1.,0.,0./inclusive/amr 12
rmpoint compress
pset/p1/release
cmo/setatt/cmo_hex/imt/1,0,0/1
pset/p1/geom/xyz/1,0,0/0.,0.,0./1. 1. 50.
cmo/setatt/cmo_hex/imt/pset,get,p1/2
refine/constant/imt1/linear/element/pset,get,p1/-1.,0.,0./inclusive/amr 12
rmpoint compress
pset/p1/release
cmo/setatt/cmo_hex/imt/1,0,0/1
pset/p1/geom/xyz/1,0,0/0.,0.,0./1. 1. 50.
cmo/setatt/cmo_hex/imt/pset,get,p1/2
refine/constant/imt1/linear/element/pset,get,p1/-1.,0.,0./inclusive/amr 12
rmpoint compress
pset/p1/release
cmo/setatt/cmo_hex/imt/1,0,0/1
pset/p1/geom/xyz/1,0,0/0.,0.,0./1. 1. 50.
cmo/setatt/cmo_hex/imt/pset,get,p1/2
refine/constant/imt1/linear/element/pset,get,p1/-1.,0.,0./inclusive/amr 12
rmpoint compress
pset/p1/release
cmo/setatt/cmo_hex/imt/1,0,0/1
pset/p1/geom/xyz/1,0,0/0.,0.,0./1. 1. 50.
cmo/setatt/cmo_hex/imt/pset,get,p1/2
refine/constant/imt1/linear/element/pset,get,p1/-1.,0.,0./inclusive/amr 123
rmpoint compress
cmo status cmo_hex brief
cmo printatt cmo_hex -all- minmax
cmo delete cmo_hex
read avs input_hex.inp cmo_hex
eltset/elm2/itetclr/eq 2
pset/pelm2/eltset elm2
cmo setatt cmo_hex idebug 6
refine/constant/imt1/linear/element/pset,get,pelm2/-1.,0.,0./inclusive/amr 123
rmpoint compress
eltset/elm2/itetclr/eq 2
pset/pelm2/eltset elm2
cmo setatt cmo_hex idebug 6
refine/constant/imt1/linear/element/pset,get,pelm2/-1.,0.,0./inclusive/amr 12
cmo delete cmo_hex
read avs input_quad.inp cmo_hex
cmo setatt cmo_hex idebug 6
cmo setatt cmo_hex imt1 1
resetpts itp
eltset/elm2/itetclr/ge 7
pset/pelm2/eltset elm2
refine/constant/imt1/linear/element/pset,get,pelm2/-1.,0.,0./inclusive/amr 12
cmo printatt cmo_hex itetclr
cmo printatt cmo_hex itetlev
cmo printatt cmo_hex itetkid
cmo printatt cmo_hex itetpar
eltset elm2 delete
pset pelm2 delete
eltset/elm2/itetclr/le 2
pset/pelm2/eltset elm2
refine/constant/imt1/linear/element/pset,get,pelm2/-1.,0.,0./inclusive/amr 1
finish

File diff suppressed because it is too large Load Diff