xc
PseudoTimeTracker.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 //PseudoTimeTracker.h
29 
30 // Written: lcpt
31 
32 #ifndef PseudoTimeTracker_h
33 #define PseudoTimeTracker_h
34 
35 #include "utility/actor/actor/MovableObject.h"
36 #include <iostream>
37 
38 namespace XC {
39 
42  {
43  private:
44  double currentTime;
45  double committedTime;
46  double dT;
47  double eigenvalueTimeSet;
48  protected:
49  friend class Domain;
50  PseudoTimeTracker(void);
51  void setCurrentTime(const double &newTime);
52  void setCommittedTime(const double &newTime);
53  void setEigenvalueTime(void);
54  void Inic(const double &newTime);
55  void Zero(void);
56 
57  DbTagData &getDbTagData(void) const;
58  int sendData(Communicator &);
59  int recvData(const Communicator &);
60  public:
61  const double &getCurrentTime(void) const;
62  const double &getCommittedTime(void) const;
63  const double &getDt(void) const;
64  const double &getEigenValueTimeSet(void) const;
65 
66  int sendSelf(Communicator &);
67  int recvSelf(const Communicator &);
68  boost::python::dict getPyDict(void) const;
69  void setPyDict(const boost::python::dict &);
70 
71  void Print(std::ostream &s, int flag =0) const;
72  };
73 
74 std::ostream &operator<<(std::ostream &s,const PseudoTimeTracker &tt);
75 } // end of XC namespace
76 #endif
Communication parameters between processes.
Definition: Communicator.h:66
Object that can move between processes.
Definition: MovableObject.h:100
int sendSelf(Communicator &)
Sends object through the communicator argument.
Definition: PseudoTimeTracker.cc:98
Vector that stores the dbTags of the class members.
Definition: DbTagData.h:44
boost::python::dict getPyDict(void) const
Return a Python dictionary with the object members values.
Definition: PseudoTimeTracker.cc:131
int recvData(const Communicator &)
Receive data through the communicator argument.
Definition: PseudoTimeTracker.cc:91
void Print(std::ostream &s, int flag=0) const
Print stuff.
Definition: PseudoTimeTracker.cc:151
int recvSelf(const Communicator &)
Receives object through the communicator argument.
Definition: PseudoTimeTracker.cc:112
Registro del tiempo.
Definition: PseudoTimeTracker.h:41
DbTagData & getDbTagData(void) const
Returns a vector to store the dbTags of the class members.
Definition: PseudoTimeTracker.cc:77
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:35
void setPyDict(const boost::python::dict &)
Set the values of the object members from a Python dictionary.
Definition: PseudoTimeTracker.cc:142
Domain (mesh and boundary conditions) of the finite element model.
Definition: Domain.h:117
int sendData(Communicator &)
Send data through the communicator argument.
Definition: PseudoTimeTracker.cc:84