Skip to content

Adding cfg2x3d for converting cfg files to x3d files for easy viewing.#22

Open
gyf304 wants to merge 2 commits into
richard-evans:mainfrom
gyf304:master
Open

Adding cfg2x3d for converting cfg files to x3d files for easy viewing.#22
gyf304 wants to merge 2 commits into
richard-evans:mainfrom
gyf304:master

Conversation

@gyf304
Copy link
Copy Markdown

@gyf304 gyf304 commented Mar 25, 2017

cfg2x3d also supports cells files.

Coloring is based on cartesian vector direction. Red: x, Green: y, Blue: z.

Also included is a simple x3d file viewer (made using x3dom).

  • To use:
    python3 cfg2x3d.py [atoms/cells] CELLS_OR_ATOMS_DATA_CFG CELLS_OR_ATOMS_COORDS_CFG

  • Examples:
    python3 cfg2x3d.py cells test/cells-00000000.cfg test/cells-coords.cfg
    python3 cfg2x3d.py atoms test/atoms-00000000.cfg test/atoms-coords.cfg

example

@richard-evans
Copy link
Copy Markdown
Owner

This would be a nice feature to add to the code - thanks! However, it is built of the ancient master branch and since then the implementation of the atom spin positions has changed significantly (on develop branch). Would it be possible to update based on the new version in develop? If so we can ship this with the next release for everybody.

All the best,

Richard

@gyf304
Copy link
Copy Markdown
Author

gyf304 commented Jul 12, 2017

No problem, I will look into it. Can you drop me a sample file, if convenient? Getting the dev branch to compile on my Mac can be a hassle.

Regards,
Yifan Gu

@richard-evans
Copy link
Copy Markdown
Owner

Hi Yifan, sure - here is an example. However, I guess the trick is enabling support for parallel files, which can now also be done in binary format - would these be supported or not?

Regarding compiling this should be straightforward - did you try make serial-llvm?

All the best,

Richard

Archive.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants