XC Open source finite element analysis program
SubdomainAnalysis.h
1 //----------------------------------------------------------------------------
2 // XC program; finite element analysis code
3 // for structural analysis and design.
4 //
5 // Copyright (C) Luis Claudio Pérez Tato
6 //
7 // This program derives from OpenSees <http://opensees.berkeley.edu>
8 // developed by the «Pacific earthquake engineering research center».
9 //
10 // Except for the restrictions that may arise from the copyright
11 // of the original program (see copyright_opensees.txt)
12 // XC is free software: you can redistribute it and/or modify
13 // it under the terms of the GNU General Public License as published by
14 // the Free Software Foundation, either version 3 of the License, or
15 // (at your option) any later version.
16 //
17 // This software is distributed in the hope that it will be useful, but
18 // WITHOUT ANY WARRANTY; without even the implied warranty of
19 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 // GNU General Public License for more details.
21 //
22 //
23 // You should have received a copy of the GNU General Public License
24 // along with this program.
25 // If not, see <http://www.gnu.org/licenses/>.
26 //----------------------------------------------------------------------------
27 /* ****************************************************************** **
28 ** OpenSees - Open System for Earthquake Engineering Simulation **
29 ** Pacific Earthquake Engineering Research Center **
30 ** **
31 ** **
32 ** (C) Copyright 1999, The Regents of the University of California **
33 ** All Rights Reserved. **
34 ** **
35 ** Commercial use of this program without express permission of the **
36 ** University of California, Berkeley, is strictly prohibited. See **
37 ** file 'COPYRIGHT' in main directory for information on usage and **
38 ** redistribution, and for a DISCLAIMER OF ALL WARRANTIES. **
39 ** **
40 ** Developed by: **
41 ** Frank McKenna (fmckenna@ce.berkeley.edu) **
42 ** Gregory L. Fenves (fenves@ce.berkeley.edu) **
43 ** Filip C. Filippou (filippou@ce.berkeley.edu) **
44 ** **
45 ** ****************************************************************** */
46 
47 // $Revision: 1.1 $
48 // $Date: 2005/12/01 00:07:57 $
49 // $Source: /usr/local/cvs/OpenSees/SRC/analysis/analysis/SubdomainAnalysis.h,v $
50 
51 
52 // File: ~/analysis/method/SubdomainAnalysis.h
53 //
54 // Written: fmk
55 // Created: Tue Sept 17 16:34:47: 1996
56 // Revision: A
57 //
58 // Description: This file contains the class definition for
59 // SubdomainAnalysis. SubdomainAnalysis is a subclass
60 // of AnalysisAnalysis, it is used when performing a domain decomposition
61 // analysis. It provides methods which can be invoked by a subdomain to
62 // perform the numerical computations required.
63 //
64 // What: "@(#) SubdomainAnalysis.h, revA"
65 
66 #ifndef SubdomainAnalysis_h
67 #define SubdomainAnalysis_h
68 
69 #include <solution/analysis/analysis/Analysis.h>
70 #include <utility/actor/actor/MovableObject.h>
71 
72 namespace XC {
73 class Subdomain;
74 class Vector;
75 
77 //
83  {
84  private:
85  Subdomain *theSubdomain;
86  DomainSolver *theSolver;
87  Vector *theResidual;
88  int numEqn;
89  int numExtEqn;
90 
91  // the following 2 variables are used to allow formResidual()
92  // and formTangVectProduct() to be called before formTangent()
93  // - this must be allowed as typical elements will not have to fromTangent
94  // before being asked to form Residual().
95  bool tangFormed;
96  int tangFormedCount; // saves the expense of computing formTangent()
97  // for same state of Subdomain.
98  int domainStamp;
99  protected:
100  Subdomain *getSubdomainPtr(void) const;
101  DomainSolver *getDomainSolverPtr(void) const;
102  friend class ProcSolu;
103  SubdomainAnalysis(Subdomain &theDomain);
104 
105  SubdomainAnalysis(int classTag, Subdomain &theDomain);
106 
107  SubdomainAnalysis(Subdomain &theDomain,
108  ConstraintHandler &theHandler,
109  DOF_Numberer &theNumberer,
110  AnalysisModel &theModel,
111  DomainDecompAlgo &theSolnAlgo,
112  IncrementalIntegrator &theIntegrator,
113  LinearSOE &theSOE,
114  DomainSolver &theSolver);
115  Analysis *getCopy(void) const;
116  public:
117 
118  virtual ~SubdomainAnalysis();
119 
120  virtual int analyze(void);
121  virtual int domainChanged(void);
122 
123  virtual int getNumExternalEqn(void);
124  virtual int getNumInternalEqn(void);
125  virtual int newStep(double dT);
126  virtual int computeInternalResponse(void);
127  virtual int formTangent(void);
128  virtual int formResidual(void);
129  virtual int formTangVectProduct(Vector &force);
130  virtual const Matrix &getTangent(void);
131  virtual const Vector &getResidual(void);
132  virtual const Vector &getTangVectProduct(void);
133 
134  virtual int sendSelf(CommParameters &);
135  virtual int recvSelf(const CommParameters &);
136  };
137 
138 inline Analysis *SubdomainAnalysis::getCopy(void) const
139  { return new SubdomainAnalysis(*this); }
140 } // end of XC namespace
141 
142 #endif
143 
144 
145 
146 
147 
148 
149 
150 
151 
152 
153 
Base class for DOF numbererers.
Definition: DOF_Numberer.h:84
IncrementalIntegrator is an algorithmic class for setting up the finite element equations in an incre...
Definition: IncrementalIntegrator.h:87
Definition: Vector.h:82
Clase Base para los objetos que realizan the analysis.
Definition: Analysis.h:109
used to solve a system of equations and to do static condensation operations on the linear system of ...
Definition: DomainSolver.h:79
Solution procedure for the finite element problem.
Definition: ProcSolu.h:56
SubdomainAnalysis is a subclass of AnalysisAnalysis, it is used when performing a domain decompositio...
Definition: SubdomainAnalysis.h:82
Object that can move between processes.
Definition: MovableObject.h:91
Definition: Subdomain.h:87
Definition: Matrix.h:82
Linea system of equations. This is the class definition for LinearSOE. LinearSOE is an abstract base ...
Definition: LinearSOE.h:86
Los objetos de esta clase, dan acceso a los objetos FE_Element y DOF_Group creados por el Constraint ...
Definition: AnalysisModel.h:113
ConstraintHandlers enforce the single and multi freedom constraints that exist in the domain by creat...
Definition: ConstraintHandler.h:94
Communication parameters between processes.
Definition: CommParameters.h:65
================================================================================
Definition: ContinuaReprComponent.h:34
Solution algorithm for domain decomposition.
Definition: DomainDecompAlgo.h:83