xc
StaticAnalysis.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.6 $
48 // $Date: 2005/11/29 23:36:47 $
49 // $Source: /usr/local/cvs/OpenSees/SRC/analysis/analysis/StaticAnalysis.h,v $
50 
51 
52 #ifndef StaticAnalysis_h
53 #define StaticAnalysis_h
54 
55 // Written: fmk
56 // Revision: A
57 //
58 // Description: This file contains the interface for the StaticAnalysis
59 // class. StaticAnalysis is a subclass of Analysis, it is used to perform
60 // a static analysis on the FE\_Model.
61 //
62 // What: "@(#) StaticAnalysis.h, revA"
63 
64 #include <solution/analysis/analysis/Analysis.h>
65 
66 namespace XC {
67 class ConvergenceTest;
68 
69 // AddingSensitivity:BEGIN ///////////////////////////////
70 #ifdef _RELIABILITY
71 class SensitivityAlgorithm;
72 #endif
73 // AddingSensitivity:END ///////////////////////////////
74 
76 //
78 class StaticAnalysis: public Analysis
79  {
80  protected:
81  int domainStamp;
82 
83 // AddingSensitivity:BEGIN ///////////////////////////////
84 #ifdef _RELIABILITY
85  SensitivityAlgorithm *theSensitivityAlgorithm;
86 #endif
87 // AddingSensitivity:END ///////////////////////////////
88 
89  int new_domain_step(int num_step);
90  int check_domain_change(int num_step,int numSteps);
91  int new_integrator_step(int num_step);
92  int solve_current_step(int num_step);
93  int compute_sensitivities_step(int num_step);
94  int commit_step(int num_step);
95  int run_analysis_step(int num_step,int numSteps);
96 
97  friend class ProcSolu;
98  StaticAnalysis(AnalysisAggregation *analysis_aggregation);
99  Analysis *getCopy(void) const;
100  public:
101 
102  ~StaticAnalysis(void);
103 
104  void clearAll(void);
105 
106  virtual int analyze(int numSteps);
107  int initialize(void);
108  int domainChanged(void);
109 
110  int setNumberer(DOF_Numberer &theNumberer);
111  int setAlgorithm(EquiSolnAlgo &theAlgorithm);
112  int setIntegrator(StaticIntegrator &theIntegrator);
113  int setLinearSOE(LinearSOE &theSOE);
114  int setConvergenceTest(ConvergenceTest &theTest);
115 
116  ConvergenceTest *getConvergenceTest(void);
117 
118  // AddingSensitivity:BEGIN ///////////////////////////////
119 #ifdef _RELIABILITY
120  int setSensitivityAlgorithm(SensitivityAlgorithm *theSensitivityAlgorithm);
121 #endif
122  // AddingSensitivity:END /////////////////////////////////
123  };
124 
127  { return new StaticAnalysis(*this); }
128 } // end of XC namespace
129 
130 #endif
int commit_step(int num_step)
Consuma el estado al final del paso.
Definition: StaticAnalysis.cpp:227
{staticFormTaylor} {equation}
Definition: StaticIntegrator.h:137
Base class for DOF numbererers.
Definition: DOF_Numberer.h:93
int compute_sensitivities_step(int num_step)
Computes sensitivities for the current analysis step.
Definition: StaticAnalysis.cpp:201
~StaticAnalysis(void)
Destructor.
Definition: StaticAnalysis.cpp:92
int check_domain_change(int num_step, int numSteps)
Check if the domain has changed after the last analysis step.
Definition: StaticAnalysis.cpp:137
Solution procedure for the finite element problem.
Definition: AnalysisAggregation.h:89
int setLinearSOE(LinearSOE &theSOE)
Sets the linear system of equations to use in the analysis.
Definition: StaticAnalysis.cpp:492
Linear system of equations.
Definition: LinearSOE.h:91
int setIntegrator(StaticIntegrator &theIntegrator)
Sets the integrator to use in the analysis.
Definition: StaticAnalysis.cpp:480
performs a static analysis on the FE_Model.
Definition: StaticAnalysis.h:78
Base class for the object that perform the analysis.
Definition: Analysis.h:116
int setNumberer(DOF_Numberer &theNumberer)
Sets the renumerador to use in the analysis.
Definition: StaticAnalysis.cpp:452
int domainChanged(void)
Method invoked during the analysis to deal with domain changes.
Definition: StaticAnalysis.cpp:360
int setConvergenceTest(ConvergenceTest &theTest)
Sets the convergence test to use in the analysis.
Definition: StaticAnalysis.cpp:501
Analysis * getCopy(void) const
Virtual constructor.
Definition: StaticAnalysis.h:126
Definition: SensitivityAlgorithm.h:68
int run_analysis_step(int num_step, int numSteps)
Performs un paso of the analysis.
Definition: StaticAnalysis.cpp:247
int new_integrator_step(int num_step)
Ask the integrator to perform a new step in the analysis.
Definition: StaticAnalysis.cpp:162
EquiSolnAlgo is an abstract base class, i.e.
Definition: EquiSolnAlgo.h:88
Solution procedure for the finite element problem.
Definition: ProcSolu.h:56
convergence test.
Definition: ConvergenceTest.h:80
int new_domain_step(int num_step)
Ask the domain to performa a new analysis step.
Definition: StaticAnalysis.cpp:114
void clearAll(void)
Clears all object members.
Definition: StaticAnalysis.cpp:100
int setAlgorithm(EquiSolnAlgo &theAlgorithm)
Sets the solution algorithm to use in the analysis.
Definition: StaticAnalysis.cpp:466
StaticAnalysis(AnalysisAggregation *analysis_aggregation)
Constructor.
Definition: StaticAnalysis.cpp:78
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:34
virtual int analyze(int numSteps)
Performs the analysis.
Definition: StaticAnalysis.cpp:293
int solve_current_step(int num_step)
Solves for current step.
Definition: StaticAnalysis.cpp:181