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

Functions to start the reading of an atomes project file. More...

#include "global.h"
#include "bind.h"
#include "interface.h"
#include "callbacks.h"
#include "project.h"
#include "curve.h"
#include "glview.h"
#include "movie.h"
#include "preferences.h"
Include dependency graph for open_p.c:

Go to the source code of this file.

Functions

void init_box_calc ()
 initialize calculation possibilities based the periodicity
void set_color_map_sensitive (glwin *view)
void init_gr (project *this_proj, int rdf)
 initialize the curve widgets for the g(r)/g(k)
void init_sq (project *this_proj, int sqk)
 initialize the curve widgets for the s(q) / s(k) calculation
void init_bond (project *this_proj)
 initialize the curve widgets for the bond distribution
void init_ang (project *this_proj)
 initialize the curve widgets for the angle distribution
void init_ring (project *this_proj)
 initialize the curve widgets for the ring statistics
void init_chain (project *this_proj)
 initialize the curve widgets for the chains statistics calculation
void init_msd (project *this_proj)
 initialize the curve widgets for the MSD
void init_sph (project *this_proj, int opening)
 initialize the curve widgets for the spherical harmonics
void init_skt (project *this_proj, int opening)
 initialize the curve widgets for the s(k,t) and s(q,w) calculations
void alloc_analysis_curves (int pid, atomes_analysis *this_analysis)
 allocating analysis curve data
void add_curve_widgets (project *this_proj, int rid)
 add curve widgets to the project
G_MODULE_EXPORT void run_render_image (GtkDialog *info, gint response_id, gpointer data)
 render an image from the OpenGL window - running the dialog
char * read_string (int i, FILE *fp)
 read a string from a file
gchar * read_this_string (FILE *fp)
 is there a string to read in this file ? yes do it
void initcnames (project *this_proj, int rid)
 initialize curve names
void allocatoms (project *this_proj)
 allocate project data
chemical_dataalloc_chem_data (int spec)
 allocate chemistry data
void alloc_proj_data (project *this_proj, int cid)
 allocate data
int read_analysis (FILE *fp, project *this_proj, atomes_analysis *this_analysis, int wid)
 saving analysis parameter(s) and result(s) to project file
int open_project (FILE *fp, int wid)
 open atomes project file

Variables

float project_file_version
gboolean version_2_5_and_bellow
gboolean version_2_6_and_above
gboolean version_2_7_and_above
gboolean version_2_8_and_above
gboolean version_2_9_and_above

Detailed Description

Functions to start the reading of an atomes project file.

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 open_p.c.

Function Documentation

◆ add_curve_widgets()

void add_curve_widgets ( project * this_proj,
int rid )
extern

add curve widgets to the project

Parameters
this_projthe target project
ridthe analysis id

Definition at line 283 of file cwidget.c.

◆ alloc_analysis_curves()

void alloc_analysis_curves ( int pid,
atomes_analysis * this_analysis )
extern

allocating analysis curve data

Parameters
pidthe project id
this_analysisthe target atomes_analysis pointer

Definition at line 134 of file initc.c.

◆ alloc_chem_data()

chemical_data * alloc_chem_data ( int spec)

allocate chemistry data

Parameters
specthe number of chemical species

Definition at line 203 of file open_p.c.

◆ alloc_proj_data()

void alloc_proj_data ( project * this_proj,
int cid )

allocate data

Parameters
this_projthe target project
cidAllocate chemistry data (1/0)

Definition at line 224 of file open_p.c.

◆ allocatoms()

void allocatoms ( project * this_proj)

allocate project data

Parameters
this_projthe target project

Definition at line 177 of file open_p.c.

◆ init_ang()

void init_ang ( project * this_proj)
extern

initialize the curve widgets for the angle distribution

Parameters
this_projthe target project

Definition at line 170 of file bdcall.c.

◆ init_bond()

void init_bond ( project * this_proj)
extern

initialize the curve widgets for the bond distribution

Parameters
this_projthe target project

Definition at line 146 of file bdcall.c.

◆ init_box_calc()

void init_box_calc ( )
extern

initialize calculation possibilities based the periodicity

Definition at line 541 of file edit_menu.c.

◆ init_chain()

void init_chain ( project * this_proj)
extern

initialize the curve widgets for the chains statistics calculation

Parameters
this_projthe target project

Definition at line 70 of file chainscall.c.

◆ init_gr()

void init_gr ( project * this_proj,
int rdf )
extern

initialize the curve widgets for the g(r)/g(k)

Parameters
this_projthe target project
rdfGR = real space, GK = FFT

Definition at line 66 of file grcall.c.

◆ init_msd()

void init_msd ( project * this_proj)
extern

initialize the curve widgets for the MSD

Parameters
this_projthe target project

Definition at line 59 of file msdcall.c.

◆ init_ring()

void init_ring ( project * this_proj)
extern

initialize the curve widgets for the ring statistics

Parameters
this_projthe target project

Definition at line 83 of file ringscall.c.

◆ init_skt()

void init_skt ( project * this_proj,
int opening )
extern

initialize the curve widgets for the s(k,t) and s(q,w) calculations

Parameters
this_projthe target project
openingopening project file 1, otherwise 0

Definition at line 158 of file sktcall.c.

◆ init_sph()

void init_sph ( project * this_proj,
int opening )
extern

initialize the curve widgets for the spherical harmonics

Parameters
this_projthe target project
openingopening project file 1, otherwise 0

Definition at line 59 of file spcall.c.

◆ init_sq()

void init_sq ( project * this_proj,
int sqk )
extern

initialize the curve widgets for the s(q) / s(k) calculation

Parameters
this_projthe target project
sqks(q) (SQ) or s(k) (SK)

Definition at line 61 of file sqcall.c.

◆ initcnames()

void initcnames ( project * this_proj,
int rid )

initialize curve names

Parameters
projectthe target project
ridcalculation id

Definition at line 130 of file open_p.c.

◆ open_project()

int open_project ( FILE * fp,
int wid )

open atomes project file

Parameters
fpthe file pointer
widreading workspace (1/0)

Definition at line 308 of file open_p.c.

◆ read_analysis()

int read_analysis ( FILE * fp,
project * this_proj,
atomes_analysis * this_analysis,
int wid )

saving analysis parameter(s) and result(s) to project file

Parameters
fpthe file pointer
this_projthe target project
this_analysisthe target analysis
widreading workspace (1/0)

Definition at line 240 of file open_p.c.

◆ read_string()

char * read_string ( int i,
FILE * fp )

read a string from a file

Parameters
ithe size of the string to read
fpthe file pointer

Definition at line 89 of file open_p.c.

◆ read_this_string()

gchar * read_this_string ( FILE * fp)

is there a string to read in this file ? yes do it

Parameters
fpthe file pointer

Definition at line 109 of file open_p.c.

◆ run_render_image()

G_MODULE_EXPORT void run_render_image ( GtkDialog * info,
gint response_id,
gpointer data )
extern

render an image from the OpenGL window - running the dialog

Parameters
infothe GtkDialog sending the signal
response_idthe response id
datathe associated data pointer

Definition at line 114 of file image.c.

◆ set_color_map_sensitive()

void set_color_map_sensitive ( glwin * view)
extern

Variable Documentation

◆ project_file_version

float project_file_version

Definition at line 74 of file open_p.c.

◆ version_2_5_and_bellow

gboolean version_2_5_and_bellow

Definition at line 75 of file open_p.c.

◆ version_2_6_and_above

gboolean version_2_6_and_above

Definition at line 76 of file open_p.c.

◆ version_2_7_and_above

gboolean version_2_7_and_above

Definition at line 77 of file open_p.c.

◆ version_2_8_and_above

gboolean version_2_8_and_above

Definition at line 78 of file open_p.c.

◆ version_2_9_and_above

gboolean version_2_9_and_above

Definition at line 79 of file open_p.c.