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

vaspxmlplugin.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_vaspxml_read (const char *filename, const char *filetype, int *natoms)
int read_vaspxml_structure (void *mydata, int *optflags, molfile_atom_t *atoms)
int read_vaspxml_timestep (void *mydata, int natoms, molfile_timestep_t *ts)
void close_vaspxml_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_vaspxml_read void *    mydata [static]
 

Definition at line 223 of file vaspxmlplugin.c.

References vasp_plugindata_free.

Referenced by VMDPLUGIN_init.

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

Definition at line 45 of file vaspxmlplugin.c.

References vasp_plugindata_t::cell, vasp_plugindata_t::file, vasp_plugindata_t::filename, MOLFILE_NUMATOMS_UNKNOWN, vasp_plugindata_t::numatoms, vasp_plugindata_t::titleline, vasp_buildrotmat, vasp_plugindata_free, and vasp_plugindata_malloc.

Referenced by VMDPLUGIN_init.

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

Definition at line 115 of file vaspxmlplugin.c.

References molfile_atom_t::atomicnumber, molfile_atom_t::chain, vasp_plugindata_t::file, vasp_plugindata_t::filename, get_pte_idx, 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, and molfile_atom_t::type.

Referenced by VMDPLUGIN_init.

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

Definition at line 187 of file vaspxmlplugin.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 256 of file vaspxmlplugin.c.

References VMDPLUGIN_SUCCESS.

int VMDPLUGIN_init void   
 

Definition at line 233 of file vaspxmlplugin.c.

References molfile_plugin_t::close_file_read, close_vaspxml_read, molfile_plugin_t::filename_extension, MOLFILE_PLUGIN_TYPE, molfile_plugin_t::open_file_read, open_vaspxml_read, molfile_plugin_t::read_next_timestep, molfile_plugin_t::read_structure, read_vaspxml_structure, read_vaspxml_timestep, vmdplugin_ABIVERSION, VMDPLUGIN_SUCCESS, and VMDPLUGIN_THREADUNSAFE.

int VMDPLUGIN_register void *    v,
vmdplugin_register_cb    cb
 

Definition at line 251 of file vaspxmlplugin.c.

References vmdplugin_register_cb, and VMDPLUGIN_SUCCESS.


Variable Documentation

molfile_plugin_t plugin [static]
 

Definition at line 231 of file vaspxmlplugin.c.


Generated on Wed Apr 24 03:07:41 2024 for VMD Plugins (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002