Skip to content

Commit

Permalink
Added molsim_runlj which was apparently removed
Browse files Browse the repository at this point in the history
  • Loading branch information
Jesper Hansen committed May 7, 2023
1 parent 01d17f2 commit 232429b
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions inst/molsim_runlj.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@

%%
%% molsim_runlj: Simple Lennard-Jones simulation
%%
%% Test:
%%

function molsim_runlj()

cutoff = 2.5; epsilon = 1.0; sigma = 1.0; aw=1.0;

molsim('set', 'lattice', [10 10 10], [12 12 12]);
molsim('load', 'xyz', 'start.xyz');

for n=1:10000

molsim('reset');
molsim('calcforce', 'lj', 'AA', cutoff, sigma, epsilon, aw);
molsim('integrate', 'leapfrog');

if rem(n, 100)==0
molsim('print');
end

end

molsim('save', 'A', 'start.xyz');
molsim('clear');

fprintf('\n');

end

0 comments on commit 232429b

Please sign in to comment.