-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extracting and Converting from OUTCAR File to XYZ File #177
Comments
Hi @LiMahappy ! Yes, we have a separate package, potdata, to deal with data. It is under active development and has lots of functionality. Unfortunately, we haven't documented it extensively. For converting VASP run output to extxyz files, take a look at this example. It does exactly what you want. Note, if you have multiple vasp runs and change line 127 to the common parent folder, it will extract all the results. Under the hood, it looks for all |
vasp-test.zip |
Hi @LiMahappy, What is the error? Can you please be more specific? I did not find any error file in the zip file you shared. |
I apologize for not providing a detailed description of the issue. After extracting the results from the AIMD calculations using the xyz.py script, I did indeed obtain the relevant training set files. However, when I utilized this training set for the training of the SW potential function, the following error occurred. The error indicates that KLIFF expects the stress data to comprise 6 values, but 9 were provided. |
Hi @LiMahappy, first, feel free to ask questions. Everybody was once a beginner! You used potdata to write extxyz files, all nice components of the 3x3 stress matrix is written. But KLIFF uses the Voigt notation of stress, it only requires 6 components. To do it, see the updated example here . Note, you will need to get the latest version of potdata -- simply reinstalling it would work. If I understand correctly about the segfault problem, you were saying you can actually run the trained NeuralNetwork_KLIFF__MO_000000111111_000 model to compute elastic properties successfully, but segfault occurs when geometry optimization is performed? Do this happen if you run in serial mode without using MPI? I have no other idea why this happens. The number of training samples and the weights depends on what the problem you want to study -- how complex it is and how accurate you want your model to be. You will need at least thousands of samples to train a model, for example, for a single element system like diamond silicon. You will need to adjust weights of energy and force to find the optimal values that satisfy your accuracy requirements. |
Hi @mjwen |
Dear Developer,
I am a beginner with KLIFF and have been able to train potential functions using example files. However, I am unable to access the initial training set files and can only obtain the OUTCAR file from VASP's AIMD calculations. Could you please advise me on how to extract and convert the OUTCAR file into an XYZ file? I am aware that certain software like ASE or pymatgen can be used to parse VASP outputs, and subsequently, the KLIFF write_extxyz function can be utilized to create an extxyz file. However, I am not very clear on the specific steps involved in this process. I would greatly appreciate it if you could provide some guidance, and it would be even more helpful if you could supply a sample case. I am eagerly awaiting your response.
Best regards.
The text was updated successfully, but these errors were encountered: