Skip to content

Commit

Permalink
minor improvements 10Nov2023
Browse files Browse the repository at this point in the history
  • Loading branch information
mualal committed Nov 10, 2023
1 parent 63d8bde commit 5e3b3c1
Show file tree
Hide file tree
Showing 2 changed files with 33,402 additions and 38,635 deletions.
2 changes: 1 addition & 1 deletion matlab/lattice_lattice_interface.m
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
%clc;
clear;

% time step to save disp
Expand Down Expand Up @@ -98,7 +99,6 @@

% equations of motion integration
for t=times
disp_copy = disp;
%disp(int32(length(num_y)/a), int32(length(num_x)/a)) = sin(omega*t);
%vel(int32(length(num_y)/a), int32(length(num_x)/a)) = omega*cos(omega*t);
vel = vel + c./mass.*(circshift(disp,[-1 0])+circshift(disp,[1 0])+circshift(disp,[0 -1])+circshift(disp,[0 1])-4*disp).*dt;
Expand Down
Loading

0 comments on commit 5e3b3c1

Please sign in to comment.