Explore Enterprise Education Gitee Premium Gitee AI AI teammates
Fetch the repository succeeded.
Create your Gitee Account
Explore and code with more than 14 million developers,Free private repositories !:)
Sign up
Already have an account? Sign in
文件
develop
Branches (8)
Tags (98)
develop
dashboard
copilot/fix-test-github-actions-job
feature/openmp-hsolver
LTS
feat/tests-17-ds-dftu
ZhouXY-KML
feat/dftu-pw-port-v2
v3.11.0-beta5
v3.11.0-beta4
v3.11.0-beta.3
v3.11.0-beta.2
3.11.0-beta.1
v3.9.0.27
v3.9.0.26
v3.9.0.25
v3.9.0.24
v3.9.0.23
v3.9.0.22
v3.9.0.21
v3.9.0.20
v3.9.0.19
v3.10.1
v3.9.0.18
v3.9.0.17
v3.9.0.16
v3.9.0.15
v3.9.0.14
develop
Branches (8)
Tags (98)
develop
dashboard
copilot/fix-test-github-actions-job
feature/openmp-hsolver
LTS
feat/tests-17-ds-dftu
ZhouXY-KML
feat/dftu-pw-port-v2
v3.11.0-beta5
v3.11.0-beta4
v3.11.0-beta.3
v3.11.0-beta.2
3.11.0-beta.1
v3.9.0.27
v3.9.0.26
v3.9.0.25
v3.9.0.24
v3.9.0.23
v3.9.0.22
v3.9.0.21
v3.9.0.20
v3.9.0.19
v3.10.1
v3.9.0.18
v3.9.0.17
v3.9.0.16
v3.9.0.15
v3.9.0.14
Clone or Download
Clone/Download
Prompt
To download the code, please copy the following command and execute it in the terminal
To ensure that your submitted code identity is correctly recognized by Gitee, please execute the following command.
When using the SSH protocol for the first time to clone or push code, follow the prompts below to complete the SSH configuration.
1 Generate RSA keys.
2 Obtain the content of the RSA public key and configure it in SSH Public Keys
To use SVN on Gitee, please visit the usage guide
When using the HTTPS protocol, the command line will prompt for account and password verification as follows. For security reasons, Gitee recommends configure and use personal access tokens instead of login passwords for cloning, pushing, and other operations.
Username for 'https://gitee.com': userName
Password for 'https://userName@gitee.com': # Private Token
develop
Branches (8)
Tags (98)
develop
dashboard
copilot/fix-test-github-actions-job
feature/openmp-hsolver
LTS
feat/tests-17-ds-dftu
ZhouXY-KML
feat/dftu-pw-port-v2
v3.11.0-beta5
v3.11.0-beta4
v3.11.0-beta.3
v3.11.0-beta.2
3.11.0-beta.1
v3.9.0.27
v3.9.0.26
v3.9.0.25
v3.9.0.24
v3.9.0.23
v3.9.0.22
v3.9.0.21
v3.9.0.20
v3.9.0.19
v3.10.1
v3.9.0.18
v3.9.0.17
v3.9.0.16
v3.9.0.15
v3.9.0.14
abacus-develop
/
examples
contribute
Sync branch
See difference Through Pull Request Sync
Sync branch
Through Pull Request Sync
A Pull Request will be created to the current
branch and will be merged in to complete the sync
File empty ...
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README
/*******************************************************************************/
/ Examples of ABACUS
/*******************************************************************************/
These examples show how to use ABACUS to run various types of calculations and how to use the interfaces between ABACUS and external software packages.
## Example Categories
The examples are organized into several categories based on their functionality:
- **01_bravais_lattice**: Examples of different Bravais lattice structures
- **02_geometry_optimization**: Geometry optimization calculations
- **03_scf**: Self-consistent field calculations
- **04_noncollinear**: Noncollinear spin calculations
- **05_soc**: Spin-orbit coupling calculations
- **06_smearing**: Different smearing methods for metallic systems
- **07_charge_mixing**: Different charge mixing methods
- **12_band**: Band structure calculations
- **13_dos**: Density of states calculations
- **20_hybrid**: Hybrid functional calculations
- **21_deepks**: DeePKS (deep learning based density functional theory) calculations
- **22_rt-tddft**: Real-time time-dependent DFT calculations
- **23_sdft**: Stochastic DFT calculations
- **24_lr-tddft**: Linear response time-dependent DFT calculations
- **25_vdw**: van der Waals correction calculations
- **26_berryphase**: Berry phase calculations for polarization
- **27_imp_sol**: Implicit solvation model calculations
- **28_efield**: External electric field calculations
- **29_dipole_corr**: Dipole correction calculations
- **30_elec_pot**: Electrostatic potential calculations
- **31_comp_charge**: Compensating charge calculations
- **32_bsse**: Basis set superposition error correction
- **33_pexsi**: PEXSI solver calculations for large systems
- **34_gpu**: GPU-accelerated calculations
## Directory Structure
Each example directory typically contains:
- `INPUT`: Input file with calculation parameters
- `KPT`: k-point sampling file
- `STRU`: Crystal structure file
- `run.sh`: Script to run the specific example
- `runall.sh`: Script to run all examples in the directory (required for `dflow_run.py`)
- `SETENV`: Environment configuration file with ABACUS executable path and parallelization settings
## How to Run Examples
### Running a Single Example
1. Navigate to the example directory:
 ```bash
 cd examples/01_bravais_lattice/01_fcc_Si
 ```
2. Check and modify the `SETENV` file if necessary to set the ABACUS executable path and parallelization settings:
 ```bash
 # Example SETENV file
 export ABACUS_PATH=/path/to/abacus/executable
 export ABACUS_NPROCS=4
 export ABACUS_THREADS=1
 ```
3. Run the example:
 ```bash
 bash run.sh
 ```
### Running Examples with dflow_run.py
The `dflow_run.py` script is provided to run examples using the DFlow workflow management system:
- `python3 dflow_run.py --find 1`: Find all directories where `runall.sh` has been prepared
- `python3 dflow_run.py --run 1`: Submit DFlow jobs
- `python3 dflow_run.py --post 1`: Check the status of jobs
## Input File Format
ABACUS input files (`INPUT`) use a key-value format with parameters organized into sections. For detailed information about input parameters, please refer to the ABACUS user manual.
## Output Files
After running an example, output files will be generated in the `OUT.ABACUS` directory, including:
- `OSZICAR`: Energy and convergence information
- `running_scf.log`: SCF calculation log
- `forces.dat`: Atomic forces
- `STRU_*`: Atomic positions (for MD calculations)
- Other system-specific output files
## Tips for Using Examples
- **Modify parameters**: Feel free to modify input parameters to explore different settings
- **Check convergence**: For production calculations, always check convergence with respect to basis set, k-point sampling, and other parameters
- **Use appropriate parallelization**: Adjust the number of processes and threads in `SETENV` based on your hardware
- **Refer to documentation**: For detailed information about specific features, refer to the ABACUS user manual
## Troubleshooting
- **Calculation not starting**: Check that ABACUS is properly installed and the `ABACUS_PATH` in `SETENV` is correct
- **Convergence issues**: Try increasing the number of SCF iterations (`scf_nmax`) or adjusting the mixing parameter (`mixing_beta`)
- **Memory errors**: Reduce the system size or adjust parallelization settings
- **Output files not generated**: Check the log files for error messages
## References
- **ABACUS User Manual**: For detailed information about ABACUS features and input parameters
- **ABACUS GitHub Repository**: [https://github.com/deepmodeling/abacus-develop](https://github.com/deepmodeling/abacus-develop)
- **DPFlow Documentation**: For information about using the DFlow workflow system
Report
Report success
We will send you the feedback within 2 working days through the letter!
Please fill in the reason for the report carefully. Provide as detailed a description as possible.
Please select a report type
Cancel
Send
误判申诉

此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。

如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。

取消
提交

About

An electronic structure software based on either plane wave basis or numerical atomic orbitals. (https://github.com/deepmodeling/abacus-develop)
Cancel

Releases (40)

All

Contributors

All

Activities

can not load any more
Edit
About
Homepage
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/deepmodeling/abacus-develop.git
git@gitee.com:deepmodeling/abacus-develop.git
deepmodeling
abacus-develop
abacus-develop
develop
Going to Help Center

Search

Comment
Repository Report
Back to the top
Login prompt
This operation requires login to the code cloud account. Please log in before operating.
Go to login
No account. Register

AltStyle によって変換されたページ (->オリジナル) /