XC Open source finite element analysis program
SolutionAlgorithm.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.3 $
48 // $Date: 2004/11/13 08:08:14 $
49 // $Source: /usr/local/cvs/OpenSees/SRC/analysis/algorithm/SolutionAlgorithm.h,v $
50 
51 
52 #ifndef SolutionAlgorithm_h
53 #define SolutionAlgorithm_h
54 
55 // File: ~/OOP/analysis/algorithm/SolutionAlgorithm.h
56 //
57 // Written: fmk
58 // Created: 11/96
59 // Revision: A
60 //
61 // Description: This file contains the class definition for SolutionAlgorithm.
62 // SolutionAlgorithm is an abstract base class, i.e. no objects of it's
63 // type can be created.
64 //
65 // What: "@(#) SolutionAlgorithm.h, revA"
66 
67 #include <utility/actor/actor/MovableObject.h>
68 #include "utility/recorder/ObjWithRecorders.h"
69 #include "utility/handler/DataOutputHandler.h"
70 
71 namespace XC {
72 class FEM_ObjectBroker;
73 class AnalysisModel;
74 class Integrator;
75 class SystemOfEqn;
76 class Recorder;
77 class SoluMethod;
78 
80 //
82 //
84 //
87  {
88  protected:
90  const SoluMethod *getSoluMethod(void) const;
91 
92  virtual Domain *get_domain_ptr(void);
93  int sendData(CommParameters &);
94  int recvData(const CommParameters &);
95 
96 
97  SolutionAlgorithm(SoluMethod *,int classTag);
98  friend class SoluMethod;
99  friend class FEM_ObjectBroker;
100  virtual SolutionAlgorithm *getCopy(void) const= 0;
101  public:
102  virtual int domainChanged(void);
103 
104  virtual AnalysisModel *getAnalysisModelPtr(void);
105  virtual const AnalysisModel *getAnalysisModelPtr(void) const;
106  virtual Integrator *getIntegratorPtr(void);
107  virtual const Integrator *getIntegratorPtr(void) const;
108  virtual LinearSOE *getLinearSOEPtr(void);
109  virtual const LinearSOE *getLinearSOEPtr(void) const;
110  virtual EigenSOE *getEigenSOEPtr(void);
111  virtual const EigenSOE *getEigenSOEPtr(void) const;
112  virtual const DomainSolver *getDomainSolverPtr(void) const;
113  virtual DomainSolver *getDomainSolverPtr(void);
114  virtual const Subdomain *getSubdomainPtr(void) const;
115  virtual Subdomain *getSubdomainPtr(void);
116  };
117 } // end of XC namespace
118 
119 #endif
120 
121 
virtual Integrator * getIntegratorPtr(void)
Returns a pointer to the integrator.
Definition: SolutionAlgorithm.cpp:107
SoluMethod * getSoluMethod(void)
Returns a pointer to the solution method which owns this object.
Definition: SolutionAlgorithm.cpp:82
Domain (mesh and boundary conditions) of the finite element model.
Definition: Domain.h:98
Solution procedure for the finite element problem. The solution procedure is definde by specifiying: ...
Definition: SoluMethod.h:76
used to solve a system of equations and to do static condensation operations on the linear system of ...
Definition: DomainSolver.h:79
Objeto capaz de gestionar Recorders.
Definition: ObjWithRecorders.h:44
virtual AnalysisModel * getAnalysisModelPtr(void)
Returns a pointer to the analysis model.
Definition: SolutionAlgorithm.cpp:99
Base class for eigenproblem systems of equations.
Definition: EigenSOE.h:63
FEM_ObjectBroker is is an object broker class for the finite element method. All methods are virtual ...
Definition: FEM_ObjectBroker.h:138
int sendData(CommParameters &)
Send object members through the channel being passed as parameter.
Definition: SolutionAlgorithm.cpp:195
Object that can move between processes.
Definition: MovableObject.h:91
Definition: Subdomain.h:87
virtual LinearSOE * getLinearSOEPtr(void)
Returns a pointer to the linear system of equations.
Definition: SolutionAlgorithm.cpp:123
virtual EigenSOE * getEigenSOEPtr(void)
Returns a pointer to the eigen system of equations.
Definition: SolutionAlgorithm.cpp:139
Linea system of equations. This is the class definition for LinearSOE. LinearSOE is an abstract base ...
Definition: LinearSOE.h:86
virtual Domain * get_domain_ptr(void)
Returns a pointer to the domain.
Definition: SolutionAlgorithm.cpp:187
virtual const DomainSolver * getDomainSolverPtr(void) const
Returns a const pointer to the DomainSolver.
Definition: SolutionAlgorithm.cpp:155
Los objetos de esta clase, dan acceso a los objetos FE_Element y DOF_Group creados por el Constraint ...
Definition: AnalysisModel.h:113
virtual const Subdomain * getSubdomainPtr(void) const
Returns a const pointer to the subdomain.
Definition: SolutionAlgorithm.cpp:171
Communication parameters between processes.
Definition: CommParameters.h:65
================================================================================
Definition: ContinuaReprComponent.h:34
Base class for solution algorithms.
Definition: SolutionAlgorithm.h:86
Base class for the object that performs the integration of physical properties over the domain to for...
Definition: Integrator.h:91
virtual int domainChanged(void)
Realiza los cambios que sean necesarios como consecuencia de un cambio en el domain.
Definition: SolutionAlgorithm.cpp:78
int recvData(const CommParameters &)
Receives object members through the channel being passed as parameter.
Definition: SolutionAlgorithm.cpp:201