Git Product home page Git Product logo

castepxbin's People

Contributors

albapa avatar ml-evs avatar zhubonan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

castepxbin's Issues

Adds support for ome_bin, dome_bin, cst_ome e.t.c

These should be trivial to read, but knowledge of the number of bands/kpoints/spins are needed in the first place. One can parse the <seed>.bands file first to get those in the first place.

I can copy the bands parser from aiida-castep into this package to do this.

castepxbin help needed

Hi Bonan Zhu,
First of all Happy New and stay blessed. I am a PhD student and using CASTEP interface in Materials Studio for my research. I want to study the projected band structure of heterostructures but unfortunately there is no such option in Materials Studio. Although, I can calculate the pdos by using OptaDOS of Materials Studio files ( .bands, .cell and .pdos_bin). In a similar way, I tried to use the .band and .cell (from spectral band structure calculation) and .pdos_bin (from pdos calculation because CASTEP interface in Materials Studio doesn't generate the .pdos_bin in spectral band structure calculation). But i got the following error.
Program received signal SIGSEGV: Segmentation fault - invalid memory reference.

May be there is some error while reading the .pdos_bin file. Then, I come to know with castepxbin we can read the .pdos_bin file. I am not much familiar with coding. So, i don't know how to use castepxbin to read the .pdos_bin file. Could you please help me in this regards? Thank you in advance.
Looking forward to your kind response.

Best Wishes
Sajid

parsing the main binary output

Support for parsing check and castep_bin files would be very useful. Some properties are not printed in the text .castep output or at least for a high precision (e.g. forces).

We can search through the Fortran records inside the binary files for certain header contains (CHAR of length < 256), record the position of the headers in the first pass and read required properties in a second pass.

This would probably require us to implement a FortranRecord class for handling the record markers and contents.

The immediate use case would be for parsing high-quality forces for external finite-difference phonons using tools such as phonopy and when integrated with AiiDA (for aiida-castep and aiida-phononpy).

Many more quantities can also be extracted and opening up more post-processing opportunities.

Existing binary parsing utilities:

There is a useful Fortran file parsing package implemented for Julia: https://traktofon.github.io/FortranFiles.jl/v0.4/. We can use similar concepts (e.g. similar to the Record type). Sub-record support can be useful but not mandatory as a single record size from CASTEP is not expected to exceed 2GB.

NOTE: castep binary files are big-endian (enforced at compile time).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.