本文整理汇总了C++中Boundary::reciprocalBasisVector方法的典型用法代码示例。如果您正苦于以下问题:C++ Boundary::reciprocalBasisVector方法的具体用法?C++ Boundary::reciprocalBasisVector怎么用?C++ Boundary::reciprocalBasisVector使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Boundary
的用法示例。
在下文中一共展示了Boundary::reciprocalBasisVector方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: makeWaveVectors
/*
* Calculate floating point wavevectors, using current boundary.
*/
void StructureFactor::makeWaveVectors()
{
Boundary* boundaryPtr = &system().boundary();
Vector dWave;
int i, j;
for (i = 0; i < nWave_; ++i) {
waveVectors_[i] = Vector::Zero;
for (j = 0; j < Dimension; ++j) {
dWave = boundaryPtr->reciprocalBasisVector(j);
dWave *= waveIntVectors_[i][j];
waveVectors_[i] += dWave;
}
}
}
示例2: makeWaveVectors
/**
* Calculate floating point wavevectors.
*/
void AsymmSF::makeWaveVectors()
{
Vector dWave;
Boundary* boundaryPtr = &simulation().boundary();
int i, j;
// Calculate wavevectors
for (i = 0; i < nWave_; ++i) {
waveVectors_[i] = Vector::Zero;
for (j = 0; j < Dimension; ++j) {
dWave = boundaryPtr->reciprocalBasisVector(j);
dWave *= waveIntVectors_[i][j];
waveVectors_[i] += dWave;
}
}
}
示例3: makeWaveVectors
/**
* Calculate floating point wavevectors.
*/
void CompositionProfile::makeWaveVectors()
{
Vector dWave;
Boundary* boundaryPtr = &system().boundary();
int i, j;
// Calculate wavevectors
for (i = 0; i < nDirection_; ++i) {
waveVectors_[i] = Vector::Zero;
for (j = 0; j < Dimension; ++j) {
dWave = boundaryPtr->reciprocalBasisVector(j);
dWave *= intVectors_[i][j];
waveVectors_[i] += dWave;
//std::cout << waveVectors_[i] << std::endl;
}
}
}
示例4: makeWaveVectors
/**
* Calculate floating point wavevectors.
*/
void IntraStructureFactor::makeWaveVectors()
{
Vector dWave;
Boundary* boundaryPtr = &system().boundary();
int i, j;
// Calculate wavevectors
for (i = 0; i < nWave_; ++i) {
waveVectors_[i] = Vector::Zero;
for (j = 0; j < Dimension; ++j) {
dWave = boundaryPtr->reciprocalBasisVector(j);
dWave *= waveIntVectors_[i][j];
waveVectors_[i] += dWave;
//std::cout << waveVectors_[i] << std::endl;
}
}
}