This repository has been archived by the owner on May 9, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsimgrains_demo.m
81 lines (69 loc) · 3.41 KB
/
simgrains_demo.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
% EXAMPLE USAGE: simgrains_demo
%
% Written by Daniel Buscombe, various times in 2011 - 2013
% while at
% School of Marine Science and Engineering, University of Plymouth, UK
% then
% Grand Canyon Monitoring and Research Center, U.G. Geological Survey, Flagstaff, AZ
% please contact:
% for lastest code version please visit:
% https://github.com/dbuscombe-usgs
% see also (project blog):
% http://dbuscombe-usgs.github.com/
% Buscombe, D. and Rubin, D.M., 2012, Advances in the Simulation and Automated Measurement of Well-Sorted Granular Material, Part 1: Simulations.
% Journal of Geophysical Research - Earth Surface 117, F02001.
%====================================
% This function is part of 'sand simulation toolbox' software
% This software is in the public domain because it contains materials that originally came
% from the United States Geological Survey, an agency of the United States Department of Interior.
% For more information, see the official USGS copyright policy at
% http://www.usgs.gov/visual-id/credit_usgs.html#copyright
%====================================
clc
disp('=============================================')
disp('======= SAND SIMULATION TOOLBOX =============')
disp('========= By Daniel Buscombe ================')
disp('Some demos illustrating some example uses of this toolbox')
disp('see the supplied config files for settings')
disp('see the following paper for more details:')
disp('Buscombe, D. and Rubin, D.M., 2012,')
disp('Advances in the Simulation and Automated Measurement of Well-Sorted Granular Material, Part 1: Simulations.')
disp('Journal of Geophysical Research - Earth Surface 117, F02001')
disp('=============================================')
disp('=========DEMO 1==============')
disp('200 grains using a supplied image, grain concentration of 0.7, no modified throats')
disp('saving slices and polytopes, printing surface')
disp('=============================================')
simgrains('sim.config')
clc
disp('===========DEMO 2============')
disp('1000 grains using a supplied file, grain concentration of 0.7, no modified throats')
disp('saving slices and polytopes, printing 3d model')
disp('=============================================')
simgrains('sim_from_input_coords.config')
clc
disp('=========DEMO 3==========')
disp('200 grains using a supplied image, grain concentration of 0.5, modified throats')
disp('saving slices and polytopes, printing surface and 3d model')
disp('=============================================')
simgrains('sim_from_input_image.config')
clc
disp('==========DEMO 4==============')
disp('1000 grains using a pvt model using a compiled fortran program, grain concentration of 0.7, modified throats')
disp('saving slices and polytopes, printing 3d-slice composite')
disp('=============================================')
simgrains('sim_using_model1.config')
clc
disp('=========DEMO 5=================')
disp('200 grains using a CP model in matlab, grain concentration of 0.7, no modified throats')
disp('saving slices and polytopes, printing 3d slice composite')
disp('=============================================')
simgrains('sim_using_model4.config')
clc
disp('========DEMO 6================')
disp('200 grains using a Strauss model in matlab, grain concentration of 0.7, no modified throats')
disp('saving slices and polytopes, printing 3d model')
disp('=============================================')
simgrains('sim_using_model5.config')
clc