Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
parser-asap
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
nomad-lab
parser-asap
Commits
825ecbc0
Commit
825ecbc0
authored
8 years ago
by
Mikkel Strange
Browse files
Options
Downloads
Patches
Plain Diff
example of geometry optimazation
parent
9884d420
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
test/examples/geo_opt1.traj
+0
-0
0 additions, 0 deletions
test/examples/geo_opt1.traj
test/examples/go.py
+25
-0
25 additions, 0 deletions
test/examples/go.py
with
25 additions
and
0 deletions
test/examples/geo_opt1.traj
0 → 100644
+
0
−
0
View file @
825ecbc0
File added
This diff is collapsed.
Click to expand it.
test/examples/go.py
0 → 100644
+
25
−
0
View file @
825ecbc0
from
__future__
import
print_function
from
ase.lattice.cubic
import
FaceCenteredCubic
from
ase.optimize
import
BFGS
from
ase.io.trajectory
import
Trajectory
from
ase.constraints
import
FixedPlane
from
ase
import
units
from
asap3
import
EMT
# Way too slow with ase.EMT !
#from ase.calculators.emt import EMT
size
=
3
# Set up a crystal
atoms
=
FaceCenteredCubic
(
directions
=
[[
1
,
0
,
0
],
[
0
,
1
,
0
],
[
0
,
0
,
1
]],
symbol
=
"
Cu
"
,
size
=
(
size
,
size
,
size
),
pbc
=
False
)
cs
=
[
FixedPlane
(
a
,
[
0
,
0
,
1
])
for
a
in
range
(
1
)]
atoms
.
set_constraint
(
cs
)
atoms
.
set_calculator
(
EMT
())
dyn
=
BFGS
(
atoms
)
traj
=
Trajectory
(
'
geo_opt1.traj
'
,
'
w
'
,
atoms
)
dyn
.
attach
(
traj
)
dyn
.
run
(
fmax
=
0.1
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment