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 7, 2019
1 parent 7015458 commit 454dc12
Show file tree
Hide file tree
Showing 57 changed files with 48 additions and 78 deletions.
2 changes: 1 addition & 1 deletion Contact/Penalty/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Basic Tests of Penalty Contact
Tested with CGX 2.15 / CCX 2.15
Tested with CGX 2.16 / CCX 2.15

+ Completely displacement controlled model (no dofs)
+ Objective: extract pressure-penetration characteristic for various contact options
Expand Down
5 changes: 1 addition & 4 deletions Contact/Penalty/all.fbd
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@ move cgw tra 0.01 0 0
plot f cgw r
plus f ckw b
plus n hist t 10
hcpy png
sys mv hcpy_1.png contact.png
hcpy png contact

# contact versions
sys cp s2s-lin.inc contact.inc
Expand Down Expand Up @@ -75,7 +74,6 @@ sys mv graph_2.out n2s-lin.hist
sys dat2txt.py solve
sys mv "total force fx,fy,fz_NKW.txt" n2s-lin.txt


sys cp n2s-exp.inc contact.inc
sys ccx solve
read solve.frd new
Expand All @@ -85,7 +83,6 @@ sys mv graph_3.out n2s-exp.hist
sys dat2txt.py solve
sys mv "total force fx,fy,fz_NKW.txt" n2s-exp.txt


sys cp n2s-tab.inc contact.inc
sys ccx solve
read solve.frd new
Expand Down
Binary file modified Contact/Penalty/contact.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 2 additions & 4 deletions Contact/Shell0/run.fbd
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,7 @@ frame
#tra d 2
#tra r 2
seta ! all
hcpy png
sys mv hcpy_1.png model.png
hcpy png model

# plot of the contact pair
view ill
Expand All @@ -75,8 +74,7 @@ plot f k1 r 8
plus f s1 b
plus n k1 r 8
frame s1
hcpy png
sys mv hcpy_2.png contact.png
hcpy png contact

sys ccx ctyp
sys python dat2txt.py ctyp
Expand Down
2 changes: 1 addition & 1 deletion Contact/Shell1/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Shell Assembly
Tested with CGX 2.15 / CCX 2.15
Tested with CGX 2.16 / CCX 2.15

+ Shell assembly with edge to face tied Lagrange contact
+ Indenter with surface-to surface penalty contact
Expand Down
Binary file modified Contact/Shell1/Refs/def1.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 Contact/Shell1/Refs/model.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 Contact/Shell1/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.
Binary file modified Contact/Shell1/Refs/worstPS1.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 Contact/Shell1/Refs/worstPS2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 3 additions & 6 deletions Contact/Shell1/post.fbd
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,14 @@ rot u 5
ds -2 e 23
plot fv Epart
plus f Eind n
hcpy png
sys mv hcpy_1.png Refs/worstPS1.png
hcpy png Refs/worstPS1

rot d 30
hcpy png
sys mv hcpy_2.png Refs/worstPS2.png
hcpy png Refs/worstPS2

# shaded deformed plot
rot y
rot l 10
rot u 5
plus f all n
hcpy png
sys mv hcpy_3.png Refs/def1.png
hcpy png Refs/def1
14 changes: 10 additions & 4 deletions Contact/Shell1/pre.fbd
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ valu ls 30
valu ri 10
valu xi -5
valu ts 1

# core
pnt p0 0 0 0
seto cl
Expand All @@ -17,6 +18,7 @@ seta c_bottom se all
merg p all
swep c_bottom c_top tra 0 0 hc
seta core all

# skin
valu ls_half / ls 2
valu ls_neg * ls -1
Expand All @@ -28,11 +30,13 @@ setc
copy bottom top tra 0 0 hc
flip bottom
seta part se all

# edges
seta bot_edge l L00B L00C L00D L00E
comp bot_edge do
seta top_edge l L00F L00G L00H L00I
comp top_edge do

# indenter
seto ind
pnt pk0 0 0 0
Expand All @@ -52,18 +56,21 @@ seto ind
copy ind new rot z 180
merg n ind
setc

# positioning the indenter
move ind rot y 180
move ind tra 0 0 hc
move ind tra 0 0 ri
move ind tra 0 0 ts
move ind tra xi 0 0

# meshing
div part mult 2
elty part qu8
mesh part
send all abq
send all abq nam

# surfaces
send c_bottom abq surf
send c_top abq surf
Expand All @@ -72,6 +79,7 @@ send top abq surf
seta topneg se top
send topneg abq surf -
send ind abq sur

# image
ulin Independent meshes
view elem
Expand All @@ -82,12 +90,10 @@ rot u 30
seta ! all
frame
zoom 0.9
hcpy png
sys mv hcpy_1.png Refs/model.png
hcpy png Refs/model

ulin Sets: bot_edge (red), ind (blue)
plot f all n
plus n bot_edge r 6
plus n ind b 6
hcpy png
sys mv hcpy_2.png Refs/sets.png
hcpy png Refs/sets
2 changes: 1 addition & 1 deletion Contact/Tubes/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Telescoping Tubes Under Bending Load
Tested with CGX 2.15 / CCX 2.15
Tested with CGX 2.16 / CCX 2.15

+ Telescopic structure of linear elastic tubes
+ Loaded in pure bending (no shear)
Expand Down
Binary file modified Contact/Tubes/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 Contact/Tubes/SE_zoom.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 Contact/Tubes/contact.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 Contact/Tubes/cpress.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 Contact/Tubes/cpress_rot.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 Contact/Tubes/post.fbd
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,17 @@ ds -2 e 7
plot fv all
frame
#zoom 1.5
hcpy png
sys mv hcpy_1.png SE.png
hcpy png SE
zoom 4
hcpy png
sys mv hcpy_2.png SE_zoom.png
hcpy png SE_zoom

# color plots of contact pressure
ds -1 e 4
plot fv Sdep
view sh off
hcpy png
sys mv hcpy_3.png cpress.png
hcpy png cpress
rot u 60
hcpy png
sys mv hcpy_4.png cpress_rot.png
hcpy png cpress_rot

sys dat2txt.py
sys gnuplot moment.plt
6 changes: 2 additions & 4 deletions Contact/Tubes/pre.fbd
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,10 @@ plus f ind b
plus f dep r
view elem
zoom 4
hcpy png
sys mv hcpy_1.png contact.png
hcpy png contact

plot n fix m 6
plus n load t 6
plus n ysym r 4
ulin fix (magenta), ysym (red), load (turq)
hcpy png
sys mv hcpy_2.png sets.png
hcpy png sets
Binary file modified Contact/Tubes/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 Contact/Valve/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Engine Valve
Tested with CGX 2.15 / CCX 2.15
Tested with CGX 2.16 / CCX 2.15

+ Axisymmetric model of a valve with valve seat
+ Linear elastic material
Expand Down
Binary file modified Contact/Valve/mesh-vsc.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 Contact/Valve/mesh.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 2 additions & 4 deletions Contact/Valve/par.pre.fbd
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,7 @@ plus f press b 6
plus f vsc m 10
plus f vc y 6
frame
hcpy png
sys mv hcpy_1.png mesh.png
hcpy png mesh

frame vsc
hcpy png
sys mv hcpy_2.png mesh-vsc.png
hcpy png mesh-vsc
6 changes: 2 additions & 4 deletions Contact/Valve/post.fbd
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ ds 2 e 7
tra u 15
zoom 2.5
plot fv all
hcpy png
sys mv hcpy_1.png se.png
hcpy png se

seta ! all

Expand All @@ -41,8 +40,7 @@ zoom 1.2
tra u 15
rot r 20
rot u 10
hcpy png
sys mv hcpy_2.png se_exp.png
hcpy png se_exp

# path plot
sys gnuplot path.gnu
Binary file modified Contact/Valve/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 Contact/Valve/se_exp.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 Drahtbiegen/Biegung/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 Drahtbiegen/Biegung/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Wire Bending
Tested with CGX 2.15 / CCX 2.15
Tested with CGX 2.16 / CCX 2.15

Click the image to see the animation

Expand Down
Binary file modified Drahtbiegen/Biegung/contact.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 Drahtbiegen/Biegung/deform.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 Drahtbiegen/Biegung/movie.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 Drahtbiegen/Biegung/parts.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 2 additions & 4 deletions Drahtbiegen/Biegung/post.fbd
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ rot r 130
zoom 1.5
ds -1 e 1
seta ! all
hcpy png
sys mv hcpy_1.png deform.png
hcpy png deform

rot y
frame
Expand All @@ -22,5 +21,4 @@ zoom 1.5
tra r 2
plot fv Ndraht
min 0 f
hcpy png
sys mv hcpy_2.png PE.png
hcpy png PE
12 changes: 4 additions & 8 deletions Drahtbiegen/Biegung/pre.fbd
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,7 @@ zoom 1.5
ulin Nodes for symmetry constraint
plot e all n
plot n symy 6
hcpy png
sys mv hcpy_1.png symy.png
hcpy png symy

# constrain wire end
seta nodes n all
Expand All @@ -96,8 +95,7 @@ send wfix abq spc 123
ulin Nodes for wire constraint
plot e all n
plot n wfix 6
hcpy png
sys mv hcpy_2.png wfix.png
hcpy png wfix

# constrain fixed cylinder
send rfix abq spc 123
Expand Down Expand Up @@ -132,12 +130,10 @@ plot f find t
plus f fdep b
plus f mind m
plus f mdep r
hcpy png
sys mv hcpy_3.png contact.png
hcpy png contact

# parts and elements
view elem
ulin Independent parts
seta ! all
hcpy png
sys mv hcpy_4.png parts.png
hcpy png parts
Binary file modified Drahtbiegen/Biegung/symy.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 Drahtbiegen/Biegung/wfix.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 Drahtbiegen/Zug/2D.fbd
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,4 @@ max 2 f l
min -0.2 f l
plot fv all

hcpy png
sys mv hcpy_1.png PE-2D.png
hcpy png PE-2D
Binary file modified Drahtbiegen/Zug/2D3D.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 Drahtbiegen/Zug/PE-2D.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 Drahtbiegen/Zug/PE-expanded.png
2 changes: 1 addition & 1 deletion Drahtbiegen/Zug/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Tensile Test
Tested with CGX 2.15 / CCX 2.15
Tested with CGX 2.16 / CCX 2.15

Issues
* dark shading of `expanded.png` worked around with first generating a color plot and then add a shaded geometry plot using `plus`
Expand Down
Binary file modified Drahtbiegen/Zug/expanded.png
9 changes: 3 additions & 6 deletions Drahtbiegen/Zug/expansion.fbd
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,14 @@ rot l 25
rot u 15
zoom 2
plot fv all
hcpy png
sys mv hcpy_1.png PE-expanded.png
hcpy png PE-expanded

plot fv all
plus f all n
hcpy png
sys mv hcpy_2.png expanded.png
hcpy png expanded

plus ev base
hcpy png
sys mv hcpy_3.png 2D3D.png
hcpy png 2D3D

# movie
plot ev all
Expand Down
Binary file modified Drahtbiegen/Zug/movie.gif
6 changes: 2 additions & 4 deletions Drahtbiegen/Zug/par.pre.fbd
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ tra l <Dia/2.>
plot la all
plus sa all
plus pa all
hcpy png
sys mv hcpy_1.png zug-geo.png
hcpy png zug-geo

ulin Sets: top (blue), sym (green), bottom (turq)
view elem
Expand All @@ -47,6 +46,5 @@ plus n bottom t 8
plus n sym g 6


hcpy png
sys mv hcpy_2.png zug-sets.png
hcpy png zug-sets
# END OF SCRIPT
Binary file modified Drahtbiegen/Zug/path.png
Binary file modified Drahtbiegen/Zug/path0.png
Binary file modified Drahtbiegen/Zug/path0_v.png
Binary file modified Drahtbiegen/Zug/path0geo.png
Binary file modified Drahtbiegen/Zug/path_v.png
Binary file modified Drahtbiegen/Zug/pathgeo.png
6 changes: 2 additions & 4 deletions Drahtbiegen/Zug/pre.fbd
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ tra l 0.5
plot la all
plus sa all
plus pa all
hcpy png
sys mv hcpy_1.png zug-geo.png
hcpy png zug-geo

ulin Sets: top (blue), sym (green), bottom (turq)
view elem
Expand All @@ -47,6 +46,5 @@ plus n bottom t 8
plus n sym g 6


hcpy png
sys mv hcpy_2.png zug-sets.png
hcpy png zug-sets
# END OF SCRIPT
8 changes: 2 additions & 6 deletions Drahtbiegen/Zug/vpre.fbd
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,12 @@ tra l Radius
plot la all
plus sa all
plus pa all
hcpy png
sys mv hcpy_1.png zug-geo.png
hcpy png zug-geo

ulin Sets: top (blue), sym (green), bottom (turq)
view elem
plot f all n
plus n top b 8
plus n bottom t 8
plus n sym g 6


hcpy png
sys mv hcpy_2.png zug-sets.png
hcpy png zug-sets
Binary file modified Drahtbiegen/Zug/zug-geo.png
Binary file modified Drahtbiegen/Zug/zug-sets.png

0 comments on commit 454dc12

Please sign in to comment.