-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Move file writing from destructor to _to_disk() throughout Analysis namespace. Save to disk every macro-step. Minor check for atom array when reading molecule types * Add templated inv_sqrt() function and test; clarify manual * Add ideal cluster test and update cluster documentation which did not show properly on readthedocs * Allow control of expensive debug check in virtual volume move and minor code cleanup * Fix json compilation error introduced in previous commit Related to #196
- Loading branch information
Showing
12 changed files
with
267 additions
and
151 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"moves": [ | ||
{ | ||
"moltransrot": { | ||
"acceptance": 1.0, | ||
"√⟨r²⟩": 11.5 | ||
} | ||
}, | ||
{ | ||
"moltransrot": { | ||
"acceptance": 1.0, | ||
"√⟨r²⟩": 11.5 | ||
} | ||
}, | ||
{ | ||
"cluster": { | ||
"acceptance": 0.85, | ||
"bias rejection rate": 0.15, | ||
"satellites": [ | ||
"other" | ||
], | ||
"√⟨r²⟩": 10.4, | ||
"√⟨θ²⟩/°": 45.7, | ||
"⟨N⟩": 1.22 | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#!/usr/bin/env yason.py | ||
# | ||
# In an ideal system the average cluster size equals | ||
# | ||
# N_c = 1 + 4 * pi * Rc**3 * N / (3 * L**3) = 1.22 in this case | ||
# | ||
temperature: 300 | ||
random: {seed: fixed} | ||
geometry: {type: cuboid, length: 40} | ||
mcloop: {macro: 10, micro: 20000} | ||
|
||
atomlist: | ||
- OW: {q: -0.8476, sigma: 3.166, eps: 0.650, mw: 15.999} | ||
- HW: {q: 0.4238, sigma: 2, eps: 0, mw: 1.007} | ||
|
||
moleculelist: | ||
- water: {structure: water.xyz, rigid: true} | ||
- other: {structure: water.xyz, rigid: true} | ||
|
||
insertmolecules: | ||
- water: {N: 5} | ||
- other: {N: 5} | ||
|
||
energy: | ||
- bonded: {} # just a dummy energy | ||
|
||
moves: | ||
- moltransrot: {molecule: water, dp: 20, dprot: 1, repeat: 1} | ||
- moltransrot: {molecule: other, dp: 20, dprot: 1, repeat: 1} | ||
- cluster: {molecules: [water, other], dp: 20, dprot: 3, threshold: 7, satellites: [other]} | ||
|
||
analysis: | ||
- savestate: {file: confout.pqr} | ||
- savestate: {file: state.json} | ||
- sanity: {nstep: 100} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.