Skip to content

Commit

Permalink
test with CGX 2.16, update hcpy commands
Browse files Browse the repository at this point in the history
  • Loading branch information
mkraska committed Sep 8, 2019
1 parent 454dc12 commit 0328476
Show file tree
Hide file tree
Showing 128 changed files with 114 additions and 182 deletions.
2 changes: 1 addition & 1 deletion Dynamics/Discrete/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Spring/Mass Oscillator
Tested with CGX 2.15 / CCX 2.15
Tested with CGX 2.16 / CCX 2.15

+ Frequency response analysis
+ 2-Mass oscillator
Expand Down
Binary file modified Dynamics/Discrete/mesh.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Dynamics/Discrete/meshM.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 1 addition & 2 deletions Dynamics/Discrete/run.fbd
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ read MS.frd
read MS.inp nom
# plot model
seta ! all
hcpy png
sys mv hcpy_1.png mesh.png
hcpy png mesh
# plot mode shapes
seta path n 1 3 5
ds 1 e 1
Expand Down
3 changes: 1 addition & 2 deletions Dynamics/Discrete/runM.fbd
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ seta fix n 1
plot e all k
plus n all k 6
plus n fix r 6
hcpy png
sys mv hcpy_1.png meshM.png
hcpy png meshM
# plot mode shapes
seta path n 1 2 3
ds 1 e 1
Expand Down
1 change: 1 addition & 0 deletions Dynamics/Discrete/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
import os

os.system("cgx -b run.fbd")
os.system("cgx -b runM.fbd")
Binary file modified Kasten/D3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Kasten/PE.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion Kasten/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Non-linear Buckling
Tested with CGX 2.15 / CCX 2.15
Tested with CGX 2.16 / CCX 2.15

+ Large displacements
+ Plasticity
Expand Down
Binary file modified Kasten/deformed.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Kasten/geo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Kasten/imperfection.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 4 additions & 8 deletions Kasten/post.fbd
Original file line number Diff line number Diff line change
Expand Up @@ -12,28 +12,24 @@ ds -1 e 1
plot fv all
plus f all n
plus n
hcpy png
sys mv hcpy_1.png deformed.png
hcpy png deformed

view sh

ds 1 e 4
scal d 100
plot fv all
hcpy png
sys mv hcpy_2.png imperfection.png
hcpy png imperfection

ds -1 e 1
scal d
plot fv all
hcpy png
sys mv hcpy_3.png PE.png
hcpy png PE

ds -3 e 3
scal d
plot fv all
hcpy png
sys mv hcpy_4.png D3.png
hcpy png D3

# create force-displacement curve
sys dat2txt.py Kasten
Expand Down
6 changes: 2 additions & 4 deletions Kasten/pre.fbd
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ rot y
rot d 10
rot r 10
frame
hcpy png
sys mv hcpy_1.png geo.png
hcpy png geo

div all auto nd
elty all qu8r
Expand All @@ -46,5 +45,4 @@ ulin Sets: upper (blue), lower (red)
plot n upper b 6
plus n lower r 6
plus l all k
hcpy png
sys mv hcpy_2.png sets.png
hcpy png sets
Binary file modified Kasten/sets.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion Linear/BiaxBending/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Unsymmetric Bending
Tested with CGX 2.15 / CCX 2.15
Tested with CGX 2.16 / CCX 2.15

+ Application of bending moment via kinematic coupling without transverse constraints
+ Display of the neutral fiber
Expand Down
Binary file modified Linear/BiaxBending/Refs/disp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Linear/BiaxBending/Refs/mesh.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Linear/BiaxBending/Refs/neutral.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Linear/BiaxBending/Refs/sxx.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 6 additions & 9 deletions Linear/BiaxBending/par.run.fbl
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,7 @@ plus f load2 y
plus f load3 y
plus n ref b 10
plus n support r 10
hcpy png
sys mv hcpy_1.png Refs/mesh.png
hcpy png Refs/mesh

# Solving
sys ccx Biegung
Expand All @@ -101,20 +100,18 @@ view sh
scal d 1000
# sxx
ds 2 e 1
hcpy png
sys mv hcpy_2.png Refs/sxx.png
hcpy png Refs/sxx

# neutral fiber
ulin Neutral fiber
steps 2
hcpy png
sys mv hcpy_3.png Refs/neutral.png
mm 1
hcpy png Refs/neutral

#
ulin displacement
rot -x
rot c 90
plot n all r 1
plus f all n

hcpy png
sys mv hcpy_4.png Refs/disp.png
hcpy png Refs/disp
2 changes: 1 addition & 1 deletion Linear/Crack1/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Energy Release Rate (Global Energy Method)
Tested with CGX 2.15 / CCX 2.15, Gmsh 4.4.1
Tested with CGX 2.16 / CCX 2.15, Gmsh 4.4.1

+ Linear static solution
+ Symmetric model
Expand Down
Binary file modified Linear/Crack1/Refs/gmsh.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Linear/Crack1/Refs/se.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Linear/Crack1/Refs/sets.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 7 additions & 5 deletions Linear/Crack1/ct.fbd
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,17 @@ rot -z
rot l 30
rot d 30
view ill
plot f Load
plot fb all n 30
plus f Load
plus n Symy r
plus n Symz b
plus n origin g 8
hcpy png
sys mv hcpy_1.png Refs/sets.png
hcpy png Refs/sets

# solver run
sys ccx solve
read solve.frd

# symmetry expansion
seta orig e all
copy all new mir y
Expand All @@ -44,7 +46,7 @@ plus e new n
min 0 f
max 10 f
frame
hcpy png
sys mv hcpy_2.png Refs/se.png
hcpy png Refs/se

# display of the strain energy
sys more solve.dat
Binary file modified Linear/L-Plate/PS3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion Linear/L-Plate/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Buckling and modal analysis with preload
Tested with CGX 2.15 / CCX 2.15
Tested with CGX 2.16 / CCX 2.15

+ Modal analysis with preload
+ Eigenvalue buckling analysis
Expand Down
Binary file modified Linear/L-Plate/RFv.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Linear/L-Plate/b1.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Linear/L-Plate/b2.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Linear/L-Plate/b3.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Linear/L-Plate/mesh.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 4 additions & 7 deletions Linear/L-Plate/par.run.fbl
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,15 @@ enq nodes right rec <2*h> _ _ 0.01
# mesh image
view edge off
ulin upper (red), left (green), lower (blue), right (mag.)
#plot e all n
plot f all n
frame
plus n upper r 6
plus n left g 6
plus n lower b 6
plus n right m 6
view edge
hcpy png
sys mv hcpy_1.png mesh.png
hcpy png mesh

ulin
send all abq
send all abq nam
Expand All @@ -58,13 +57,11 @@ read solve.frd new
ds 2 e 19
view disp
scal d 1000
hcpy png
sys mv hcpy_2.png PS3.png
hcpy png PS3

ds 3 e 4
view vec
scal v 3
hcpy png
sys mv hcpy_3.png RFv.png
hcpy png RFv

# vibration shapes
Binary file modified Linear/L-Plate/v1.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Linear/L-Plate/v1n.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Linear/L-Plate/v2.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Linear/L-Plate/v2n.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Linear/L-Plate/v3.gif
Binary file modified Linear/L-Plate/v3n.png
Binary file modified Linear/L-Plate/v4n.png
14 changes: 6 additions & 8 deletions Linear/L-Plate/vmodes.fbd
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ rot d 60
zoom 1.5
tra r 20
view elem

# mode shape movies
ulin Vibration mode 1
movi frames 11
Expand All @@ -21,6 +22,7 @@ ulin Vibration mode 3
movi frames 11
ds 7 a
sys mv movie.gif v3.gif

# modal lines
rot -z
frame
Expand All @@ -29,20 +31,16 @@ ulin Vibration mode 1
ds 5 e 3
mm 20 f l
steps 5
hcpy png
sys mv hcpy_1.png v1n.png
hcpy png v1n

ulin Vibration mode 2
ds 6 e 3
hcpy png
sys mv hcpy_2.png v2n.png
hcpy png v2n

ulin Vibration mode 3
ds 7 e 3
hcpy png
sys mv hcpy_3.png v3n.png
hcpy png v3n

ulin Vibration mode 4
ds 8 e 3
hcpy png
sys mv hcpy_4.png v4n.png
hcpy png v4n
2 changes: 1 addition & 1 deletion Linear/Mesh1/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Modal analysis
Tested with CGX 2.15 / CCX 2.15
Tested with CGX 2.16 / CCX 2.15

+ Modal analysis with automatic generation of mode shape animations
+ Parametric model
Expand Down
Binary file modified Linear/Mesh1/Refs/mesh.png
Binary file modified Linear/Mesh1/Refs/shape_1.gif
Binary file modified Linear/Mesh1/Refs/shape_10.gif
Binary file modified Linear/Mesh1/Refs/shape_11.gif
Binary file modified Linear/Mesh1/Refs/shape_12.gif
Binary file modified Linear/Mesh1/Refs/shape_4.gif
Binary file modified Linear/Mesh1/Refs/shape_6.gif
Binary file modified Linear/Mesh1/Refs/shape_7.gif
Binary file modified Linear/Mesh1/Refs/shape_8.gif
Binary file modified Linear/Mesh1/Refs/shape_9.gif
4 changes: 2 additions & 2 deletions Linear/Mesh1/pre.fbl
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ elty all he8i
mesh all
send all abq

# mesh image
view elem
rot -z
rot d 60
plot n all r 1
plus f all n
frame
hcpy png
sys mv hcpy_1.png Refs/mesh.png
hcpy png Refs/mesh
Binary file modified Linear/PSE/EYY.png
2 changes: 1 addition & 1 deletion Linear/PSE/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Illustration of Plane Stress and Plane Strain
Tested with CGX 2.15 /CCX 2.15
Tested with CGX 2.16 /CCX 2.15

+ Parametric geometry
+ 4 simply supported beams with different width (one of them in fact a plate) and one of them with lateral constraints (plane strain)
Expand Down
Binary file modified Linear/PSE/SE.png
Binary file modified Linear/PSE/SXX.png
Binary file modified Linear/PSE/SYY.png
Binary file modified Linear/PSE/U3-flat.png
Binary file modified Linear/PSE/U3.png
Binary file modified Linear/PSE/load.png
Binary file modified Linear/PSE/mesh.png
41 changes: 15 additions & 26 deletions Linear/PSE/par.run.fbl
Original file line number Diff line number Diff line change
Expand Up @@ -39,37 +39,33 @@ rot l 20
rot u 25
zoom 2.3
view elem
text From bottom right: plane strain, plane stress, beam, plate
ulin From bottom right: plane strain, plane stress, beam, plate
seta ! all
hcpy png
sys mv hcpy_1.png mesh.png
hcpy png mesh

# z support
seta nodes n all
enq nodes fixz rec <le> _ _ 0.1
send fixz abq spc 3
text Constraint uz=0 (support)
ulin Constraint uz=0 (support)
plot n fixz
hcpy png
sys mv hcpy_2.png uz0.png
hcpy png uz0

# y support
enq nodes fixy rec _ <b0/2.> _ <1.1*b0/2.>
seta fixy p D003 D005 D007
comp fixy do
send fixy abq spc 2
text Constraint uy=0 (rigid body constraint and plane strain)
ulin Constraint uy=0 (rigid body constraint and plane strain)
plot n fixy
hcpy png
sys mv hcpy_3.png uy0.png
hcpy png uy0

# symmetry
enq nodes symx rec 0 _ _ 0.1
send symx abq spc 1
text Constraint ux=0 (symmetry)
ulin Constraint ux=0 (symmetry)
plot n symx
hcpy png
sys mv hcpy_4.png ux0.png
hcpy png ux0

# load
seta load s A00D A00E A00F A00G
Expand All @@ -78,8 +74,7 @@ comp load do
send load abq pres 1
text Pressure application area
plot f load
hcpy png
sys mv hcpy_5.png load.png
hcpy png load

sys ccx solve
read solve.frd
Expand All @@ -104,8 +99,7 @@ zoom 3
ds 1 e 3
text Vertical displacement
plot fv all
hcpy png
sys mv hcpy_6.png U3-flat.png
hcpy png U3-flat

seta base se all
copy all new mir x
Expand All @@ -118,25 +112,20 @@ tra l <le/2>

ds 1 e 3
plot fv base
hcpy png
sys mv hcpy_7.png U3.png
hcpy png U3

text Transverse strain
ds 3 e 2
hcpy png
sys mv hcpy_8.png EYY.png
hcpy png EYY

text Transverse stress
ds 2 e 2
hcpy png
sys mv hcpy_9.png SYY.png
hcpy png SYY

text Longitudinal (bending) stress
ds 2 e 1
hcpy png
sys mv hcpy_10.png SXX.png
hcpy png SXX

text Equivalent (von Mises) stress
ds 2 e 7
hcpy png
sys mv hcpy_11.png SE.png
hcpy png SE
Binary file modified Linear/PSE/ux0.png
Binary file modified Linear/PSE/uy0.png
Binary file modified Linear/PSE/uz0.png
Binary file modified Linear/Plates/2D3D.png
2 changes: 1 addition & 1 deletion Linear/Plates/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Axisymmetric Plate With Hole
Tested with CGX 2.15 / CCX 2.15
Tested with CGX 2.16 / CCX 2.15

+ Linear static solution
+ Axisymmetric model
Expand Down
Binary file modified Linear/Plates/mesh.png
Binary file modified Linear/Plates/polar.png
6 changes: 2 additions & 4 deletions Linear/Plates/post.fbd
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,9 @@ trfm cyl y
frame
view sh
plot fv all
hcpy png
sys mv hcpy_1.png polar.png
hcpy png polar

plot f all n
plus ev 2D
plus n 2D r 6
hcpy png
sys mv hcpy_2.png 2D3D.png
hcpy png 2D3D
Loading

0 comments on commit 0328476

Please sign in to comment.