atomes 1.1.16
atomes: an atomic scale modeling tool box
Loading...
Searching...
No Matches
atom_species.c File Reference

Functions to look for new chemical species and modify the chemical information accordingly. More...

#include "atom_edit.h"
+ Include dependency graph for atom_species.c:

Go to the source code of this file.

Functions

chemical_dataduplicate_chemical_data (int spec, chemical_data *chem)
 duplicate chemical data information
 
int find_spec_id (int s, int z, double *list_z)
 find species id based on Z
 
int search_for_new_spec (atom_edition *edit, atomic_object *object)
 search for new chemical species
 

Detailed Description

Functions to look for new chemical species and modify the chemical information accordingly.

Author
Sébastien Le Roux sebas.nosp@m.tien.nosp@m..lero.nosp@m.ux@i.nosp@m.pcms..nosp@m.unis.nosp@m.tra.f.nosp@m.r

Definition in file atom_species.c.

Function Documentation

◆ duplicate_chemical_data()

chemical_data * duplicate_chemical_data ( int spec,
chemical_data * chem )

duplicate chemical data information

Parameters
specthe number of chemical species
chemthe chemical data to duplicate

Definition at line 50 of file atom_species.c.

◆ find_spec_id()

int find_spec_id ( int s,
int z,
double * list_z )

find species id based on Z

Parameters
sthe number of chemical species
zthe target Z
list_zthe list of Z values

Definition at line 83 of file atom_species.c.

◆ search_for_new_spec()

int search_for_new_spec ( atom_edition * edit,
atomic_object * object )

search for new chemical species

Parameters
editthe edition window
objectthe target insert object

Definition at line 107 of file atom_species.c.