Comments (1)
Check API example script:
https://github.com/abelcarreras/DynaPhoPy/blob/master/examples/api_scripts/script_silicon.py
The important point is that you have to create dynaphopy structure and trajectory objects from your ASE MD data.
For structure object you can check read_from_file_structure_poscar function:
For trajectory object you can check for instance read_VASP_XDATCAR function:
Basically:
import dynaphopy.atoms as atoms
structure = atoms.Structure(cell=latticevectors,
scaled_positions=scaled_positions,
atomic_elements=atomic_types)
where latticevectors is a 3x3 numpy array with the unit cell lattice vectors in rows, scaled_positions is a Nax3 numpy array with the coordinates of the atoms in fractional coordinates, and atomic_types is a list with the atomic symbols of atoms
import dynaphopy.dynamics as dyn
trajectory = dyn.Dynamics(structure=structure,
scaled_trajectory=trajectory_coordinates,
time=time,
supercell=super_cell)
where structure is the previously generated structure object, trajectory_coordinates is a NsxNax3 numpy array containing the coordinates of all the atoms at each time step in fractional coordinates, time is a Nsx1 list with the time corresponding at each step (in picoseconds) and super_cell is a 3x3 numpy array that defines the MD supercell respect to the unitcell (in general it is diagonal) :
MDCell = super_cell * UnitCell
from dynaphopy.
Related Issues (17)
- DynaPhoPy does not take NBLOCK into account HOT 6
- Still running into problems with NBLOCK HOT 88
- The output of blank picture of phonon dispersion HOT 7
- 4 - Frequency vs linewidth (interpolated mesh) HOT 10
- calculation on anharmonicity of amorphous using DynaPhopy HOT 3
- Divergence of the power spectra with the larger supercell HOT 10
- Error occurred when running GaN_lammps in examples. HOT 2
- Atomic order in POSCAR and the data file HOT 4
- Maxwell-Boltzmann distribution analysis does not fit well HOT 4
- No hdf5 parser in dynaphopy.interface.iofile.trajectory_parsers HOT 2
- Setup.py fails on Mac because erroneously detecting Windows HOT 2
- Full power spectra becomes noisier with increasing simulations length + odd behaviour with temperature HOT 7
- unittest failure `test_force_constants_self_consistency` in `Si_test.py` HOT 7
- RuntimeError when trying to project power spectra on phonon mode HOT 6
- The error when run the dynaphopy HOT 7
- How to run the dynaphopy by openmp HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dynaphopy.