当前位置: 首页>>代码示例>>C++>>正文


C++ Boundary::reciprocalBasisVector方法代码示例

本文整理汇总了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;
       }
    }
 }
开发者ID:pombredanne,项目名称:simpatico,代码行数:17,代码来源:StructureFactor.cpp

示例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;
         }
      }
   }
开发者ID:jglaser,项目名称:simpatico,代码行数:19,代码来源:AsymmSF.cpp

示例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;
         }
      }
   }
开发者ID:TaherGhasimakbari,项目名称:simpatico,代码行数:20,代码来源:CompositionProfile.cpp

示例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;
        }
    }
}
开发者ID:jglaser,项目名称:simpatico,代码行数:20,代码来源:IntraStructureFactor.cpp


注:本文中的Boundary::reciprocalBasisVector方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。