XC Open source finite element analysis program
NodeRecorderBase.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 //NodeRecorderBase.h
28 
29 #ifndef NodeRecorderBase_h
30 #define NodeRecorderBase_h
31 
32 #include "utility/recorder/MeshCompRecorder.h"
33 #include <vector>
34 
35 namespace XC {
36 class Domain;
37 class FE_Datastore;
38 class DataOutputHandler;
39  class ID;
40 
42 //
45  {
46  protected:
49  std::vector<Node *> theNodes;
50 
51  int dataFlag;
52  int numValidNodes;
53 
54  protected:
55  int sendData(CommParameters &);
56  int receiveData(const CommParameters &);
57 
58  public:
59  NodeRecorderBase(int classTag);
60  NodeRecorderBase(int classTag, const ID &theDof,
61  const ID &theNodes, Domain &theDomain, DataOutputHandler &theOutputHandler,
62  double deltaT = 0.0, bool echoTimeFlag = true);
63  ~NodeRecorderBase(void);
64 
65  };
66 } // end of XC namespace
67 
68 #endif
int receiveData(const CommParameters &)
Recibe el objeto a través del comunicador que being passed as parameter.
Definition: NodeRecorderBase.cc:64
Domain (mesh and boundary conditions) of the finite element model.
Definition: Domain.h:98
Base class for mesh components recorders.
Definition: MeshCompRecorder.h:43
Base class for the node recorders.
Definition: NodeRecorderBase.h:44
Definition: ID.h:77
ID * theDofs
DOFs identifiers.
Definition: NodeRecorderBase.h:47
ID * theNodalTags
??
Definition: NodeRecorderBase.h:48
int sendData(CommParameters &)
Envía el objeto a través del comunicador que being passed as parameter.
Definition: NodeRecorderBase.cc:53
Definition: DataOutputHandler.h:61
std::vector< Node * > theNodes
Pointer to nodes.
Definition: NodeRecorderBase.h:49
Communication parameters between processes.
Definition: CommParameters.h:65
================================================================================
Definition: ContinuaReprComponent.h:34
int dataFlag
flag indicating what it is to be stored in recorder.
Definition: NodeRecorderBase.h:51