XC Open source finite element analysis program
NodeDispVectors.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 //NodeDispVectors
28 
29 
30 #ifndef NodeDispVectors_h
31 #define NodeDispVectors_h
32 
33 #include "NodeVectors.h"
34 
35 namespace XC {
36 
38 //
42  {
43  private:
44  int createDisp(const size_t &);
45 
46  Vector *incrDisp;
47  Vector *incrDeltaDisp;
48  protected:
49  void libera(void);
50  public:
51  // constructors
52  NodeDispVectors(void);
53  NodeDispVectors(const NodeDispVectors &otro);
54  NodeDispVectors &operator=(const NodeDispVectors &otro);
55  virtual ~NodeDispVectors(void);
56 
57  // public methods for obtaining committed and trial
58  // response quantities of the node
59  virtual const Vector &getIncrDisp(const size_t &) const;
60  virtual const Vector &getIncrDeltaDisp(const size_t &) const;
61 
62  // public methods for updating the trial response quantities
63  virtual int setTrialDispComponent(const size_t &nDOF,const double &value,const size_t &dof);
64  virtual int setTrialDisp(const size_t &nDOF,const Vector &);
65  virtual int incrTrialDisp(const size_t &nDOF,const Vector &);
66 
67  // public methods dealing with the committed state of the node
68  virtual int commitState(const size_t &nDOF);
69  virtual int revertToLastCommit(const size_t &nDOF);
70 
71  virtual void Print(std::ostream &s, int flag = 0);
72  };
73 
74 } // end of XC namespace
75 
76 #endif
77 
Definition: Vector.h:82
virtual int revertToLastCommit(const size_t &nDOF)
Returns the vectores al estado correspondiente al último commit.
Definition: NodeDispVectors.cc:228
virtual int setTrialDisp(const size_t &nDOF, const Vector &)
Sets trial values for the displacement vector.
Definition: NodeDispVectors.cc:134
virtual const Vector & getIncrDeltaDisp(const size_t &) const
Returns delta displacement increment.
Definition: NodeDispVectors.cc:83
NodeDispVectors(void)
Constructor.
Definition: NodeDispVectors.cc:46
virtual int setTrialDispComponent(const size_t &nDOF, const double &value, const size_t &dof)
Sets trial values for the displacement components.
Definition: NodeDispVectors.cc:100
Vectores to store trial and commited values («commited») on node displacements.
Definition: NodeDispVectors.h:41
virtual const Vector & getIncrDisp(const size_t &) const
Returns displacement increment.
Definition: NodeDispVectors.cc:67
Vectores to store trial and commited values of node displacement, velocity, etc.
Definition: NodeVectors.h:47
virtual int incrTrialDisp(const size_t &nDOF, const Vector &)
Increments trial displacements.
Definition: NodeDispVectors.cc:171
virtual int commitState(const size_t &nDOF)
Commits state of displacement vectors.
Definition: NodeDispVectors.cc:211
================================================================================
Definition: ContinuaReprComponent.h:34
virtual ~NodeDispVectors(void)
destructor
Definition: NodeDispVectors.cc:62
virtual void Print(std::ostream &s, int flag=0)
Printing.
Definition: NodeDispVectors.cc:244