xc
BrickRawLoad.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 //BrickRawLoad.h
29 
30 #ifndef BrickRawLoad_h
31 #define BrickRawLoad_h
32 
33 #include "BrickMecLoad.h"
34 
35 namespace XC {
36 
38 //
41  {
42  protected:
43  std::vector<Vector> nodalLoads;
44 
45  int sendData(Communicator &comm);
46  int recvData(const Communicator &comm);
47 
48  DbTagData &getDbTagData(void) const;
49  public:
50  BrickRawLoad(int tag= 0);
51  BrickRawLoad(int tag, const std::vector<Vector> &, const ID &);
52 
53  std::string Category(void) const;
54 
55  const Vector &getData(int &type, const double &loadFactor) const;
56 
57  virtual Vector getLocalForce(void) const;
58  const Matrix &getLocalForces(void) const;
59 
60  void addReactionsInBasicSystem(const std::vector<double> &,const double &,FVectorBrick &) const;
61  void addFixedEndForcesInBasicSystem(const std::vector<double> &,const double &loadFactor,FVectorBrick &) const;
62 
63  int sendSelf(Communicator &);
64  int recvSelf(const Communicator &);
65  void Print(std::ostream &s, int flag =0) const;
66  };
67 } // end of XC namespace
68 
69 #endif
70 
Float vector abstraction.
Definition: Vector.h:94
int sendSelf(Communicator &)
Send the object through the communicator argument.
Definition: BrickRawLoad.cc:138
Communication parameters between processes.
Definition: Communicator.h:66
void Print(std::ostream &s, int flag=0) const
Print stuff.
Definition: BrickRawLoad.cc:166
DbTagData & getDbTagData(void) const
Returns a vector to store the dbTags of the class members.
Definition: BrickRawLoad.cc:115
Vector that stores the dbTags of the class members.
Definition: DbTagData.h:44
BrickRawLoad(int tag=0)
Default constructor.
Definition: BrickRawLoad.cc:39
Vector of integers.
Definition: ID.h:95
virtual Vector getLocalForce(void) const
Returns force expressed in local coordinates.
Definition: BrickRawLoad.cc:56
void addReactionsInBasicSystem(const std::vector< double > &, const double &, FVectorBrick &) const
Adds the load al consistent load vector (see page 108 libro Eugenio Oñate).
Definition: BrickRawLoad.cc:92
std::string Category(void) const
Return the category of the load.
Definition: BrickRawLoad.cc:52
Ingernal forces for a brick element.
Definition: FVectorBrick.h:40
void addFixedEndForcesInBasicSystem(const std::vector< double > &, const double &loadFactor, FVectorBrick &) const
??
Definition: BrickRawLoad.cc:107
int sendData(Communicator &comm)
Send data through the communicator argument.
Definition: BrickRawLoad.cc:122
Mechanical load (forces) over brick elements.
Definition: BrickMecLoad.h:42
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:35
Matrix of floats.
Definition: Matrix.h:111
int recvData(const Communicator &comm)
Receive data through the communicator argument.
Definition: BrickRawLoad.cc:130
const Matrix & getLocalForces(void) const
Returns the components of the force vectors.
Definition: BrickRawLoad.cc:68
std::vector< Vector > nodalLoads
Load in each node.
Definition: BrickRawLoad.h:43
Uniform load over brick elements.
Definition: BrickRawLoad.h:40
int recvSelf(const Communicator &)
Receive the object through the communicator argument.
Definition: BrickRawLoad.cc:153