Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

Data Files for "Balls in a Box" Tutorial Page 1 of 2

Data Files for "Balls in a Box" Tutorial


l cmlinear_simple.p3dat (3D example)
l cmlinear_simple.p2dat (2D example)

cmlinear_simple.p3dat

1 ; fname: cmlinear_simple.p3dat
2 ;
3 ; Exercise the Linear contact model
4 ;==============================================================================
5 new
6 title 'Balls in a box'
7
8 ; Set the domain extent
9 domain extent -10.0 10.0
10
11 ; Modify the default slots of the Contact Model Assignment Table
12 ; Here we choose the linear contact model (with kn=1e6) for all contact types
13 cmat default model linear property kn 1.0e6
14
15 ; Generate 30 balls in a box
16 wall generate box -5.0 5.0 onewall
17 set random 10001
18 ball generate radius 1.0 1.4 box -5.0 5.0 number 30
19
20 ; Assign ball density
21 ball attribute density 100.0
22
23 ; Activate gravity
24 set gravity 10.0
25
26 ;Save the initial state
27 save initial-state
28
29 ; Solve for a given time and save the model
30 solve time 10.0
31 save caseA-nodamping
32
33 ; Restore the initial state
34 restore initial-state
35
36 ; Modify the default slots of the Contact Model Assignement Table
37 ; Newly created contacts will use these settings
38 cmat default model linear property kn 1.0e6 ks 1.0e6 fric 0.25 dp_nratio 0.1
39 ; Apply the CMAT to existing contacts as well
40 ; Note that the contact model will be overridden (and therefore all previous
41 ; information will be lost)
42 cmat apply
43
44 ; Solve for a given time and save the model
45 solve time 10.0
46 save caseB-damping
47
48 return
49 ;==============================================================================
50 ; eof: cmlinear_simple.p3dat

Top

cmlinear_simple.p2dat

mk:@MSITStore:C:\Program%20Files\Itasca\PFC500\pfchelp.chm::/docproject/sour... 24-05-2022
Data Files for "Balls in a Box" Tutorial Page 2 of 2

1 ; fname: cmlinear_simple.p2dat
2 ;
3 ; Exercise the Linear contact model
4 ;==============================================================================
5 new
6 title 'Balls in a box'
7
8 ; Set the domain extent
9 domain extent -10.0 10.0
10
11 ; Modify the default slots of the Contact Model Assignment Table
12 ; Here we choose the linear contact model (with kn=1e6) for all contact types
13 cmat default model linear property kn 1.0e6
14
15 ; Generate 30 balls in a box
16 wall generate box -5.0 5.0 onewall
17 set random 10001
18 ball generate radius 1.0 1.5 box -4.0 4.0 number 30
19
20 ; Assign ball density
21 ball attribute density 100.0
22
23 ; Activate gravity
24 set gravity 10.0
25
26 ;Save the initial state
27 save initial-state
28
29 ; Solve for a given time and save the model
30 solve time 10.0
31 save caseA-nodamping
32
33 ; Restore the initial state
34 restore initial-state
35
36 ; Modify the default slots of the Contact Model Assignement Table
37 ; Newly created contacts will use these settings
38 cmat default model linear property kn 1.0e6 ks 1.0e6 fric 0.25 dp_nratio 0.1
39 ; Apply the CMAT to existing contacts as well
40 ; Note that the contact model will be overridden (and therefore all previous
41 ; information will be lost)
42 cmat apply
43
44 ; Solve for a given time and save the model
45 solve time 10.0
46 save caseB-damping
47
48 return
49 ;==============================================================================
50 ; eof: cmlinear_simple.p2dat

Top

© Copyright 2015, Itasca Consulting Group Inc. Last updated on Jun 17, 2019.

mk:@MSITStore:C:\Program%20Files\Itasca\PFC500\pfchelp.chm::/docproject/sour... 24-05-2022

You might also like