00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
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
00127
00128
00129
00130 bool tangFormed;
00131 int tangFormedCount;
00132
00133 int domainStamp;
00134 };
00135
00136 #endif
00137
00138
00139
00140
00141
00142
00143
00144
00145
00146
00147