XC Open source finite element analysis program
BrickSelfWeight.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 #ifndef BrickSelfWeight_h
29 #define BrickSelfWeight_h
30 
31 // Written: ZHYang, UCDavis
32 
33 // Purpose: This file contains the class definition for 8 node brick self weigth load.
34 
35 #include <domain/load/ElementBodyLoad.h>
36 
37 namespace XC {
39 //
42  {
43  private:
44  static Vector data;
45  protected:
46  int sendData(CommParameters &cp);
47  int recvData(const CommParameters &cp);
48 
49  public:
50  BrickSelfWeight(int tag, const ID &theElementTags);
51  BrickSelfWeight(int tag);
52  BrickSelfWeight(void);
53 
54  int getType(void);
55 
56  int sendSelf(CommParameters &);
57  int recvSelf(const CommParameters &);
58  void Print(std::ostream &s, int flag =0);
59  };
60 } // end of XC namespace
61 
62 #endif
63 
void Print(std::ostream &s, int flag=0)
Imprime el objeto.
Definition: BrickSelfWeight.cpp:117
int sendData(CommParameters &cp)
Send members of the object through the communicator being passed as parameter.
Definition: BrickSelfWeight.cpp:79
Definition: Vector.h:82
Definition: ID.h:77
int recvData(const CommParameters &cp)
Receives members of the object through the communicator being passed as parameter.
Definition: BrickSelfWeight.cpp:87
Base class for body loads over elements.
Definition: ElementBodyLoad.h:43
Communication parameters between processes.
Definition: CommParameters.h:65
================================================================================
Definition: ContinuaReprComponent.h:34
Hexahedron self weight.
Definition: BrickSelfWeight.h:41