Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Mohit Prateek
Roll No. 09D02017
LAMMPS
LAMMPS
LAMMPS
LAMMPS
LIGGGHTS
The
Literature Review
Due
Simple
Literature Review
Louge
Babic
Hsiau
Literature Review
To
Lun
Xu
Literature Review
Pouliquen
Non-dimensional
Dury
Rice
Bidisperse
Geometrical Representation
*.STL File; Viewed by Paraview
Pre-Simulation Values
Region
SI
of Simulation: 10 cm x 4 cm x 4 cm
units
Inclined
Plane:
Base : 5 cm
Angle: 13.92 degrees
Gravity:
9.81 m/s/s
of 5000 atoms
Diameter:
0.5 mm
Volume Fraction: 0.7
Density: 2500
Initial velocity: 0,0,0
Coefficient of Restitution: 0.9
Young's Modulus: 5E6
Poisson's ratio: 0.45
Simulation
ITEM: ATOMS id type type x y z vx vy vz fx fy fz tqx tqy tqz omegax omegay omegaz radius
First Timestep
. . . . . . 0.00025
. . . . . . .
Next Timestep
. . . . . . 0.00025
. . . . . . .
Simulation Video
https://dl.dropbox.com/u/19552558/Video_EN_649_Mohit_Prateek.avi
Post
Processing
SCILAB
LEVEL 1
LEVEL 2
MAKE3D.SCI
FUNCTIONS
REMOVEX.SCI
SORTBYCOLUMN.SCI
Function Description
MAKE3D.SCI
REMOVEX.SCI
function [M2]=make3d(M,
division_size) [rows, column] =
size(M);
ds = division_size;
M2 = M(1:ds,:,:);
for i = 2:(rows/ds)
M2(:,:,i) = M(((i*ds)-(ds1)):(i*ds),:,:);
end
return
endfunction
function [Mx2]=removex(Mx)
len = length(Mx(:,4));
for i = 10:10:len
if Mx(i,4) > 0.05 then
Mx = Mx(i:len,:);
i = i - 10;
else break;
end
len = length(Mx(:,4));
end Mx2 = Mx;
return
endfunction
Function Description
SORT_COLUMN_ROWWISE2D.SCI
MOHITPLOT.SCI
function [A,
k]=sort_column_rowwise2d(a,
column_number)
cs = column_number;
[B,k]=gsort(a(:,cs),'g');
[r,c] = size(a);
A = rand(r,c);
for i = 1:r
A(i,:) = a (k(i),:);
end
return
endfunction
function mohitplot()
a=gca();
a.font_size=2;
poly1= a.children.children(1);
poly1.thickness = 3;
a.title.font_size = 5;
a.x_label.font_size = 3.5;
a.y_label.font_size = 3.5;
xgrid
endfunction
Code Description
READING FILE
stacksize('max'); // To increase
the limit in Scilab !
M_raw =
fscanfMat('Default_edited.flow'
);
M_raw = M_raw(:,1:18); //
Removing radius column !
M = make3d(M_raw,5000); //
There is a loss of data after if
the division size is not a multiple
of division size !
[row, column, rc] = size(M);
EXTRACTING VALUES
// Reading file and naming it !
id = M(:,1,:);
x = M(:,4,:);
y = M(:,5,:);
z = M(:,6,:);
vx = M(:,7,:);
vy = M(:,8,:);
vz = M(:,9,:);
fx = M(:,10,:);
fy = M(:,11,:);
fz = M(:,12,:);
tx = M(:,13,:);
ty = M(:,14,:);
tz = M(:,15,:);
ox = M(:,16,:);
oy = M(:,17,:);
oz = M(:,18,:);
// File reading done !
Code Description
FOR SINGLE PARTICLE
// Calculations start !
v = sqrt(vx.*vx + vy.*vy + vz.*vz);
F_atom = sqrt(fx.*fx + fy.*fy + fz.*fz);
T_atom = sqrt(tx.*tx + ty.*ty + tz.*tz);
KE_atom =
(1/2)*2500*(4/3*%pi*(0.00025^3))*(v
x.*vx + vy.*vy + vz.*vz);
RE_atom =
(1/2)*(2/5)*2500*(4/3*%pi*(0.00025
^3))*(0.00025^2)*(ox.*ox + oy.*oy +
oz.*oz);
KE_RE_atom = KE_atom + RE_atom;
for i =1:rc
vtotal(i) = sum(v(:,:,i));
KE(i) = sum(KE_atom(:,:,i));
RE(i) = sum(RE_atom(:,:,i));
KE_RE(i) =
sum(KE_RE_atom(:,:,i));
F(i) = sum(F_atom(:,:,i));
T(i) = sum(T_atom(:,:,i));
end
Graphs
SCILAB
LEVEL 1
LEVEL 2
LEVEL 3
LEVEL 4
FOR ANGLE 13
WRT TIME
FOR ANGLE 20
GRAPHS
FOR ANGLE 13
FOR Z-AXIS
FOR ANGLE 20
WRT AXIS
FOR ANGLE 13
FOR X-AXIS
FOR ANGLE 20
Code Description
SAMPLE CODE FOR GENERATING A GRAPH
t = 1:1:rc;
l = 1100;
b = 750;
scf(1);
f=gcf(); // Create a figure
f.figure_size= [l,b];
plot(t,vtotal);
mohitplot();
xtitle("Variation of Velocity with Time", "Time (s)", "Velocity (m/s)");
Here we have shown the variation of Total Kinetic Energy with time which has more or
less the same variation as velocity
Code Description
ROTATING AND ADDING TO THE
HYPERMATRIX
M(:,19,:) = x1;
M(:,20,:) = y1;
M(:,21,:) = z1;
M_raw(:,19) = x1;
M_raw(:,20) = y1;
M_raw(:,21) = z1;
LEVEL 1
LEVEL 2
LEVEL 3
LEVEL 4
FOR ANGLE 13
WRT TIME
FOR ANGLE 20
GRAPHS
FOR ANGLE 13
FOR Z-AXIS
FOR ANGLE 20
WRT AXIS
FOR ANGLE 13
FOR X-AXIS
FOR ANGLE 20
As we can see, Rotational energy increases along the inclinewith a sudden increase at
0.05 m due to the collision with the ground
Here we have shown the variation of Total Kinetic Energy which has more or less the
same variation as velocity
The energy increases since the partciles at top are more free to move compared to
the particles at the bottom of the pile.
References
Rheology
Velocity
Flow
Transition
Discrete
Special Thanks To
Prateek Maheshwari
Aditya Telang
Chaitanya Wadi
Thank You ! :)
Mohit Prateek
Roll No. 09D02017