xc
InteractionDiagram2d.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 //InteractionDiagram.h
29 
30 #ifndef INTERACTION_DIAGRAM2D_H
31 #define INTERACTION_DIAGRAM2D_H
32 
33 #include "utility/geom/d2/2d_polygons/Polygon2d.h"
34 
35 namespace XC {
36 
37 class Vector;
38 class FiberSectionBase;
39 class InteractionDiagramData;
40 
42 //
46  {
47  protected:
48  Pos2d get_intersection(const Pos2d &p) const;
49  public:
52  virtual InteractionDiagram2d *getCopy(void) const;
53 
54  void Simplify(void);
55  Pos2d getIntersection(const Pos2d &) const;
56  double getCapacityFactor(const Pos2d &esf_d) const;
58 
59  void Print(std::ostream &os) const;
60  };
61 
62 InteractionDiagram2d calcPlaneInteractionDiagram(const FiberSectionBase &scc,const InteractionDiagramData &, const double &);
63 InteractionDiagram2d calcNMyInteractionDiagram(const FiberSectionBase &scc,const InteractionDiagramData &);
64 InteractionDiagram2d calcNMzInteractionDiagram(const FiberSectionBase &scc,const InteractionDiagramData &);
65 
66 } // end of XC namespace
67 
68 #endif
Float vector abstraction.
Definition: Vector.h:94
Base class for fiber sections.
Definition: FiberSectionBase.h:58
InteractionDiagram2d(void)
Default constructor.
Definition: InteractionDiagram2d.cc:53
double getCapacityFactor(const Pos2d &esf_d) const
Returns the capacity factor for the internal forces triplet being passed as parameters.
Definition: InteractionDiagram2d.cc:107
Base class for position lists.
Definition: PolyPos.h:35
Posición en dos dimensiones.
Definition: Pos2d.h:41
@ingroup MATSCCDiagInt
Definition: InteractionDiagramData.h:42
virtual InteractionDiagram2d * getCopy(void) const
Virtual constructor.
Definition: InteractionDiagram2d.cc:61
Polígono en dos dimensiones.
Definition: Polygon2d.h:38
void Simplify(void)
Converts the diagram in a diamond with vertex on the intersections of the diagram with the coordinate...
Definition: InteractionDiagram2d.cc:82
Pos2d getIntersection(const Pos2d &) const
Returns the intersection of the ray O->esf_d with the interaction diagram.
Definition: InteractionDiagram2d.cc:103
Pos2d get_intersection(const Pos2d &p) const
Return the intersection of the half-line that links the origin (0,0,0) with p an the interaction diag...
Definition: InteractionDiagram2d.cc:66
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:35
@ingroup MATSCCDiagInt
Definition: InteractionDiagram2d.h:45