ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
print_cell.h
Go to the documentation of this file.
1
5#ifndef PRINT_CELL_H
6#define PRINT_CELL_H
7
8#include "atom_spec.h"
11#include "source_base/matrix.h"
12
13class MDCell;
14
15namespace unitcell
16{
26 void print_tau(Atom* atoms,
27 const std::string& Coordinate,
28 const int ntype,
29 const double lat0,
30 std::ofstream &ofs);
31
57 void print_stru_file(const UnitCell& ucell,
58 const Atom* atoms,
59 const ModuleBase::Matrix3& latvec,
60 const std::string& fn,
61 const std::string& header,
62 const int& nspin,
63 const bool& vel,
64 const bool& magmom,
65 const bool& orb,
66 const bool& dpks_desc,
67 const int& iproc,
68 const ModuleBase::matrix& force,
69 const bool& has_force,
70 const bool append);
71
78 void print_cell(const UnitCell& ucell, std::ofstream& ofs);
79
80 StruMeta make_stru_meta(const UnitCell& ucell);
81}
82
83namespace mdcell
84{
97void print_stru_file(const MDCell& mdcell,
98 const StruMeta& stru_meta,
99 const std::string& fn,
100 const std::string& frame_comment,
101 const bool append,
102 const bool include_force);
103}
104
105#endif
Atom class for storing atom information.
Definition mdcell.h:29
Definition mdcell_cif_io.cpp:34
void print_stru_file(const MDCell &cell, const StruMeta &stru_meta, const std::string &fn, const std::string &frame_comment, const bool append, const bool include_force)
Write an MDCell structure file in STRU format.
Definition print_cell.cpp:389
Free functions for extracting atom/orbital info from Atom array.
Definition bcast_cell.cpp:8
StruMeta make_stru_meta(const UnitCell &ucell)
Definition print_cell.cpp:370
void print_stru_file(const UnitCell &ucell, const Atom *atoms, const ModuleBase::Matrix3 &latvec, const std::string &fn, const std::string &header, const int &nspin, const bool &vel, const bool &magmom, const bool &orb, const bool &dpks_desc, const int &iproc, const ModuleBase::matrix &force, const bool &has_force, const bool append)
Print STRU file according to given settings.
Definition print_cell.cpp:93
void print_tau(Atom *atoms, const std::string &Coordinate, const int ntype, const double lat0, std::ofstream &ofs)
Print atom positions (tau).
Definition print_cell.cpp:25
void print_cell(const UnitCell &ucell, std::ofstream &ofs)
Print basic unitcell information to output stream.
Definition print_cell.cpp:251