XC Open source finite element analysis program
PseudoTimeTracker.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 //PseudoTimeTracker.h
28 
29 // Written: lcpt
30 
31 #ifndef PseudoTimeTracker_h
32 #define PseudoTimeTracker_h
33 
34 #include "utility/actor/actor/MovableObject.h"
35 #include <iostream>
36 
37 namespace XC {
38 
41  {
42  private:
43  double currentTime;
44  double committedTime;
45  double dT;
46  double eigenvalueTimeSet;
47  protected:
48  friend class Domain;
49  PseudoTimeTracker(void);
50  void setCurrentTime(const double &newTime);
51  void setCommittedTime(const double &newTime);
52  void setEigenvalueTime(void);
53  void Inic(const double &newTime);
54  void Zero(void);
55 
56  DbTagData &getDbTagData(void) const;
57  int sendData(CommParameters &);
58  int recvData(const CommParameters &);
59  public:
60  const double &getCurrentTime(void) const;
61  const double &getCommittedTime(void) const;
62  const double &getDt(void) const;
63  const double &getEigenValueTimeSet(void) const;
64 
65  int sendSelf(CommParameters &);
66  int recvSelf(const CommParameters &);
67 
68  void Print(std::ostream &s, int flag =0) const;
69  };
70 
71 std::ostream &operator<<(std::ostream &s,const PseudoTimeTracker &tt);
72 } // end of XC namespace
73 #endif
int recvSelf(const CommParameters &)
Receives object through the channel being passed as parameter.
Definition: PseudoTimeTracker.cc:112
Domain (mesh and boundary conditions) of the finite element model.
Definition: Domain.h:98
Vector que almacena los dbTags de los miembros de la clase.
Definition: DbTagData.h:43
Object that can move between processes.
Definition: MovableObject.h:91
void Print(std::ostream &s, int flag=0) const
Imprime el objeto.
Definition: PseudoTimeTracker.cc:131
int sendSelf(CommParameters &)
Sends object through the channel being passed as parameter.
Definition: PseudoTimeTracker.cc:98
DbTagData & getDbTagData(void) const
Returns a vector para almacenar los dbTags de los miembros de la clase.
Definition: PseudoTimeTracker.cc:77
int recvData(const CommParameters &)
Receive data through the channel being passed as parameter.
Definition: PseudoTimeTracker.cc:91
int sendData(CommParameters &)
Send data through the channel being passed as parameter.
Definition: PseudoTimeTracker.cc:84
Communication parameters between processes.
Definition: CommParameters.h:65
================================================================================
Definition: ContinuaReprComponent.h:34
Registro del tiempo.
Definition: PseudoTimeTracker.h:40