merge fold into main
This commit is contained in:
33
include/ufo/fold.hpp
Normal file
33
include/ufo/fold.hpp
Normal file
@@ -0,0 +1,33 @@
|
||||
# pragma once
|
||||
# include <ufo/solver.hpp>
|
||||
|
||||
namespace ufo
|
||||
{
|
||||
class FoldSolver : public Solver
|
||||
{
|
||||
public:
|
||||
struct InputType
|
||||
{
|
||||
Eigen::Matrix3d PrimativeCell;
|
||||
Eigen::Vector<unsigned, 3> SuperCellMultiplier;
|
||||
std::optional<Eigen::Matrix<double, 3, 3>> SuperCellDeformation;
|
||||
std::vector<Eigen::Vector3d> Qpoints;
|
||||
std::string OutputFilename;
|
||||
|
||||
InputType(std::string config_file);
|
||||
};
|
||||
struct OutputType
|
||||
{
|
||||
std::vector<Eigen::Vector3d> QPoints;
|
||||
void write(std::string filename) const;
|
||||
};
|
||||
protected:
|
||||
InputType Input_;
|
||||
std::optional<OutputType> Output_;
|
||||
public:
|
||||
FoldSolver(std::string config_file);
|
||||
FoldSolver& operator()() override;
|
||||
static Eigen::Vector3d fold(Eigen::Vector3d qpoint, Eigen::Vector<unsigned, 3> super_cell_multiplier,
|
||||
std::optional<Eigen::Matrix<double, 3, 3>> super_cell_deformation);
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user