SubdomainAnalysis.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 $
00022 // $Date: 2005/12/01 00:07:57 $
00023 // $Source: /usr/local/cvs/OpenSees/SRC/analysis/analysis/SubdomainAnalysis.h,v $
00024                                                                         
00025                                                                         
00026 // File: ~/analysis/method/SubdomainAnalysis.h
00027 // 
00028 // Written: fmk 
00029 // Created: Tue Sept 17 16:34:47: 1996
00030 // Revision: A
00031 //
00032 // Description: This file contains the class definition for 
00033 // SubdomainAnalysis. SubdomainAnalysis is a subclass 
00034 // of AnalysisAnalysis, it is used when performing a domain decomposition
00035 // analysis. It provides methods which can be invoked by a subdomain to
00036 // perform the numerical computations required.
00037 //
00038 // What: "@(#) SubdomainAnalysis.h, revA"
00039 
00040 #ifndef SubdomainAnalysis_h
00041 #define SubdomainAnalysis_h
00042 
00043 #ifndef _bool_h
00044 #include <bool.h>
00045 #endif
00046 
00047 #include <Analysis.h>
00048 #include <Matrix.h>
00049 #include <Vector.h>
00050 #include <MovableObject.h>
00051 
00052 class ConstraintHandler;
00053 class DOF_Numberer;
00054 class AnalysisModel;
00055 class IncrementalIntegrator;
00056 class LinearSOE;
00057 class DomainSolver;
00058 class DomainDecompAlgo;
00059 class Subdomain;
00060 class Vector;
00061 
00062 class SubdomainAnalysis: public Analysis, public MovableObject
00063 {
00064   public:
00065     SubdomainAnalysis(Subdomain &theDomain);
00066 
00067     SubdomainAnalysis(int classTag, 
00068                                 Subdomain &theDomain);    
00069     
00070     SubdomainAnalysis(Subdomain &theDomain,
00071                                 ConstraintHandler &theHandler,
00072                                 DOF_Numberer &theNumberer,
00073                                 AnalysisModel &theModel,
00074                                 DomainDecompAlgo &theSolnAlgo,             
00075                                 IncrementalIntegrator &theIntegrator,   
00076                                 LinearSOE &theSOE,
00077                                 DomainSolver &theSolver);
00078 
00079 
00080     virtual ~SubdomainAnalysis();
00081     
00082     virtual int analyze(void);
00083     virtual int domainChanged(void);
00084 
00085     virtual int  getNumExternalEqn(void);
00086     virtual int  getNumInternalEqn(void);
00087     virtual int  newStep(double dT);
00088     virtual int  computeInternalResponse(void);
00089     virtual int  formTangent(void);
00090     virtual int  formResidual(void);
00091     virtual int  formTangVectProduct(Vector &force);
00092     virtual const Matrix &getTangent(void);
00093     virtual const Vector &getResidual(void);
00094     virtual const Vector &getTangVectProduct(void);
00095     
00096     virtual int sendSelf(int commitTag, Channel &theChannel);
00097     virtual int recvSelf(int commitTag, Channel &theChannel, 
00098                          FEM_ObjectBroker &theBroker);
00099     
00100   protected: 
00101     Subdomain           *getSubdomainPtr(void) const;
00102     ConstraintHandler   *getConstraintHandlerPtr(void) const;
00103     DOF_Numberer        *getDOF_NumbererPtr(void) const;
00104     AnalysisModel       *getAnalysisModelPtr(void) const;
00105     DomainDecompAlgo    *getDomainDecompAlgoPtr(void) const;        
00106     IncrementalIntegrator  *getIncrementalIntegratorPtr(void) const;    
00107     LinearSOE           *getLinSOEPtr(void) const;
00108     DomainSolver        *getDomainSolverPtr(void) const;
00109     
00110 
00111     
00112   private:
00113     Subdomain                *theSubdomain;
00114     ConstraintHandler        *theHandler;    
00115     DOF_Numberer             *theNumberer;
00116     AnalysisModel            *theModel;
00117     DomainDecompAlgo         *theAlgorithm;
00118     IncrementalIntegrator    *theIntegrator;        
00119     LinearSOE                *theSOE;
00120     DomainSolver             *theSolver;
00121 
00122     Vector                   *theResidual;
00123     int numEqn;
00124     int numExtEqn;
00125 
00126     // the following 2 variables are used to allow formResidual()
00127     // and formTangVectProduct() to be called before formTangent()
00128     // - this must be allowed as typical elements will not have to fromTangent
00129     // before being asked to form Residual(). 
00130     bool tangFormed;
00131     int tangFormedCount; // saves the expense of computing formTangent() 
00132                        // for same state of Subdomain.
00133     int domainStamp;                       
00134 };
00135 
00136 #endif
00137 
00138 
00139 
00140 
00141 
00142 
00143 
00144 
00145 
00146 
00147 

Generated on Mon Oct 23 15:04:57 2006 for OpenSees by doxygen 1.5.0