You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+53Lines changed: 53 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -51,6 +51,41 @@ The labels provided in the `OUTCAR`, i.e. energies, forces and virials (if any),
51
51
52
52
The `System` or `LabeledSystem` can be constructed from the following file formats with the `format key` in the table passed to argument `fmt`:
53
53
54
+
The Class `dpdata.MultiSystems` can read data from a dir which may contains many files of different systems, or from single xyz file which contains different systems.
55
+
56
+
Use `dpdata.MultiSystems.from_dir` to read from a directory, `dpdata.MultiSystems` will walk in the directory
57
+
Recursively and find all file with specific file_name. Supports all the file formats that `dpdata.LabeledSystem` supports.
58
+
59
+
Use `dpdata.MultiSystems.from_file` to read from single file. Now only support quip/gap/xyz format file.
60
+
61
+
For example, for `quip/gap xyz` files, single .xyz file may contain many different configurations with different atom numbers and atom type.
62
+
63
+
The following commands relating to `Class dpdata.MultiSystems` may be useful.
by which only the first and last frames are dumped to `dpmd_raw`.
155
+
156
+
## replicate
157
+
dpdata will create a super cell of the current atom configuration.
158
+
```python
159
+
dpdata.System('./POSCAR').replicate((1,2,3,) )
160
+
```
161
+
tuple(1,2,3) means don't copy atom configuration in x direction, make 2 copys in y direction, make 3 copys in z direction.
162
+
163
+
## perturb
164
+
By the following example, each frame of the original system (`dpdata.System('./POSCAR')`) is perturbed to generate three new frames. For each frame, the cell is perturbed by 5% and the atom positions are perturbed by 0.6 Angstrom. `atom_pert_style` indicates that the perturbation to the atom positions is subject to normal distribution. Other available options to `atom_pert_style` are`uniform` (uniform in a ball), and `const` (uniform on a sphere).
0 commit comments