Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
parser-asap
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nomad-lab
parser-asap
Commits
7bcc89c5
Commit
7bcc89c5
authored
Sep 12, 2016
by
Mikkel Strange
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
smaller example file
parent
13e8554a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
test/examples/md.py
test/examples/md.py
+2
-2
test/examples/moldyn2.traj
test/examples/moldyn2.traj
+0
-0
No files found.
test/examples/md.py
View file @
7bcc89c5
...
...
@@ -20,7 +20,7 @@ atoms = FaceCenteredCubic(directions=[[1, 0, 0], [0, 1, 0], [0, 0, 1]],
n
=
1
cs
=
[
FixedPlane
(
a
,
[
0
,
0
,
1
])
for
a
in
range
(
1
)]
#
atoms.set_constraint(cs)
atoms
.
set_constraint
(
cs
)
# Describe the interatomic interactions with the Effective Medium Theory
atoms
.
set_calculator
(
EMT
())
...
...
@@ -40,7 +40,7 @@ def printenergy(a=atoms): # store a reference to atoms in the definition.
dyn
.
attach
(
printenergy
,
interval
=
50
)
# We also want to save the positions of all atoms after every 100th time step.
traj
=
Trajectory
(
'moldyn
2
.traj'
,
'w'
,
atoms
)
traj
=
Trajectory
(
'moldyn
1
.traj'
,
'w'
,
atoms
)
dyn
.
attach
(
traj
.
write
,
interval
=
50
)
# Now run the dynamics
...
...
test/examples/moldyn2.traj
View file @
7bcc89c5
No preview for this file type
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment