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