xc
Analysis.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.1.1.1 $
49 // $Date: 2000/09/15 08:23:16 $
50 // $Source: /usr/local/cvs/OpenSees/SRC/analysis/analysis/Analysis.h,v $
51 
52 
53 #ifndef Analysis_h
54 #define Analysis_h
55 
56 // File: ~/analysis/analysis/Analysis.h
57 //
58 // Written: fmk
59 // Created: 11/96
60 // Revision: A
61 //
62 // Description: This file contains the interface for the Analysis class.
63 // Analysis is an abstract class, i.e. no objects of it's type can be created.
64 //
65 // What: "@(#) Analysis.h, revA"
66 
67 #include "utility/kernel/CommandEntity.h"
68 
69 namespace XC {
70 
71 class SolutionStrategy;
72 class SolutionProcedure;
73 
74 class Domain;
75 class AnalysisModel;
76 class ConstraintHandler;
77 class DOF_Numberer;
78 
79 class Integrator;
80 class IncrementalIntegrator;
81 class EigenIntegrator;
82 class LinearBucklingIntegrator;
83 class TransientIntegrator;
84 class StaticIntegrator;
85 
86 class LinearSOE;
87 class EigenSOE;
88 
89 class SolutionAlgorithm;
90 class EigenAlgorithm;
91 class EquiSolnAlgo;
92 class DomainDecompAlgo;
93 class DomainSolver;
94 class Subdomain;
95 
96 class ConvergenceTest;
97 
98 class FEM_ObjectBroker;
99 class ID;
100 
101 class Communicator;
102 
103 
107 //
109 //
117 class Analysis: public CommandEntity
118  {
119  protected:
122 
123  int newStepDomain(AnalysisModel *theModel,const double &dT =0.0);
124  SolutionProcedure *getSolutionProcedure(void);
125  const SolutionProcedure *getSolutionProcedure(void) const;
126 
127  friend class SolutionProcedure;
128  Analysis(SolutionStrategy *analysis_aggregation);
130  virtual Analysis *getCopy(void) const= 0;
131  public:
132  inline virtual ~Analysis(void) {}
133 
137  { return solution_strategy; }
138  Domain *getDomainPtr(void);
139  const Domain *getDomainPtr(void) const;
141  DOF_Numberer *getDOF_NumbererPtr(void) const;
142  AnalysisModel *getAnalysisModelPtr(void) const;
143 
144  LinearSOE *getLinearSOEPtr(void) const;
145  EigenSOE *getEigenSOEPtr(void) const;
146 
148  const Integrator *getIntegratorPtr(void) const;
152  TransientIntegrator *getTransientIntegratorPtr(void);
154 
155  SolutionAlgorithm *getSolutionAlgorithmPtr(void);
159 
160  virtual ConvergenceTest *getConvergenceTestPtr(void);
161  virtual const ConvergenceTest *getConvergenceTestPtr(void) const;
162 
163  virtual const DomainSolver *getDomainSolver(void) const;
164  virtual DomainSolver *getDomainSolver(void);
165  virtual const Subdomain *getSubdomain(void) const;
166  virtual Subdomain *getSubdomain(void);
167 
168  // pure virtual functions
169  virtual int domainChanged(void) = 0;
170  virtual void clearAll(void);
171  virtual int setNumberer(DOF_Numberer &theNumberer);
172  virtual int setLinearSOE(LinearSOE &theSOE);
173  virtual int setEigenSOE(EigenSOE &theSOE);
174  virtual int setIntegrator(Integrator &theNewIntegrator);
175  virtual int setAlgorithm(SolutionAlgorithm &theNewAlgorithm);
176 
177  void brokeConstraintHandler(const Communicator &,const ID &);
178  void brokeNumberer(const Communicator &,const ID &);
179  void brokeAnalysisModel(const Communicator &,const ID &);
180 
181  void brokeDDLinearSOE(const Communicator &,const ID &);
182  void brokeLinearSOE(const Communicator &,const ID &);
183 
184  void brokeIncrementalIntegrator(const Communicator &,const ID &);
185  void brokeStaticIntegrator(const Communicator &,const ID &);
186  void brokeTransientIntegrator(const Communicator &,const ID &);
187 
188  void brokeDomainDecompAlgo(const Communicator &,const ID &);
189  void brokeEquiSolnAlgo(const Communicator &,const ID &);
190 
191  inline int getAnalysisResult(void) const
192  { return analysis_result; }
193 
194  };
195 } // end of XC namespace
196 
197 #endif
198 
EquiSolnAlgo * getEquiSolutionAlgorithmPtr(void)
Return a pointer to the linear SOE solution algorithm (if it&#39;s not defined it returns nullptr)...
Definition: Analysis.cpp:225
DomainDecompAlgo * getDomainDecompSolutionAlgorithmPtr(void)
Return a pointer to the domain decomposition solution algorithm (if it&#39;s not defined it returns nullp...
Definition: Analysis.cpp:235
{staticFormTaylor} {equation}
Definition: StaticIntegrator.h:138
Base class for DOF numbererers.
Definition: DOF_Numberer.h:94
AnalysisModel * getAnalysisModelPtr(void) const
Returns a pointer to the analysis model.
Definition: Analysis.cpp:124
Domain enclosed in another domain.
Definition: Subdomain.h:102
Base class for solution algorithms.
Definition: SolutionAlgorithm.h:91
virtual const DomainSolver * getDomainSolver(void) const
Returns a pointer to the DomainSolver.
Definition: Analysis.cpp:262
ConstraintHandlers enforce the single and multi freedom constraints that exist in the domain by creat...
Definition: ConstraintHandler.h:93
Base class for eigenproblem systems of equations.
Definition: EigenSOE.h:64
Communication parameters between processes.
Definition: Communicator.h:66
Linear system of equations.
Definition: LinearSOE.h:92
DOF_Numberer * getDOF_NumbererPtr(void) const
Returns a pointer to the DOF numberer.
Definition: Analysis.cpp:116
EigenAlgorithm * getEigenSolutionAlgorithmPtr(void)
Return a pointer to the eigenproblem solution algorithm (if it&#39;s not defined it returns nullptr)...
Definition: Analysis.cpp:215
virtual int setAlgorithm(SolutionAlgorithm &theNewAlgorithm)
Set the solution algorithm to be used in the analysis.
Definition: Analysis.cpp:340
virtual ConvergenceTest * getConvergenceTestPtr(void)
Returns a pointer to the convergence test (only for suitable analysis).
Definition: Analysis.cpp:244
Analysis(SolutionStrategy *analysis_aggregation)
Constructor.
Definition: Analysis.cpp:77
Base class for the object that perform the analysis.
Definition: Analysis.h:117
Solution algorithm for domain decomposition analysis.
Definition: DomainDecompAlgo.h:89
Vector of integers.
Definition: ID.h:95
Integrator * getIntegratorPtr(void)
Returns, if possible, a pointer al integrator otherwise it returns nullptr.
Definition: Analysis.cpp:151
ConstraintHandler * getConstraintHandlerPtr(void)
Returns a pointer to the constraint handler.
Definition: Analysis.cpp:107
IncrementalIntegrator * getIncrementalIntegratorPtr(void)
Returns, if possible, a pointer al integrator incremental otherwise it returns nullptr.
Definition: Analysis.cpp:169
LinearBucklingIntegrator * getLinearBucklingIntegratorPtr(void)
Returns, if possible, a pointer al LinearBucklingIntegrator otherwise it returns nullptr.
Definition: Analysis.cpp:187
Domain * getDomainPtr(void)
Returns a pointer to the domain.
Definition: Analysis.cpp:91
LinearBucklingIntegrator is an algorithmic class for setting up the finite element equations for a li...
Definition: LinearBucklingIntegrator.h:49
virtual int setLinearSOE(LinearSOE &theSOE)
Sets the linear system of equations to use in the analysis.
Definition: Analysis.cpp:309
virtual void clearAll(void)
Deletes all members (Constraint handler, analysis model,...).
Definition: Analysis.cpp:294
virtual Analysis * getCopy(void) const =0
Virtual constructor.
StaticIntegrator * getStaticIntegratorPtr(void)
Returns, if possible, a pointer al StaticIntegrator otherwise it returns nullptr. ...
Definition: Analysis.cpp:205
Solution procedure for the finite element problem.
Definition: SolutionProcedure.h:57
Container for FE_Element and DOF_Group objects created by the constraint handler. ...
Definition: AnalysisModel.h:134
int analysis_result
Equal to zero if success.
Definition: Analysis.h:120
Objet that can execute python scripts.
Definition: CommandEntity.h:40
virtual int setIntegrator(Integrator &theNewIntegrator)
Sets the integrator to use in the analysis.
Definition: Analysis.cpp:327
Solution algorithm for eigenproblem.
Definition: EigenAlgorithm.h:84
Base class for the objects that performs the integration of physical properties over the domain to fo...
Definition: Integrator.h:100
IncrementalIntegrator is an algorithmic class for setting up the finite element equations in an incre...
Definition: IncrementalIntegrator.h:100
Base class for eigenproblem integrators.
Definition: EigenIntegrator.h:86
Base class for solution algorithms.
Definition: EquiSolnAlgo.h:91
EigenSOE * getEigenSOEPtr(void) const
Returns a pointer to the system of equations de eigenvalues.
Definition: Analysis.cpp:142
SolutionStrategy * getSolutionStrategyPtr(void)
Returns the solution strategy to which this analysis belongs.
Definition: Analysis.h:136
convergence test.
Definition: ConvergenceTest.h:81
virtual int setEigenSOE(EigenSOE &theSOE)
Sets the system of eigenvalues to use in the analysis.
Definition: Analysis.cpp:318
Solution strategy for the finite element problem.
Definition: SolutionStrategy.h:94
SolutionStrategy * solution_strategy
Solution strategy.
Definition: Analysis.h:121
virtual const Subdomain * getSubdomain(void) const
Returns a pointer to the subdomain.
Definition: Analysis.cpp:278
LinearSOE * getLinearSOEPtr(void) const
Returns a pointer to the linear system of equations.
Definition: Analysis.cpp:133
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:35
used to solve a system of equations and to do static condensation operations on the linear system of ...
Definition: DomainSolver.h:83
virtual int setNumberer(DOF_Numberer &theNumberer)
Sets the renumerador to use in the analysis.
Definition: Analysis.cpp:300
TransientIntegrator * getTransientIntegratorPtr(void)
Returns, if possible, a pointer al EigenIntegrator otherwise it returns nullptr.
Definition: Analysis.cpp:196
Domain (mesh and boundary conditions) of the finite element model.
Definition: Domain.h:117
EigenIntegrator * getEigenIntegratorPtr(void)
Returns, if possible, a pointer al EigenIntegrator otherwise it returns nullptr.
Definition: Analysis.cpp:178