tydio / latgen Goto Github PK
View Code? Open in Web Editor NEWThis project forked from lingtikong/latgen
Code to generate crystalline lattice with different orientations.
This project forked from lingtikong/latgen
Code to generate crystalline lattice with different orientations.
latgen : a lattice generation code # Author: Ling-Ti Kong, konglt_AT_sjtu.edu.cn #------------------------------------------------------------------------------- This code helps to prepare the atomic position file needed by MD codes, as well as the map file needed by fix-phonon. Several typical lattices with different orientations have been coded, yet the user can provide their unit cell info and uses this code to generate the atomic position file for their system of interest as well. In general, the "orientation" means the crystalgraphic direction that will be aligned to the z axis of the cartesian coordinate system. When one wants to create the atomic position based on their own lattice (option 7 in the main menu), one can choose to input the unit cell related info step by step or by providing an input file. In the latter case, the format of the input file is the same as the POSCAR of VASP 5 (Direct, ie, fractional coordinates). Here is an example of FCC Cu, with the conventional orientation: #------------------------------------------------------------------------------- Comment 3.615 1 0 0 0 1 0 0 0 1 Cu 4 Direct 0. 0. 0. 0.5 0.5 0. 0.5 0. 0.5 0. 0.5 0.5 #------------------------------------------------------------------------------- The 1st line is a comment, the 2nd line is the lattice constant or scaling factor of the lattice, the 3rd-5th lines are the basis vectors that define the unit cell. The 6th line lists the element names, and the 7th line lists the number of atoms for each kind of element; here we just have one kind of element, and 4 atoms in a convention cell of FCC Cu. From the 9th line, the coordinates are listed. The coordinates are fractional, i.e., in unit of alat * A1, alat * A2, alat * A3. Please note that this code is written for personal use only, no support or warranty will be provided. But if any bug found, feel free to drop a line to [email protected]. For updates, please check: https://github.com/lingtikong/latgen.git #------------------------------------------------------------------------------- INSTALL: It should be very easy to compile this code: 1) Modify the Makefile, set the correct path info for your compiler; The as-provided Makefile should work under most Linux systems. 2) make 3) cp latgen ~/bin #------------------------------------------------------------------------------- Author: Lingti Kong, konglt(at)sjtu.edu.cn May 2020
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.