Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

BandGenLinSOE.h

Go to the documentation of this file.
00001 /* ****************************************************************** **
00002 **    OpenSees - Open System for Earthquake Engineering Simulation    **
00003 **          Pacific Earthquake Engineering Research Center            **
00004 **                                                                    **
00005 **                                                                    **
00006 ** (C) Copyright 1999, The Regents of the University of California    **
00007 ** All Rights Reserved.                                               **
00008 **                                                                    **
00009 ** Commercial use of this program without express permission of the   **
00010 ** University of California, Berkeley, is strictly prohibited.  See   **
00011 ** file 'COPYRIGHT'  in main directory for information on usage and   **
00012 ** redistribution,  and for a DISCLAIMER OF ALL WARRANTIES.           **
00013 **                                                                    **
00014 ** Developed by:                                                      **
00015 **   Frank McKenna (fmckenna@ce.berkeley.edu)                         **
00016 **   Gregory L. Fenves (fenves@ce.berkeley.edu)                       **
00017 **   Filip C. Filippou (filippou@ce.berkeley.edu)                     **
00018 **                                                                    **
00019 ** ****************************************************************** */
00020                                                                         
00021 // $Revision: 1.1.1.1 $
00022 // $Date: 2000/09/15 08:23:28 $
00023 // $Source: /usr/local/cvs/OpenSees/SRC/system_of_eqn/linearSOE/bandGEN/BandGenLinSOE.h,v $
00024                                                                         
00025                                                                         
00026 #ifndef BandGenLinSOE_h
00027 #define BandGenLinSOE_h
00028 
00029 // File: ~/system_of_eqn/linearSOE/bandGEN/BandGenLinSOE.h
00030 //
00031 // Written: fmk 
00032 // Created: 02/97
00033 // Revision: A
00034 //
00035 // Description: This file contains the class definition for BandGenLinSOE
00036 // BandGenLinSOE is a subclass of LinearSOE. It uses the LAPACK storage
00037 // scheme to store the components of the A matrix, which is a banded 
00038 // unsymmetric matrix.
00039 //
00040 // What: "@(#) BandGenLinSOE.h, revA"
00041 
00042 
00043 #include <LinearSOE.h>
00044 #include <Vector.h>
00045 
00046 #include <BandGenLinSolver.h>
00047 
00242 class BandGenLinSOE : public LinearSOE
00243 {
00244   public:
00246     BandGenLinSOE(BandGenLinSolver &theSolver);    
00247 
00249     BandGenLinSOE(int N, int numSuperDiagonals, int numSubDiagonal,
00250     BandGenLinSolver &theSolver);        
00251     
00253     ~BandGenLinSOE();
00254 
00256     int getNumEqn(void) const;
00258     int setSize(Graph &theGraph);
00259     
00261     int addA(const Matrix &, const ID &, double fact = 1.0);
00263     int addB(const Vector &, const ID &, double fact = 1.0);    
00265     int setB(const Vector &, double fact = 1.0);        
00266 
00268     void zeroA(void);
00270     void zeroB(void);
00271 
00273     const Vector &getX(void);
00275     const Vector &getB(void);
00277     double normRHS(void);
00278 
00280     void setX(int loc, double value);    
00281 
00283     int setBandGenSolver(BandGenLinSolver &newSolver);    
00284 
00286     int sendSelf(int commitTag, Channel &theChannel);
00288     int recvSelf(int commitTag, Channel &theChannel, FEM_ObjectBroker &theBroker);    
00290     friend #include <BandGenLinLapackSolver.h>
00291 
00292   protected:
00293     
00294   private:
00295     int size, numSuperD, numSubD;    
00297     double *A, *B, *X;
00299     Vector *vectX;
00301     Vector *vectB;
00303     int Asize, Bsize;
00305     bool factored;
00306 };
00307 
00308 
00309 #endif
00310 
Copyright Contact Us