Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

vasp5xdatcarplugin.c File Reference

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "molfile_plugin.h"
#include "vaspplugin.h"
#include "periodic_table.h"

Go to the source code of this file.

Functions

void * open_vasp5xdatcar_read (const char *filename, const char *filetype, int *natoms)
int read_vasp5xdatcar_structure (void *mydata, int *optflags, molfile_atom_t *atoms)
int read_vasp5xdatcar_timestep (void *mydata, int natoms, molfile_timestep_t *ts)
void close_vasp5xdatcar_read (void *mydata)
int VMDPLUGIN_init ()
int VMDPLUGIN_register (void *v, vmdplugin_register_cb cb)
int VMDPLUGIN_fini ()

Variables

molfile_plugin_t plugin


Function Documentation

void close_vasp5xdatcar_read void *    mydata [static]
 

Definition at line 243 of file vasp5xdatcarplugin.c.

References vasp_plugindata_free.

Referenced by VMDPLUGIN_init.

void* open_vasp5xdatcar_read const char *    filename,
const char *    filetype,
int *    natoms
[static]
 

Definition at line 38 of file vasp5xdatcarplugin.c.

References vasp_plugindata_t::eachatom, vasp_plugindata_t::file, vasp_plugindata_t::filename, MAXATOMTYPES, MOLFILE_NUMATOMS_UNKNOWN, vasp_plugindata_t::numatoms, vasp_plugindata_t::titleline, vasp_plugindata_free, vasp_plugindata_malloc, and vasp_plugindata_t::version.

Referenced by VMDPLUGIN_init.

int read_vasp5xdatcar_structure void *    mydata,
int *    optflags,
molfile_atom_t   atoms
[static]
 

Definition at line 97 of file vasp5xdatcarplugin.c.

References molfile_atom_t::atomicnumber, vasp_plugindata_t::cell, molfile_atom_t::chain, vasp_plugindata_t::eachatom, vasp_plugindata_t::file, vasp_plugindata_t::filename, get_pte_idx, get_pte_label, get_pte_mass, get_pte_vdw_radius, molfile_atom_t::mass, MOLFILE_ATOMICNUMBER, MOLFILE_ERROR, MOLFILE_MASS, MOLFILE_RADIUS, molfile_atom_t::name, vasp_plugindata_t::numatoms, molfile_atom_t::radius, molfile_atom_t::resid, molfile_atom_t::resname, molfile_atom_t::segid, vasp_plugindata_t::titleline, molfile_atom_t::type, and vasp_buildrotmat.

Referenced by VMDPLUGIN_init.

int read_vasp5xdatcar_timestep void *    mydata,
int    natoms,
molfile_timestep_t   ts
[static]
 

Definition at line 205 of file vasp5xdatcarplugin.c.

References vasp_plugindata_t::cell, molfile_timestep_t::coords, vasp_plugindata_t::file, vasp_plugindata_t::filename, MOLFILE_EOF, vasp_plugindata_t::numatoms, vasp_plugindata_t::rotmat, and vasp_timestep_unitcell.

Referenced by VMDPLUGIN_init.

int VMDPLUGIN_fini void   
 

Definition at line 277 of file vasp5xdatcarplugin.c.

References VMDPLUGIN_SUCCESS.

int VMDPLUGIN_init void   
 

Definition at line 254 of file vasp5xdatcarplugin.c.

References molfile_plugin_t::close_file_read, close_vasp5xdatcar_read, molfile_plugin_t::filename_extension, MOLFILE_PLUGIN_TYPE, molfile_plugin_t::open_file_read, open_vasp5xdatcar_read, molfile_plugin_t::read_next_timestep, molfile_plugin_t::read_structure, read_vasp5xdatcar_structure, read_vasp5xdatcar_timestep, vmdplugin_ABIVERSION, VMDPLUGIN_SUCCESS, and VMDPLUGIN_THREADUNSAFE.

int VMDPLUGIN_register void *    v,
vmdplugin_register_cb    cb
 

Definition at line 272 of file vasp5xdatcarplugin.c.

References vmdplugin_register_cb, and VMDPLUGIN_SUCCESS.


Variable Documentation

molfile_plugin_t plugin [static]
 

Definition at line 252 of file vasp5xdatcarplugin.c.


Generated on Mon Jan 20 02:56:45 2020 for VMD Plugins (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002