-
Notifications
You must be signed in to change notification settings - Fork 18
Add XCrySDen xsf file reader and writer #52
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
base: master
Are you sure you want to change the base?
Changes from all commits
87d8c7d
f33967d
341ac53
03ccf77
f09b9bb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| # ZnS fixed cell | ||
| CRYSTAL | ||
| PRIMVEC | ||
| 0.0000000 2.7100000 2.7100000 | ||
| 2.7100000 0.0000000 2.7100000 | ||
| 2.7100000 2.7100000 0.0000000 | ||
| PRIMCOORD | ||
| 2 1 | ||
| 16 0.0000000 0.0000000 0.0000000 | ||
| 30 1.3550000 -1.3550000 -1.3550000 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| # ZnS fixed cell | ||
| ANIMSTEPS 2 | ||
| CRYSTAL | ||
| PRIMVEC | ||
| 0.0000000 2.7100000 2.7100000 | ||
| 2.7100000 0.0000000 2.7100000 | ||
| 2.7100000 2.7100000 0.0000000 | ||
| PRIMCOORD 1 | ||
| 2 1 | ||
| 16 0.0000000 0.0000000 0.0000000 | ||
| 30 1.3550000 -1.3550000 -1.3550000 | ||
| PRIMCOORD 2 | ||
| 2 1 | ||
| 16 0.0000000 0.0000000 0.0000000 | ||
| 30 1.2550000 -1.2550000 -1.2550000 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| # ZnS variable cell | ||
| ANIMSTEPS 2 | ||
| CRYSTAL | ||
| PRIMVEC 1 | ||
| 2.7100000 2.7100000 0.00000000 | ||
| 2.7100000 0.0000000 2.71000000 | ||
| 0.0000000 2.7100000 2.71000000 | ||
| CONVVEC 1 | ||
| 5.4200000 0.0000000 0.00000000 | ||
| 0.0000000 5.4200000 0.00000000 | ||
| 0.0000000 0.0000000 5.42000000 | ||
| PRIMCOORD 1 | ||
| 2 1 | ||
| 16 0.0000000 0.0000000 0.00000000 | ||
| 30 1.3550000 -1.3550000 -1.35500000 | ||
| PRIMVEC 2 | ||
| 2.9810000 2.9810000 0.00000000 | ||
| 2.9810000 0.0000000 2.98100000 | ||
| 0.0000000 2.9810000 2.98100000 | ||
| CONVVEC 2 | ||
| 5.9620000 0.0000000 0.00000000 | ||
| 0.0000000 5.9620000 0.00000000 | ||
| 0.0000000 0.0000000 5.96200000 | ||
| PRIMCOORD 2 | ||
| 2 1 | ||
| 16 0.0000000 0.0000000 0.00000000 | ||
| 30 1.5905000 -1.5905000 -1.59050000 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| # Water molecule | ||
|
|
||
| ATOMS | ||
| 8 0.0000 0.0000 0.0000 -0.0516 0.0000 -0.0399 | ||
| 1 0.0000 0.0000 1.0000 0.0176 0.0000 0.0304 | ||
| 1 0.9681 0.0000 -0.2503 0.0339 0.0000 0.0094 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| # Water molecule animation | ||
|
|
||
| ANIMSTEPS 4 | ||
| ATOMS 1 | ||
| 8 0.0000 0.0000 0.0000 -0.0516 0.0000 -0.0399 | ||
| 1 0.0000 0.0000 1.0000 0.0176 0.0000 0.0304 | ||
| 1 0.9681 0.0000 -0.2503 0.0339 0.0000 0.0094 | ||
| ATOMS 2 | ||
| 8 -0.1480 0.0000 -0.1146 0.0020 0.0000 0.0015 | ||
| 1 -0.0468 0.0000 0.9134 -0.0069 0.0000 0.0069 | ||
| 1 0.8726 0.0000 -0.2740 0.0049 0.0000 -0.0084 | ||
| ATOMS 3 | ||
| 8 -0.1032 0.0000 -0.0799 0.0013 0.0000 0.0010 | ||
| 1 -0.0319 0.0000 0.9591 0.0011 0.0000 -0.0028 | ||
| 1 0.9205 0.0000 -0.2710 -0.0025 0.0000 0.0018 | ||
| ATOMS 4 | ||
| 8 -0.1102 0.0000 -0.0853 0.0001 0.0000 0.0000 | ||
| 1 -0.0345 0.0000 0.9503 -0.0000 0.0000 -0.0000 | ||
| 1 0.9114 0.0000 -0.2714 -0.0000 0.0000 -0.0000 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -101,6 +101,7 @@ gint write_gmf(gchar *, struct model_pak *); | |
| gint write_planes(gchar *, struct model_pak *); | ||
| gint write_marvin(gchar *, struct model_pak *); | ||
| gint write_xml(gchar *, struct model_pak *); | ||
| gint write_xsf(gchar *, struct model_pak *); | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Already in PR #48 |
||
| gint write_xtl(gchar *, struct model_pak *); | ||
| gint write_xyz(gchar *, struct model_pak *); | ||
| gint write_gms(gchar *, struct model_pak *); | ||
|
|
@@ -142,6 +143,7 @@ gint read_marvin(gchar *, struct model_pak *); | |
| gint read_mvnout(gchar *, struct model_pak *); | ||
| gint read_sout(gchar *, struct model_pak *); | ||
| gint read_xml(gchar *, struct model_pak *); | ||
| gint read_xsf(gchar *, struct model_pak *); | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Already in PR #48 |
||
| gint read_xtl(gchar *, struct model_pak *); | ||
| gint read_xyz(gchar *, struct model_pak *); | ||
| gint read_using_babel(gchar *, struct model_pak *); | ||
|
|
@@ -189,6 +191,7 @@ gint read_qe_out_frame(FILE *, struct model_pak *); | |
| gint read_xyz_frame(FILE *, struct model_pak *); | ||
| gint read_dlpoly_frame(FILE *, struct model_pak *); | ||
| gint read_dmol_frame(FILE *, struct model_pak *); | ||
| gint read_xsf_frame(FILE *, struct model_pak *); | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Already in PR #48 |
||
|
|
||
| /*NEW: track/update frames (TODO)*/ | ||
| gint update_frame_uspex(gint idx,struct model_pak *model); | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Already in PR #48