Function3 - Workflow (dev)
This script provides a menu-driven interface to perform various tasks related to workflow.
Menu Options
------------>>
301) SCF batch pretreatment
302) MD sample batch pretreatment (gpumd)
303) MD sample batch pretreatment (lmp)
304) Developing ...
000) Return to the main menu
------------>>
Input the function number:
Option 301: SCF batch pretreatment
This script automates the preprocessing of POSCAR
or extxyz
files for self-consistent field (SCF
) calculations. The script includes the following steps:
- Converts a
.xyz
file toPOSCAR
format usingGPUMDkit
if no.vasp
files are found in the current directory. - Renames and organizes
.vasp
files into astruct_fp
directory. - Creates individual directories for each
POSCAR
file, setting up symbolic links to the necessaryVASP
input files. - Generates a
presub.sh
script to automate runningVASP
SCF
calculations.
Usage
Prepare the environment:
Ensure all .vasp
files or a single .xyz
file are in the current directory.
Select option 301
from the menu:
You will see the following prompt:
Starting SCF batch pretreatment...
Found 8 .vasp files.
>-------------------------------------------------<
| This function calls the script in Scripts |
| Script: scf_batch_pretreatment.sh |
| Developer: Zihan YAN (yanzihan@westlake.edu.cn) |
>-------------------------------------------------<
We recommend using the prefix to locate the structure.
The folder name will be added to the second line of XYZ.
config_type=<prefix>_<ID>
------------>>
Please enter the prefix of directory (e.g. FAPBI3_iter01)
Enter the prefix
of the folder name:
The script scf_batch_pretreatment.sh
in the Scripts
will be called to perform the pretreatment.
You will see the following prompts:
>-----------------------------------------------------<
ATTENTION: Place POTCAR, KPOINTS and INCAR in 'fp' Dir.
ATTENTION: Place POTCAR, KPOINTS and INCAR in 'fp' Dir.
ATTENTION: Place POTCAR, KPOINTS and INCAR in 'fp' Dir.
>-----------------------------------------------------<
You need to prepare the POTCAR
, KPOINTS
, and INCAR
files and place them in a directory named fp
.
Option 302: MD sample batch pretreatment (gpumd)
This script automates the preprocessing of POSCAR
or extxyz
files for MD sampling using GPUMD
.
- If
.vasp
files are found in the current directory, it will convert them toextxyz
format to prepare themodel.xyz
file forGPUMD
. If.vasp
files are not found, the.xyz
file will be read and all frames in it will be split into a individual sample. - Renames and organizes
.xyz
files into astruct_md
directory. - Creates individual directories for each
model.xyz
file, setting up symbolic links to the necessaryGPUMD
input files. - Generates a
presub.sh
script to automate running MD simulations.
Usage
Prepare the environment:
Ensure all .vasp
files or a single .xyz
file are in the current directory.
Select option 302
from the menu:
You will see the following prompt:
Starting MD sample batch pretreatment...
No .vasp files found, but found one XYZ file.
Converting it to model.xyz using GPUMDkit...
All frames from "NEP-dataset.xyz" have been split into individual model files.
20 model.xyz files were generated.
>-------------------------------------------------<
| This function calls the script in Scripts |
| Script: md_sample_batch_pretreatment.sh |
| Developer: Zihan YAN (yanzihan@westlake.edu.cn) |
>-------------------------------------------------<
You will see the following prompts:
>-----------------------------------------------<
ATTENTION: Place run.in and nep.txt in 'md' Dir.
ATTENTION: Place run.in and nep.txt in 'md' Dir.
ATTENTION: Place run.in and nep.txt in 'md' Dir.
>-----------------------------------------------<
You need to prepare the run.in
andnep.txt
files and place them in a directory named md
.
Thank you for using GPUMDkit
! If you have any questions or need further assistance, feel free to open an issue on our GitHub repository or contact Zihan YAN (yanzihan@westlake.edu.cn).