CASM
1.1.0
A Clusters Approach to Statistical Mechanics
|
#include <VaspIO.hh>
Print POSCAR with formating options.
Example:
Public Types | |
using | AtomName = std::string |
using | SpeciesMode = xtal::SimpleStructure::SpeciesMode |
Public Member Functions | |
PrintPOSCAR (xtal::SimpleStructure _struc, std::string _title="", SpeciesMode _mode=SpeciesMode::ATOM) | |
Construct PrintPOSCAR object. More... | |
void | set_title (std::string title) |
Set title. More... | |
void | set_scale (double s) |
Set scaling factor. More... | |
void | set_direct () |
Set coordinate mode to Direct (fractional) More... | |
void | set_frac () |
Set coordinate mode to fractional (Direct) More... | |
void | set_cart () |
Set coordinate mode to Cartesian. More... | |
void | set_coord_mode (COORD_TYPE mode) |
Set coordinate mode. More... | |
void | set_selective_dynamics_off () |
Set selective dynamics off. More... | |
void | set_selective_dynamics_on () |
Set selective dynamics on. More... | |
void | set_atom_names_off () |
Do not print atom names line. More... | |
void | set_atom_names_on () |
Print atom names line. More... | |
void | set_append_atom_names_off () |
Do not append atom name to end of each coordinate line. More... | |
void | set_append_atom_names_on () |
Append atom name to end of each coordinate line. More... | |
std::set< std::string > & | ignore () |
Access set of atom names which should not be printed, such as for vacancies. More... | |
const std::set< std::string > & | ignore () const |
const Access set of atom names which should not be printed, such as for vacancies More... | |
void | sort () |
Default sort is by atom name. More... | |
void | print (std::ostream &sout) const |
Print POSCAR to stream. More... | |
void | print (Log &sout) const |
Print POSCAR to log (enables indentation) More... | |
Private Attributes | |
std::string | m_title |
SpeciesMode | m_species_mode |
xtal::SimpleStructure | m_struc |
std::vector< Index > | m_permute |
double | m_scale |
COORD_TYPE | m_coord_mode |
bool | m_atom_names |
bool | m_sel_dynamics |
bool | m_append_atom_names |
std::set< std::string > | m_ignore |
List of atom names which should not be printed (primarily for vacancies) More... | |
using CASM::VaspIO::PrintPOSCAR::AtomName = std::string |
CASM::VaspIO::PrintPOSCAR::PrintPOSCAR | ( | xtal::SimpleStructure | _struc, |
std::string | _title = "" , |
||
PrintPOSCAR::SpeciesMode | _mode = SpeciesMode::ATOM |
||
) |
Construct PrintPOSCAR object.
By default:
By default:
Currently:
|
inline |
|
inline |
void CASM::VaspIO::PrintPOSCAR::print | ( | Log & | sout | ) | const |
void CASM::VaspIO::PrintPOSCAR::print | ( | std::ostream & | sout | ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
void CASM::VaspIO::PrintPOSCAR::sort | ( | ) |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |