xc
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 AnalysisAggregation;
78 
82 //
84 //
91  {
92  protected:
95 
96  virtual Domain *get_domain_ptr(void);
97  int sendData(CommParameters &);
98  int recvData(const CommParameters &);
99 
100  SolutionAlgorithm(AnalysisAggregation *,int classTag);
101  friend class AnalysisAggregation;
102  friend class FEM_ObjectBroker;
103  virtual SolutionAlgorithm *getCopy(void) const= 0;
104  public:
105  virtual int domainChanged(void);
106 
107  virtual AnalysisModel *getAnalysisModelPtr(void);
108  virtual const AnalysisModel *getAnalysisModelPtr(void) const;
109  virtual Integrator *getIntegratorPtr(void);
110  virtual const Integrator *getIntegratorPtr(void) const;
111  virtual LinearSOE *getLinearSOEPtr(void);
112  virtual const LinearSOE *getLinearSOEPtr(void) const;
113  virtual EigenSOE *getEigenSOEPtr(void);
114  virtual const EigenSOE *getEigenSOEPtr(void) const;
115  virtual const DomainSolver *getDomainSolverPtr(void) const;
116  virtual DomainSolver *getDomainSolverPtr(void);
117  virtual const Subdomain *getSubdomainPtr(void) const;
118  virtual Subdomain *getSubdomainPtr(void);
119  };
120 } // end of XC namespace
121 
122 #endif
123 
124 
SolutionAlgorithm(AnalysisAggregation *, int classTag)
Constructor.
Definition: SolutionAlgorithm.cpp:70
Domain enclosed in another domain.
Definition: Subdomain.h:101
Base class for solution algorithms.
Definition: SolutionAlgorithm.h:90
virtual const Subdomain * getSubdomainPtr(void) const
Return a const pointer to the subdomain.
Definition: SolutionAlgorithm.cpp:181
Solution procedure for the finite element problem.
Definition: AnalysisAggregation.h:89
Base class for eigenproblem systems of equations.
Definition: EigenSOE.h:63
Linear system of equations.
Definition: LinearSOE.h:91
Object that can move between processes.
Definition: MovableObject.h:99
virtual LinearSOE * getLinearSOEPtr(void)
Return a pointer to the linear system of equations.
Definition: SolutionAlgorithm.cpp:133
virtual EigenSOE * getEigenSOEPtr(void)
Return a pointer to the eigen system of equations.
Definition: SolutionAlgorithm.cpp:149
FEM_ObjectBroker is is an object broker class for the finite element method.
Definition: FEM_ObjectBroker.h:145
virtual Domain * get_domain_ptr(void)
Return a pointer to the domain.
Definition: SolutionAlgorithm.cpp:197
Container for FE_Element and DOF_Group objects created by the constraint handler. ...
Definition: AnalysisModel.h:133
Base class for the objects that performs the integration of physical properties over the domain to fo...
Definition: Integrator.h:99
Object that can manage Recorders.
Definition: ObjWithRecorders.h:44
AnalysisAggregation * getAnalysisAggregation(void)
Return a pointer to the solution method which owns this object.
Definition: SolutionAlgorithm.cpp:92
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:34
Communication parameters between processes.
Definition: CommParameters.h:65
virtual int domainChanged(void)
Perform the appropiate modifications as a result of a change in the domain.
Definition: SolutionAlgorithm.cpp:88
used to solve a system of equations and to do static condensation operations on the linear system of ...
Definition: DomainSolver.h:82
virtual const DomainSolver * getDomainSolverPtr(void) const
Return a const pointer to the DomainSolver.
Definition: SolutionAlgorithm.cpp:165
int recvData(const CommParameters &)
Receive object members through the channel passed as parameter.
Definition: SolutionAlgorithm.cpp:211
Domain (mesh and boundary conditions) of the finite element model.
Definition: Domain.h:116
virtual Integrator * getIntegratorPtr(void)
Return a pointer to the integrator.
Definition: SolutionAlgorithm.cpp:117
int sendData(CommParameters &)
Send object members through the channel passed as parameter.
Definition: SolutionAlgorithm.cpp:205
virtual AnalysisModel * getAnalysisModelPtr(void)
Return a pointer to the analysis model.
Definition: SolutionAlgorithm.cpp:109