xc
DirectIntegrationAnalysis.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.4 $
48 // $Date: 2005/11/29 23:36:47 $
49 // $Source: /usr/local/cvs/OpenSees/SRC/analysis/analysis/DirectIntegrationAnalysis.h,v $
50 
51 
52 #ifndef DirectIntegrationAnalysis_h
53 #define DirectIntegrationAnalysis_h
54 
55 // Written: fmk
56 // Created: 11/96
57 // Revision: A
58 //
59 // Description: This file contains the class definition for
60 // DirectIntegrationAnalysis. DirectIntegrationAnalysis is a
61 // subclass of TransientAnalysis. It is used to perform a
62 // dynamic analysis on the FE\_Model using a direct integration scheme.
63 //
64 // What: "@(#) DirectIntegrationAnalysis.h, revA"
65 
66 #include <solution/analysis/analysis/TransientAnalysis.h>
67 
68 namespace XC {
69 class ConvergenceTest;
70 
71 // AddingSensitivity:BEGIN ///////////////////////////////
72 #ifdef _RELIABILITY
73 class SensitivityAlgorithm;
74 #endif
75 // AddingSensitivity:END ///////////////////////////////
76 
78 //
85  {
86  private:
87  int domainStamp;
88  // AddingSensitivity:BEGIN ///////////////////////////////
89 #ifdef _RELIABILITY
90  SensitivityAlgorithm *theSensitivityAlgorithm;
91 #endif
92  // AddingSensitivity:END ///////////////////////////////
93  protected:
94  friend class ProcSolu;
95  DirectIntegrationAnalysis(AnalysisAggregation *analysis_aggregation);
96  Analysis *getCopy(void) const;
97  public:
98  virtual ~DirectIntegrationAnalysis(void);
99 
100  void clearAll(void);
101 
102  int analyze(int numSteps, double dT);
103  int initialize(void);
104 
105  int domainChanged(void);
106 
107  int setNumberer(DOF_Numberer &theNumberer);
108  int setAlgorithm(EquiSolnAlgo &theAlgorithm);
109  int setIntegrator(TransientIntegrator &theIntegrator);
110  int setLinearSOE(LinearSOE &theSOE);
111  int setConvergenceTest(ConvergenceTest &theTest);
112 
113  int checkDomainChange(void);
114 
115  // AddingSensitivity:BEGIN ///////////////////////////////
116 #ifdef _RELIABILITY
117  int setSensitivityAlgorithm(SensitivityAlgorithm *theSensitivityAlgorithm);
118 #endif
119  // AddingSensitivity:END /////////////////////////////////
120  };
122  { return new DirectIntegrationAnalysis(*this); }
123 } // end of XC namespace
124 
125 #endif
126 
Base class for DOF numbererers.
Definition: DOF_Numberer.h:93
int setAlgorithm(EquiSolnAlgo &theAlgorithm)
Sets the solutio algorithm to use in the analysis.
Definition: DirectIntegrationAnalysis.cpp:359
Solution procedure for the finite element problem.
Definition: AnalysisAggregation.h:89
Linear system of equations.
Definition: LinearSOE.h:91
Base class for the object that perform the analysis.
Definition: Analysis.h:116
Analysis of the time-dependent response of the model.
Definition: TransientAnalysis.h:72
void clearAll(void)
Clears all object members (constraint handler, analysis model,...).
Definition: DirectIntegrationAnalysis.cpp:106
Definition: SensitivityAlgorithm.h:68
int setNumberer(DOF_Numberer &theNumberer)
Sets the renumerador to use in the analysis.
Definition: DirectIntegrationAnalysis.cpp:329
EquiSolnAlgo is an abstract base class, i.e.
Definition: EquiSolnAlgo.h:88
Analysis * getCopy(void) const
Virtual constructor.
Definition: DirectIntegrationAnalysis.h:121
int domainChanged(void)
Execute the changes following a change in the domain.
Definition: DirectIntegrationAnalysis.cpp:275
Solution procedure for the finite element problem.
Definition: ProcSolu.h:56
int setLinearSOE(LinearSOE &theSOE)
Sets the linear system of equations to use in the analysis.
Definition: DirectIntegrationAnalysis.cpp:444
convergence test.
Definition: ConvergenceTest.h:80
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:34
virtual ~DirectIntegrationAnalysis(void)
Destructor.
Definition: DirectIntegrationAnalysis.cpp:94
Direct integration dynamic analysis.
Definition: DirectIntegrationAnalysis.h:84
int setConvergenceTest(ConvergenceTest &theTest)
Sets the convergence test to use in the analysis.
Definition: DirectIntegrationAnalysis.cpp:479
int checkDomainChange(void)
Comprueba si el domain ha cambiado.
Definition: DirectIntegrationAnalysis.cpp:487
int setIntegrator(TransientIntegrator &theIntegrator)
Sets the integrator to use in the analysis.
Definition: DirectIntegrationAnalysis.cpp:403
int analyze(int numSteps, double dT)
Performs the analysis.
Definition: DirectIntegrationAnalysis.cpp:156
DirectIntegrationAnalysis(AnalysisAggregation *analysis_aggregation)
Constructor.
Definition: DirectIntegrationAnalysis.cpp:81