XC Open source finite element analysis program
ProcSolu.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 //ProcSolu.h
28 
29 #ifndef PROCSOLU_H
30 #define PROCSOLU_H
31 
32 #include "xc_utils/src/nucleo/EntCmd.h"
33 #include "ProcSoluControl.h"
34 
35 
36 namespace XC {
37 
38 class SolutionAlgorithm;
39 class Integrator;
40 class ConstraintHandler;
41 class DOF_Numberer;
42 class SystemOfEqn;
43 class Analysis;
44 class ProblemaEF;
45 
47 
56 class ProcSolu: public EntCmd
57  {
58  private:
59  ProcSoluControl solu_control;
60  Analysis *theAnalysis;
61  protected:
62  friend class ProblemaEF;
63 
64  void libera_analysis(void);
65  bool alloc_analysis(const std::string &,const std::string &,const std::string &);
66  void copia_analysis(Analysis *);
67 
68  void libera(void);
69 
70  void revertToStart(void);
71  ProblemaEF *getProblemaEF(void);
72  const ProblemaEF *getProblemaEF(void) const;
73 
74  ProcSolu(ProblemaEF *owr);
75  ProcSolu(const ProcSolu &otro);
76  ProcSolu &operator=(const ProcSolu &otro);
77  public:
78  ~ProcSolu(void);
79  void clearAll(void);
80 
81  Domain *getDomainPtr(void);
82  const Domain *getDomainPtr(void) const;
84  const Integrator *getIntegratorPtr(void) const;
85  const DomainSolver *getDomainSolverPtr(void) const;
87  const Subdomain *getSubdomainPtr(void) const;
90  const ProcSoluControl &getSoluControl(void) const;
91  Analysis *getAnalysisPtr(void);
92  const Analysis *getAnalysisPtr(void) const;
93  Analysis &getAnalysis(void);
94  Analysis &newAnalysis(const std::string &,const std::string &,const std::string &);
95 
96  DataOutputHandler::map_output_handlers *getOutputHandlers(void) const;
97  };
98 
99 } // end of XC namespace
100 
101 #endif
Domain (mesh and boundary conditions) of the finite element model.
Definition: Domain.h:98
Analysis & getAnalysis(void)
Return a reference to the analysis object.
Definition: ProcSolu.cc:259
Clase Base para los objetos que realizan the analysis.
Definition: Analysis.h:109
Analysis * getAnalysisPtr(void)
Return a pointer to the analysis.
Definition: ProcSolu.cc:251
void clearAll(void)
Delete all entities in the FE problem.
Definition: ProcSolu.cc:148
used to solve a system of equations and to do static condensation operations on the linear system of ...
Definition: DomainSolver.h:79
void revertToStart(void)
Return the model to their initial state.
Definition: ProcSolu.cc:144
DataOutputHandler::map_output_handlers * getOutputHandlers(void) const
Return a pointer to the output handlers.
Definition: ProcSolu.cc:197
Solution procedure for the finite element problem.
Definition: ProcSolu.h:56
ProcSolu & operator=(const ProcSolu &otro)
Assignment operator.
Definition: ProcSolu.cc:135
const DomainSolver * getDomainSolverPtr(void) const
Return a pointer to the DomainSolver.
Definition: ProcSolu.cc:205
ProcSoluControl & getSoluControl(void)
Return a reference to the objects that control the solution procedure.
Definition: ProcSolu.cc:242
Finite element problem.
Definition: ProblemaEF.h:84
ProcSolu(ProblemaEF *owr)
Default constructor.
Definition: ProcSolu.cc:126
Definition: Subdomain.h:87
Integrator * getIntegratorPtr(void)
Return a pointer to the integrator.
Definition: ProcSolu.cc:179
Container for the objects that control the solution procedure.
Definition: ProcSoluControl.h:44
Analysis & newAnalysis(const std::string &, const std::string &, const std::string &)
Defines type of analysis (static, dynamic,...)
Definition: ProcSolu.cc:113
const Subdomain * getSubdomainPtr(void) const
Return a pointer to the subdomain.
Definition: ProcSolu.cc:223
================================================================================
Definition: ContinuaReprComponent.h:34
Base class for the object that performs the integration of physical properties over the domain to for...
Definition: Integrator.h:91
~ProcSolu(void)
Destructor.
Definition: ProcSolu.cc:155