include/qcevolve.h

00001 /***************************************************************************
00002  *   Quantum Construct (qC++)                                                                  *
00003  *   The Quantum Physics Computational Library                                         *
00004  *   Copyright (C) 2005 by Shekhar S. Chandra                                      *
00005  *   Shekhar.Chandra@sci.monash,edu.au                                     *
00006  *                                                                         *
00007  *   This program is free software; you can redistribute it and/or modify  *
00008  *   it under the terms of the GNU General Public License as published by  *
00009  *   the Free Software Foundation; either version 2 of the License, or     *
00010  *   (at your option) any later version.                                   *
00011  *                                                                         *
00012  *   This program is distributed in the hope that it will be useful,       *
00013  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00014  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00015  *   GNU General Public License for more details.                          *
00016  *                                                                         *
00017  *   You should have received a copy of the GNU General Public License     *
00018  *   along with this program; if not, write to the                         *
00019  *   Free Software Foundation, Inc.,                                       *
00020  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
00021  ***************************************************************************/
00022 /*
00023         Ver Info - QCEvolve.h
00024         1.0.0 - Original Implementation
00025 */
00026 
00027 #ifndef QCEVOLVE_H
00028 #define QCEVOLVE_H
00029 
00030 #include "qccomplexfield.h"
00031 #include "qclinearalgebra.h"
00032 #include "qcparameter.h"
00033 
00039 class QCEvolve
00040 {
00041 public:
00042         // -------------------------------------------------------
00048         QCEvolve(void);
00052         ~QCEvolve(void);
00054 
00055         // -------------------------------------------------------
00061         void evolveForwards(bool forwards);
00065         bool isForward();
00092         void usingTDGP(QCComplexField<2> &currentField, parameterType xOffset, parameterType yOffset, parameterType &h_x, parameterType &h_y, QCParameter &tdgpParameters);
00102         void usingTDGPLz(QCComplexField<2> &currentField, parameterType xOffset, parameterType yOffset, parameterType &h_x, parameterType &h_y, QCParameter &tdgpParameters);
00108         void usingTDGP2Component(QCComplexField<2> &component1, QCComplexField<2> &component2, parameterType xOffset, parameterType yOffset, parameterType &h_x, parameterType &h_y, QCParameter &tdgpParameters);
00113         void usingTDGP3D(QCComplexField<3> &currentField, parameterType xOffset, parameterType yOffset, parameterType zOffset, parameterType &h_x, parameterType &h_y, parameterType &h_z, QCParameter &tdgpParameters);
00115 
00116         // -------------------------------------------------------
00122         void setBoundaryGradZero(QCComplexField<2> &field, Array<complexType,2> &old);
00126         void setBoundaryFree(QCComplexField<2> &field);
00130         void setBoundaryVanish(QCComplexField<2> &field);
00134         void setBoundaryVanish(QCComplexField<3> &field);
00138         void setTimeStep(parameterType &value)
00139         {
00140                 h_t = value;
00141         }
00145         parameterType getTimeStep()
00146         {
00147                 return h_t;
00148         }
00150 
00151 private:
00152     QCLinearAlgebra LA; 
00153         parameterType h_t; 
00154 };
00155 #endif

Generated on Sat May 13 13:22:48 2006 for Quantum Construct (qC++) by  doxygen 1.4.6-NO