XC Open source finite element analysis program
UnbalAndTangent.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 //UnbalAndTangent.h
28 
29 
30 #ifndef UnbalAndTangent_h
31 #define UnbalAndTangent_h
32 
33 #include "solution/analysis/UnbalAndTangentStorage.h"
34 
35 namespace XC {
36 
38 //
41  {
42  private:
43  size_t nDOF;
44  Vector *theResidual;
45  Matrix *theTangent;
46  UnbalAndTangentStorage &unbalAndTangentArray;
47  bool libera(void);
48  void alloc(void);
49  void copia(const UnbalAndTangent &otro);
50 
51  public:
52  UnbalAndTangent(const size_t &,UnbalAndTangentStorage &);
53  UnbalAndTangent(const UnbalAndTangent &otro);
55  virtual ~UnbalAndTangent(void);
56 
57  inline const size_t &getNumDOF(void) const
58  { return nDOF; }
59 
60  const Matrix &getTangent(void) const;
61  Matrix &getTangent(void);
62  const Vector &getResidual(void) const;
63  Vector &getResidual(void);
64  };
65 } // end of XC namespace
66 
67 #endif
68 
69 
Vector de fuerza desequilibrada y tangent stiffness matrix.
Definition: UnbalAndTangentStorage.h:42
const Vector & getResidual(void) const
Returns the vector residuo.
Definition: UnbalAndTangent.cc:134
Definition: Vector.h:82
Vector de fuerza desequilibrada y tangent stiffness matrix.
Definition: UnbalAndTangent.h:40
const Matrix & getTangent(void) const
Return the tangent stiffness matrix.
Definition: UnbalAndTangent.cc:120
UnbalAndTangent & operator=(const UnbalAndTangent &otro)
Assignment operator.
Definition: UnbalAndTangent.cc:106
Definition: Matrix.h:82
UnbalAndTangent(const size_t &, UnbalAndTangentStorage &)
Construictor.
Definition: UnbalAndTangent.cc:92
virtual ~UnbalAndTangent(void)
destructor.
Definition: UnbalAndTangent.cc:116
================================================================================
Definition: ContinuaReprComponent.h:34