Skip to content

Commit

Permalink
Update stru.md (#1274)
Browse files Browse the repository at this point in the history
  • Loading branch information
dyzheng committed Sep 22, 2022
1 parent 4404379 commit 69baeb1
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions docs/advanced/input_files/stru.md
Original file line number Diff line number Diff line change
Expand Up @@ -231,28 +231,28 @@ information that comes below.
- `Cartesian` : Cartesian coordinates in unit of 'LATTICE_CONSTANT'.
- `Cartesian_au` : Cartesian coordinates in unit of Bohr, same as setting of `Cartesian` with `LATTICE_CONSTANT` = 1.0 .
- `Cartesian_angstrom` : Cartesian coordinates in unit of Angstrom, same as setting of `Cartesian` with `LATTICE_CONSTANT` = 1.889726125457828 .
- `Cartesian_angstrom_center_xy` : Cartesian coordinates in unit of Angstrom, a position vector (x, y, z) refer to (0.5 + x, 0.5 + y, z) with `Cartesian_angstrom`.
- `Cartesian_angstrom_center_xz` : Cartesian coordinates in unit of Angstrom, a position vector (x, y, z) refer to (0.5 + x, y, 0.5 + z) with `Cartesian_angstrom`.
- `Cartesian_angstrom_center_yz` : Cartesian coordinates in unit of Angstrom, a position vector (x, y, z) refer to (x, 0.5 + y, 0.5 + z) with `Cartesian_angstrom`.
- `Cartesian_angstrom_center_xyz` : Cartesian coordinates in unit of Angstrom, a position vector (x, y, z) refer to (0.5 + x, 0.5 + y, 0.5 + z) with `Cartesian_angstrom`.
- `Cartesian_angstrom_center_xy` : Cartesian coordinates in unit of Angstrom, with Direct coordinate (0.5, 0.5, 0.0) as reference.
- `Cartesian_angstrom_center_xz` : Cartesian coordinates in unit of Angstrom, with Direct coordinate (0.5, 0.0, 0.5) as reference..
- `Cartesian_angstrom_center_yz` : Cartesian coordinates in unit of Angstrom, with Direct coordinate (0.0, 0.5, 0.5) as reference..
- `Cartesian_angstrom_center_xyz` : Cartesian coordinates in unit of Angstrom, with Direct coordinate (0.5, 0.5, 0.5) as reference..

The following three lines tells the elemental type (`Si`), the initial magnetic moment (`0.0`), and the number of atoms for this particular element (`2`) repsectively. Notice this magnetic moment will be a default value for every atom of this type but will be overrided if one define it for each atom by keyword(see below).
The following three lines tells the elemental type (`Fe`), the initial magnetic moment (`1.0`), and the number of atoms for this particular element (`2`) repsectively. Notice this magnetic moment will be a default value for every atom of this type but will be overrided if one define it for each atom by keyword(see below).

The last two lines in this example are the coordinates of atomic positions. There are three numbers in each line, which specifies the atomic positions, following by other parameters marked by keywords.

Several other parameters could be defined after the atom position using key word :
- `m` or NO key word: three numbers, which take value in 0 or 1, control how the atom move in geometry relaxation calculations. The numbers `0 0 0` following the coordinates of the first atom means this atom are *not allowed* to move in all three directions, and the numbers `1 1 1` following the coordinates of the second atom means this atom *can* move in all three directions.
- `v` or `vel` or `velocity`: set the three components of initial velocity of atoms in geometry relaxation calculations.
- `mag` or `magmom` : set the start magnetization for each atom. In colinear case only one number should be given. In non-colinear case one have two choice:either set one number for the norm of magnetization here and specify two polar angle later, or set three number for the xyz commponent of magnetization here.
- `m` or NO key word: three numbers, which take value in 0 or 1, control how the atom move in geometry relaxation calculations. In example below, the numbers `0 0 0` following the coordinates of the first atom means this atom are *not allowed* to move in all three directions, and the numbers `1 1 1` following the coordinates of the second atom means this atom *can* move in all three directions.
- `v` or `vel` or `velocity`: set the three components of initial velocity of atoms in geometry relaxation calculations(e. g. `v 1.0 1.0 1.0`).
- `mag` or `magmom` : set the start magnetization for each atom. In colinear case only one number should be given. In non-colinear case one have two choice:either set one number for the norm of magnetization here and specify two polar angle later(e. g. see below), or set three number for the xyz commponent of magnetization here (e. g. `mag 0.0 0.0 1.0`). Note that if this parameter is set, the initial magnetic moment setting in the second line will be invalid.
- `angle1`: in non-colinear case, specify the angle between c-axis and real spin, in angle measure instead of radian measure
- `angle2`: in non-colinear case, specify angle between a-axis and real spin in projection in ab-plane , in angle measure instead of radian measure

e.g.:

```
Fe
1
1.0
2
0.0 0.0 0.0 0 0 0 angle1 90 angle2 0
0.5 0.5 0.5 0 0 0 angle1 90 angle2 180
0.0 0.0 0.0 m 0 0 0 mag 1.0 angle1 90 angle2 0
0.5 0.5 0.5 m 1 1 1 mag 1.0 angle1 90 angle2 180
```

0 comments on commit 69baeb1

Please sign in to comment.