ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/branches/new_design/OOPSE-2.0/src/applications/simpleBuilder/Lattice.hpp
Revision: 1829
Committed: Thu Dec 2 05:14:58 2004 UTC (19 years, 7 months ago) by tim
File size: 1314 byte(s)
Log Message:
minor fix

File Contents

# User Rev Content
1 tim 1501 #ifndef _LATTICE_H_
2     #define _LATTICE_H_
3     #include "applications/simpleBuilder/BaseLattice.hpp"
4     #include <string>
5     #include <vector>
6    
7 tim 1824
8 tim 1829 const std::string FCCLatticeType = "FCC";
9     const std::string BCCLatticeType = "BCC";
10     const std::string HCPCLatticeType = "HCP";
11     const std::string OrthorhombicLatticeType = "ORTHORHOMBIC";
12 tim 1501
13    
14     class CubicLattice : public BaseLattice{
15     protected:
16     CubicLattice();
17     public:
18     //get lattice constant of unit cell
19 tim 1826 virtual std::vector<double> getLatticeConstant();
20 tim 1501
21     //set lattice constant of unit cell
22 tim 1826 virtual void setLatticeConstant(const std::vector<double>& lc);
23 tim 1501 protected:
24     double latticeParam;
25     };
26    
27    
28     class FCCLattice : public CubicLattice{
29     public:
30     FCCLattice();
31 tim 1829 virtual const std::string getLatticeType() {return FCCLatticeType;}
32 tim 1501 virtual void update();
33    
34     };
35    
36     /*
37     class BCCLattice : public CubicLattice{
38     public:
39     BCCLattice();
40 tim 1829 virtual const std::string getLatticeType() {return BCCLatticeType;}
41 tim 1501 };
42    
43    
44     class HCPLattice : public BaseLattice{
45     public:
46     HCPLattice();
47 tim 1829 virtual const std::string getLatticeType() {return HCPCLatticeType;}
48 tim 1501 };
49    
50     class OrthorhombicLattice : public BaseLattice{
51     public:
52     OrthorhombicLattice();
53 tim 1829 virtual const std::string getLatticeType() {return OrthorhombicLatticeType;}
54 tim 1501 };
55     */
56    
57    
58     #endif