xc
StaticAnalysis.h
1 // -*-c++-*-
2 //----------------------------------------------------------------------------
3 // XC program; finite element analysis code
4 // for structural analysis and design.
5 //
6 // Copyright (C) Luis C. Pérez Tato
7 //
8 // This program derives from OpenSees <http://opensees.berkeley.edu>
9 // developed by the «Pacific earthquake engineering research center».
10 //
11 // Except for the restrictions that may arise from the copyright
12 // of the original program (see copyright_opensees.txt)
13 // XC is free software: you can redistribute it and/or modify
14 // it under the terms of the GNU General Public License as published by
15 // the Free Software Foundation, either version 3 of the License, or
16 // (at your option) any later version.
17 //
18 // This software is distributed in the hope that it will be useful, but
19 // WITHOUT ANY WARRANTY; without even the implied warranty of
20 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 // GNU General Public License for more details.
22 //
23 //
24 // You should have received a copy of the GNU General Public License
25 // along with this program.
26 // If not, see <http://www.gnu.org/licenses/>.
27 //----------------------------------------------------------------------------
28 /* ****************************************************************** **
29 ** OpenSees - Open System for Earthquake Engineering Simulation **
30 ** Pacific Earthquake Engineering Research Center **
31 ** **
32 ** **
33 ** (C) Copyright 1999, The Regents of the University of California **
34 ** All Rights Reserved. **
35 ** **
36 ** Commercial use of this program without express permission of the **
37 ** University of California, Berkeley, is strictly prohibited. See **
38 ** file 'COPYRIGHT' in main directory for information on usage and **
39 ** redistribution, and for a DISCLAIMER OF ALL WARRANTIES. **
40 ** **
41 ** Developed by: **
42 ** Frank McKenna (fmckenna@ce.berkeley.edu) **
43 ** Gregory L. Fenves (fenves@ce.berkeley.edu) **
44 ** Filip C. Filippou (filippou@ce.berkeley.edu) **
45 ** **
46 ** ****************************************************************** */
47 
48 // $Revision: 1.6 $
49 // $Date: 2005/11/29 23:36:47 $
50 // $Source: /usr/local/cvs/OpenSees/SRC/analysis/analysis/StaticAnalysis.h,v $
51 
52 
53 #ifndef StaticAnalysis_h
54 #define StaticAnalysis_h
55 
56 // Written: fmk
57 // Revision: A
58 //
59 // Description: This file contains the interface for the StaticAnalysis
60 // class. StaticAnalysis is a subclass of Analysis, it is used to perform
61 // a static analysis on the FE\_Model.
62 //
63 // What: "@(#) StaticAnalysis.h, revA"
64 
65 #include <solution/analysis/analysis/Analysis.h>
66 
67 namespace XC {
68 class ConvergenceTest;
69 
70 // AddingSensitivity:BEGIN ///////////////////////////////
71 #ifdef _RELIABILITY
72 class SensitivityAlgorithm;
73 #endif
74 // AddingSensitivity:END ///////////////////////////////
75 
77 //
79 class StaticAnalysis: public Analysis
80  {
81  protected:
82  int domainStamp;
83 
84 // AddingSensitivity:BEGIN ///////////////////////////////
85 #ifdef _RELIABILITY
86  SensitivityAlgorithm *theSensitivityAlgorithm;
87 #endif
88 // AddingSensitivity:END ///////////////////////////////
89 
90  int new_domain_step(int num_step);
91  int check_domain_change(int num_step,int numSteps);
92  int new_integrator_step(int num_step);
93  int solve_current_step(int num_step);
94  int compute_sensitivities_step(int num_step);
95  int commit_step(int num_step);
96  int run_analysis_step(int num_step,int numSteps);
97 
98  friend class SolutionProcedure;
99  StaticAnalysis(SolutionStrategy *analysis_aggregation);
100  Analysis *getCopy(void) const;
101  public:
102 
103  ~StaticAnalysis(void);
104 
105  void clearAll(void);
106 
107  virtual int analyze(int numSteps);
108  int initialize(void);
109  int domainChanged(void);
110 
111  int setNumberer(DOF_Numberer &theNumberer);
112  int setAlgorithm(EquiSolnAlgo &theAlgorithm);
113  int setIntegrator(StaticIntegrator &theIntegrator);
114  int setLinearSOE(LinearSOE &theSOE);
115  int setConvergenceTest(ConvergenceTest &theTest);
116 
117  ConvergenceTest *getConvergenceTest(void);
118 
119  // AddingSensitivity:BEGIN ///////////////////////////////
120 #ifdef _RELIABILITY
121  int setSensitivityAlgorithm(SensitivityAlgorithm *theSensitivityAlgorithm);
122 #endif
123  // AddingSensitivity:END /////////////////////////////////
124  };
125 
128  { return new StaticAnalysis(*this); }
129 } // end of XC namespace
130 
131 #endif
int commit_step(int num_step)
Consuma el estado al final del paso.
Definition: StaticAnalysis.cpp:232
{staticFormTaylor} {equation}
Definition: StaticIntegrator.h:138
Base class for DOF numbererers.
Definition: DOF_Numberer.h:94
int compute_sensitivities_step(int num_step)
Computes sensitivities for the current analysis step.
Definition: StaticAnalysis.cpp:205
~StaticAnalysis(void)
Destructor.
Definition: StaticAnalysis.cpp:93
int check_domain_change(int num_step, int numSteps)
Check if the domain has changed after the last analysis step.
Definition: StaticAnalysis.cpp:140
int setLinearSOE(LinearSOE &theSOE)
Sets the linear system of equations to use in the analysis.
Definition: StaticAnalysis.cpp:504
Linear system of equations.
Definition: LinearSOE.h:92
int setIntegrator(StaticIntegrator &theIntegrator)
Sets the integrator to use in the analysis.
Definition: StaticAnalysis.cpp:492
performs a static analysis on the FE_Model.
Definition: StaticAnalysis.h:79
Base class for the object that perform the analysis.
Definition: Analysis.h:117
int setNumberer(DOF_Numberer &theNumberer)
Sets the renumerador to use in the analysis.
Definition: StaticAnalysis.cpp:464
int domainChanged(void)
Method invoked during the analysis to deal with domain changes.
Definition: StaticAnalysis.cpp:367
int setConvergenceTest(ConvergenceTest &theTest)
Sets the convergence test to use in the analysis.
Definition: StaticAnalysis.cpp:513
StaticAnalysis(SolutionStrategy *analysis_aggregation)
Constructor.
Definition: StaticAnalysis.cpp:79
Solution procedure for the finite element problem.
Definition: SolutionProcedure.h:57
Analysis * getCopy(void) const
Virtual constructor.
Definition: StaticAnalysis.h:127
??
Definition: SensitivityAlgorithm.h:72
int run_analysis_step(int num_step, int numSteps)
Performs un paso of the analysis.
Definition: StaticAnalysis.cpp:253
int new_integrator_step(int num_step)
Ask the integrator to perform a new step in the analysis.
Definition: StaticAnalysis.cpp:165
Base class for solution algorithms.
Definition: EquiSolnAlgo.h:91
convergence test.
Definition: ConvergenceTest.h:81
Solution strategy for the finite element problem.
Definition: SolutionStrategy.h:94
int new_domain_step(int num_step)
Ask the domain to performa a new analysis step.
Definition: StaticAnalysis.cpp:115
void clearAll(void)
Clears all object members.
Definition: StaticAnalysis.cpp:101
int setAlgorithm(EquiSolnAlgo &theAlgorithm)
Sets the solution algorithm to use in the analysis.
Definition: StaticAnalysis.cpp:478
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:35
virtual int analyze(int numSteps)
Performs the analysis.
Definition: StaticAnalysis.cpp:298
int solve_current_step(int num_step)
Solves for current step.
Definition: StaticAnalysis.cpp:184