|
atomes 1.2.1
atomes: an atomic scale modeling tool box
|
Functions to build a crystal using space group, crystallographic position(s) and object(s) to insert. More...
#include "global.h"#include "callbacks.h"#include "interface.h"#include "glview.h"#include "bind.h"#include "project.h"#include "workspace.h"#include "atom_edit.h"#include "cbuild_edit.h"#include "readers.h"#include <ctype.h>
Include dependency graph for cbuild_action.c:Go to the source code of this file.
Functions | |
| int | get_crystal_id (int spg) |
| get the bravais lattice id from space group id | |
| double | get_val_from_setting (gchar *pos, gchar *sval) |
| get value from space group setting | |
| double | get_value_from_pos (gchar *pos) |
| get position double value from string description | |
| void | get_origin (space_group *spg) |
| get space group origin matrices | |
| void | compute_lattice_properties (cell_info *cell, int box_id) |
| compute lattice parameters following cell description | |
| int | test_lattice (builder_edition *cbuilder, cell_info *cif_cell) |
| test lattice parameters | |
| double | get_val_from_wyckoff (gchar *pos, gchar *wval) |
| get point value from wyckoff position | |
| void | clean_this_proj (project *this_proj, gboolean newp) |
| clean project and/or associated cell parameters | |
| gboolean | same_coords (float a, float b) |
| test if values are similar, allowing a 0.0001 difference | |
| gboolean | are_equal_vectors (vec3_t u, vec3_t v) |
| comparing atomic coordinates vectors | |
| int | pos_not_saved (vec3_t *all_pos, int num_pos, vec3_t pos) |
| was this position already saved ? | |
| space_group * | duplicate_space_group (space_group *spg) |
| duplicate space ground information | |
| crystal_data * | allocate_crystal_data (int objects, int species) |
| allocate crystal data pointer | |
| crystal_data * | free_crystal_data (crystal_data *cryst) |
| free crystal data pointer | |
| gboolean | pos_not_taken (int pos, int dim, int *tab) |
| is this position already taken ? | |
| int | occupancy (double occ, int cif_occ) |
| handle occupancy integer rouding | |
| gboolean | adjust_object_occupancy (crystal_data *cryst, int occupying, int rounding, int tot_cell) |
| adjust the crystallograpĥic sites occupancy | |
| int | build_crystal (gboolean visible, project *this_proj, int c_step, gboolean to_wrap, gboolean show_clones, cell_info *cell, GtkWidget *widg) |
| build crystal | |
Variables | |
| atomic_object * | cif_object |
| gchar * | tmp_pos = NULL |
| gboolean | crystal_low_warning |
| gboolean | crystal_crowded |
| gboolean | crystal_dist_chk |
Functions to build a crystal using space group, crystallographic position(s) and object(s) to insert.
Definition in file cbuild_action.c.
| gboolean adjust_object_occupancy | ( | crystal_data * | cryst, |
| int | occupying, | ||
| int | rounding, | ||
| int | tot_cell ) |
adjust the crystallograpĥic sites occupancy
| cryst | the crystal |
| occupying | how to adjust occupancy: 0 = Random for the initial cell only, 1 = Random cell by cell, 2 = Completely random 3 = Successively 4 = Alternatively |
| rounding | how to round the number of occupied site(s) |
| tot_cell | the total number of cell to build |
Definition at line 721 of file cbuild_action.c.
| crystal_data * allocate_crystal_data | ( | int | objects, |
| int | species ) |
allocate crystal data pointer
| objects | the number of object(s) |
| species | the number of chemical species |
Definition at line 621 of file cbuild_action.c.
comparing atomic coordinates vectors
| u | 1st vector |
| v | 2nd vector |
Definition at line 561 of file cbuild_action.c.
| int build_crystal | ( | gboolean | visible, |
| project * | this_proj, | ||
| int | c_step, | ||
| gboolean | to_wrap, | ||
| gboolean | show_clones, | ||
| cell_info * | cell, | ||
| GtkWidget * | widg ) |
build crystal
| visible | is the crystal builder window visible ? |
| this_proj | the target project |
| c_step | the MD step if multiple CIF configurations |
| to_wrap | wrap or not atomic coordinates in the unit cell |
| show_clones | show / hide clone(s) |
| cell | the cell info that contains the crystal description |
| widg | the GtkWidget sending the signal |
Definition at line 972 of file cbuild_action.c.
| void clean_this_proj | ( | project * | this_proj, |
| gboolean | newp ) |
clean project and/or associated cell parameters
| this_proj | the target project |
| newp | is this a new project ? |
Definition at line 516 of file cbuild_action.c.
| void compute_lattice_properties | ( | cell_info * | cell, |
| int | box_id ) |
compute lattice parameters following cell description
| cell | the target cell description |
| box_id | the target box description to fill |
Definition at line 209 of file cbuild_action.c.
| space_group * duplicate_space_group | ( | space_group * | spg | ) |
duplicate space ground information
| spg | the space group to duplicate |
Definition at line 596 of file cbuild_action.c.
| crystal_data * free_crystal_data | ( | crystal_data * | cryst | ) |
free crystal data pointer
| cryst | the data pointer to free |
Definition at line 648 of file cbuild_action.c.
|
extern |
get the bravais lattice id from space group id
| spg | the target space group id |
Definition at line 128 of file cbuild_edit.c.
| void get_origin | ( | space_group * | spg | ) |
get space group origin matrices
| spg | the target space group |
Definition at line 161 of file cbuild_action.c.
| double get_val_from_setting | ( | gchar * | pos, |
| gchar * | sval ) |
get value from space group setting
| pos | the position "a", "b" or "c" |
| sval | the space group setting |
Definition at line 83 of file cbuild_action.c.
| double get_val_from_wyckoff | ( | gchar * | pos, |
| gchar * | wval ) |
get point value from wyckoff position
| pos | "x", "y" or "z" |
| wval | wyckoff position vector |
Definition at line 462 of file cbuild_action.c.
| double get_value_from_pos | ( | gchar * | pos | ) |
get position double value from string description
| pos | the string description |
Definition at line 136 of file cbuild_action.c.
| int occupancy | ( | double | occ, |
| int | cif_occ ) |
handle occupancy integer rouding
| occ | value to round |
| cif_occ | how to round |
Definition at line 690 of file cbuild_action.c.
was this position already saved ?
| all_pos | the list of saved atomic coordinates |
| num_pos | the number of saved atomic coordinates |
| pos | the vector to test |
Definition at line 579 of file cbuild_action.c.
| gboolean pos_not_taken | ( | int | pos, |
| int | dim, | ||
| int * | tab ) |
is this position already taken ?
| pos | position id |
| dim | number of position(s) |
| tab | the list of position(s) |
Definition at line 675 of file cbuild_action.c.
| gboolean same_coords | ( | float | a, |
| float | b ) |
test if values are similar, allowing a 0.0001 difference
| a | 1st value |
| b | 2nd value |
Definition at line 546 of file cbuild_action.c.
| int test_lattice | ( | builder_edition * | cbuilder, |
| cell_info * | cif_cell ) |
test lattice parameters
| cbuilder | the builder edition with the lattice parameters |
| cif_cell | the cell information when testing CIF file |
Definition at line 328 of file cbuild_action.c.
|
extern |
Definition at line 313 of file read_cif.c.
| gboolean crystal_crowded |
Definition at line 956 of file cbuild_action.c.
| gboolean crystal_dist_chk |
Definition at line 957 of file cbuild_action.c.
| gboolean crystal_low_warning |
Definition at line 955 of file cbuild_action.c.
| gchar* tmp_pos = NULL |
Definition at line 73 of file cbuild_action.c.