Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F65425639
fcc_lattice.hh
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
Mon, Jun 3, 17:30
Size
2 KB
Mime Type
text/x-c++
Expires
Wed, Jun 5, 17:30 (2 d)
Engine
blob
Format
Raw Data
Handle
18069525
Attached To
rCADDMESH CADD_mesher
fcc_lattice.hh
View Options
/**
* @file fcc_lattice.hh
* @author Till Junge <junge@lsmspc42.epfl.ch>
* @date Fri Apr 13 16:55:43 2012
*
* @brief implementation of fcc lattices
*
* @section LICENSE
*
* <insert lisence here>
*
*/
/* -------------------------------------------------------------------------- */
#ifndef __CADD_MESHER_FCC_LATTICE_CC__
#define __CADD_MESHER_FCC_LATTICE_CC__
#include "common.hh"
#include "point_container.hh"
#include "gsl/gsl_vector.h"
#include "gsl/gsl_matrix.h"
#include "lattice.hh"
template
<
Uint
DIM
>
class
FccLattice
:
public
Lattice
<
DIM
>
{
/* ------------------------------------------------------------------------ */
/* Constructors/Destructors */
/* ------------------------------------------------------------------------ */
public
:
/*! Constructor
* \param constants array of lattice constants in \a x, \a y and \a z
* direction of the lattice
* \param miller matrix of Miller indices (as 1D array of size \a DIM * \a DIM
* ). The rows are the Miller vectors to be aligned with the corresponding
* direction of the global coordinate system. If \a NULL, the identity is
* used.*/
FccLattice
(
Real
*
_constants
,
Real
*
miller
=
NULL
);
FccLattice
(
std
::
vector
<
Real
>
&
constants_
,
std
::
vector
<
Real
>
&
miller_
);
virtual
~
FccLattice
(){};
/* ------------------------------------------------------------------------ */
/* Methods */
/* ------------------------------------------------------------------------ */
public
:
virtual
Lattice
<
DIM
>
*
resolveType
()
const
{
return
newLattice
<
DIM
>
(
*
this
);
}
/// function to print the contain of the class
// virtual void printself(std::ostream & stream, int indent = 0) const;
/* ------------------------------------------------------------------------ */
/* Accessors */
/* ------------------------------------------------------------------------ */
public
:
/* ------------------------------------------------------------------------ */
/* Class Members */
/* ------------------------------------------------------------------------ */
private
:
void
fillBaseAtoms
();
};
/* -------------------------------------------------------------------------- */
/* inline functions */
/* -------------------------------------------------------------------------- */
/// standard output stream operator
template
<
Uint
DIM
>
inline
std
::
ostream
&
operator
<<
(
std
::
ostream
&
stream
,
const
FccLattice
<
DIM
>
&
_this
)
{
_this
.
printself
(
stream
);
return
stream
;
}
#endif
/* __CADD_MESHER_FCC_LATTICE_CC__ */
Event Timeline
Log In to Comment