Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F85230247
dumper_lammps.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Fri, Sep 27, 16:19
Size
2 KB
Mime Type
text/x-c++
Expires
Sun, Sep 29, 16:19 (2 d)
Engine
blob
Format
Raw Data
Handle
21143946
Attached To
rIOHELPER iohelper
dumper_lammps.h
View Options
/**
* @file dumper_lammps.h
* @author Till Junge <junge@lsmspc42.epfl.ch>
* @date Wed Nov 24 17:27:34 2010
*
* @brief
*
* @section LICENSE
*
* <insert lisence here>
*
*/
/* -------------------------------------------------------------------------- */
#ifndef __IOHELPER_DUMPER_LAMMPS_H__
#define __IOHELPER_DUMPER_LAMMPS_H__
/* -------------------------------------------------------------------------- */
#include "dumper.h"
#include <fstream>
/* -------------------------------------------------------------------------- */
__BEGIN_IOHELPER__
class DumperLammps: public Dumper {
/* ------------------------------------------------------------------------ */
/* Constructors/Destructors */
/* ------------------------------------------------------------------------ */
public:
DumperLammps();
DumperLammps(std::string prefix, std::string base_name);
virtual ~DumperLammps(){}
/* ------------------------------------------------------------------------ */
/* Methods */
/* ------------------------------------------------------------------------ */
public:
//! dump to file
void Dump();
void DumpHead();
void DumpAdd(int grain_id = 1, double * points = NULL, int dimension = 0, int nb = 0, const char * name = "");
void DumpFinalize();
//! set mode for file creation : TEXT, BASE64, COMPRESSED
void SetMode(int mode){Dumper::SetMode(mode);}
void SetEmbeddedValue(const char *, int){}
/* ------------------------------------------------------------------------ */
/* Accessors */
/* ------------------------------------------------------------------------ */
public:
/* ------------------------------------------------------------------------ */
/* Class Members */
/* ------------------------------------------------------------------------ */
private:
//position of where the number of atoms is printed;
std::streampos nb_atom_position;
//current number of atoms printed to the file
unsigned long int curr_nb_atom;
std::fstream lammps_dump_file;
//! flag to produce zipped files
bool flag_compressed;
};
__END_IOHELPER__
#endif /* __IOHELPER_DUMPER_LAMMPS_H__ */
Event Timeline
Log In to Comment