XC Open source finite element analysis program
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(SoluMethod *metodo);
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 inline Analysis *StaticAnalysis::getCopy(void) const
125  { return new StaticAnalysis(*this); }
126 } // end of XC namespace
127 
128 #endif
int solve_current_step(int num_step)
Solves for current step.
Definition: StaticAnalysis.cpp:164
Base class for static integrators.
Definition: StaticIntegrator.h:83
virtual int analyze(int numSteps)
Performs the analysis.
Definition: StaticAnalysis.cpp:254
~StaticAnalysis(void)
Destructor.
Definition: StaticAnalysis.cpp:87
Base class for DOF numbererers.
Definition: DOF_Numberer.h:84
int domainChanged(void)
Hace los cambios que sean necesarios tras un cambio en el domain.
Definition: StaticAnalysis.cpp:296
int compute_sensitivities_step(int num_step)
Calcula las sensibilidades para el paso actual of the analysis.
Definition: StaticAnalysis.cpp:180
int setLinearSOE(LinearSOE &theSOE)
Sets the linear system of equations to use in the analysis.
Definition: StaticAnalysis.cpp:417
EquiSolnAlgo is an abstract base class, i.e. no objects of it&#39;s type can be created. Its subclasses deifine the sequence of operations to be performed in the analysis by static equilibrium of a finite element model.
Definition: EquiSolnAlgo.h:85
Clase Base para los objetos que realizan the analysis.
Definition: Analysis.h:109
StaticAnalysis(SoluMethod *metodo)
Constructor.
Definition: StaticAnalysis.cpp:76
Solution procedure for the finite element problem. The solution procedure is definde by specifiying: ...
Definition: SoluMethod.h:76
int new_integrator_step(int num_step)
Solicita al integrator que avance un paso en the analysis.
Definition: StaticAnalysis.cpp:149
Solution procedure for the finite element problem.
Definition: ProcSolu.h:56
int setNumberer(DOF_Numberer &theNumberer)
Sets the renumerador to use in the analysis.
Definition: StaticAnalysis.cpp:388
convergence test.
Definition: ConvergenceTest.h:75
Definition: SensitivityAlgorithm.h:68
int new_domain_step(int num_step)
Solicita la domain que avance un paso en the analysis.
Definition: StaticAnalysis.cpp:109
int setConvergenceTest(ConvergenceTest &theTest)
Sets the convergence test to use in the analysis.
Definition: StaticAnalysis.cpp:427
int commit_step(int num_step)
Consuma el estado al final del paso.
Definition: StaticAnalysis.cpp:202
int run_analysis_step(int num_step, int numSteps)
Performs un paso of the analysis.
Definition: StaticAnalysis.cpp:219
Linea system of equations. This is the class definition for LinearSOE. LinearSOE is an abstract base ...
Definition: LinearSOE.h:86
void clearAll(void)
Clears all object members (constraint handler, analysis model,...).
Definition: StaticAnalysis.cpp:95
performs a static analysis on the FE_Model.
Definition: StaticAnalysis.h:78
int setIntegrator(StaticIntegrator &theIntegrator)
Sets the integrator to use in the analysis.
Definition: StaticAnalysis.cpp:408
int check_domain_change(int num_step, int numSteps)
Comprueba si se ha producido algún cambio en el domain desde el último paso of the analysis...
Definition: StaticAnalysis.cpp:128
================================================================================
Definition: ContinuaReprComponent.h:34
int setAlgorithm(EquiSolnAlgo &theAlgorithm)
Sets the solution algorithm to use in the analysis.
Definition: StaticAnalysis.cpp:398