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

vaspxdatcarplugin.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_vaspxdatcar_read (const char *filename, const char *filetype, int *natoms)
int read_vaspxdatcar_structure (void *mydata, int *optflags, molfile_atom_t *atoms)
int read_vaspxdatcar_timestep (void *mydata, int natoms, molfile_timestep_t *ts)
void close_vaspxdatcar_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_vaspxdatcar_read void *    mydata [static]
 

Definition at line 286 of file vaspxdatcarplugin.c.

References vasp_plugindata_free.

Referenced by VMDPLUGIN_init.

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

Definition at line 38 of file vaspxdatcarplugin.c.

References vasp_plugindata_t::cell, 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_buildrotmat, vasp_plugindata_free, vasp_plugindata_malloc, and vasp_plugindata_t::version.

Referenced by VMDPLUGIN_init.

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

Definition at line 151 of file vaspxdatcarplugin.c.

References molfile_atom_t::atomicnumber, 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_plugindata_t::version.

Referenced by VMDPLUGIN_init.

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

Definition at line 253 of file vaspxdatcarplugin.c.

References vasp_plugindata_t::cell, molfile_timestep_t::coords, vasp_plugindata_t::file, 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 319 of file vaspxdatcarplugin.c.

References VMDPLUGIN_SUCCESS.

int VMDPLUGIN_init void   
 

Definition at line 296 of file vaspxdatcarplugin.c.

References molfile_plugin_t::close_file_read, close_vaspxdatcar_read, molfile_plugin_t::filename_extension, MOLFILE_PLUGIN_TYPE, molfile_plugin_t::open_file_read, open_vaspxdatcar_read, molfile_plugin_t::read_next_timestep, molfile_plugin_t::read_structure, read_vaspxdatcar_structure, read_vaspxdatcar_timestep, vmdplugin_ABIVERSION, VMDPLUGIN_SUCCESS, and VMDPLUGIN_THREADUNSAFE.

int VMDPLUGIN_register void *    v,
vmdplugin_register_cb    cb
 

Definition at line 314 of file vaspxdatcarplugin.c.

References vmdplugin_register_cb, and VMDPLUGIN_SUCCESS.


Variable Documentation

molfile_plugin_t plugin [static]
 

Definition at line 294 of file vaspxdatcarplugin.c.


Generated on Thu Apr 18 03:10:01 2024 for VMD Plugins (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002