xc
QuadraticCyclic.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 #ifndef QuadraticCyclic_H
29 #define QuadraticCyclic_H
30 
31 #include "CyclicModel.h"
32 #include <utility/matrix/Vector.h>
33 #include <utility/matrix/Matrix.h>
34 
35 namespace XC {
40  {
41  private:
42  double a, b, c;
43  double weightFactor, facty;
44  double qx1, qy1, qx2, qy2, qx3, qy3;
45  static Matrix X;
46  static Vector Y, A;
47  public:
48  QuadraticCyclic(int tag, double wt=0.9, double qy=0.33);
49 
50  void Print(std::ostream &, int flag= 0) const;
52  protected:
53  int createFullCycleTask();
54  int createHalfCycleTask();
55  double getTaskFactor();
56  private:
57  int solveQuad(double x1, double y1, double x2,double y2, double x3, double y);
58  double getQuadFactor(double x1, double y1, double dx);
59  int createTask(void);
60  };
61 } // end of XC namespace
62 
63 #endif
64 
CyclicModel * getCopy()
Virtual constructor.
Definition: QuadraticCyclic.cpp:56
Float vector abstraction.
Definition: Vector.h:94
Quadratic model of cyclic connector behavior.
Definition: QuadraticCyclic.h:39
Base class for object that model the cyclic behavior of semi-rigid connectors.
Definition: CyclicModel.h:39
void Print(std::ostream &, int flag=0) const
Print stuff.
Definition: QuadraticCyclic.cpp:193
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:35
Matrix of floats.
Definition: Matrix.h:111