Subversion Repositories OpenSees

Rev

Rev 2 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2 Rev 1271
1
/* ****************************************************************** **
1
/* ****************************************************************** **
2
**    OpenSees - Open System for Earthquake Engineering Simulation    **
2
**    OpenSees - Open System for Earthquake Engineering Simulation    **
3
**          Pacific Earthquake Engineering Research Center            **
3
**          Pacific Earthquake Engineering Research Center            **
4
**                                                                    **
4
**                                                                    **
5
**                                                                    **
5
**                                                                    **
6
** (C) Copyright 1999, The Regents of the University of California    **
6
** (C) Copyright 1999, The Regents of the University of California    **
7
** All Rights Reserved.                                               **
7
** All Rights Reserved.                                               **
8
**                                                                    **
8
**                                                                    **
9
** Commercial use of this program without express permission of the   **
9
** Commercial use of this program without express permission of the   **
10
** University of California, Berkeley, is strictly prohibited.  See   **
10
** University of California, Berkeley, is strictly prohibited.  See   **
11
** file 'COPYRIGHT'  in main directory for information on usage and   **
11
** file 'COPYRIGHT'  in main directory for information on usage and   **
12
** redistribution,  and for a DISCLAIMER OF ALL WARRANTIES.           **
12
** redistribution,  and for a DISCLAIMER OF ALL WARRANTIES.           **
13
**                                                                    **
13
**                                                                    **
14
** Developed by:                                                      **
14
** Developed by:                                                      **
15
**   Frank McKenna (fmckenna@ce.berkeley.edu)                         **
15
**   Frank McKenna (fmckenna@ce.berkeley.edu)                         **
16
**   Gregory L. Fenves (fenves@ce.berkeley.edu)                       **
16
**   Gregory L. Fenves (fenves@ce.berkeley.edu)                       **
17
**   Filip C. Filippou (filippou@ce.berkeley.edu)                     **
17
**   Filip C. Filippou (filippou@ce.berkeley.edu)                     **
18
**                                                                    **
18
**                                                                    **
19
** ****************************************************************** */
19
** ****************************************************************** */
20
                                                                       
20
                                                                       
21
// $Revision: 1.1.1.1 $
-
 
22
// $Date: 2000-09-15 08:23:22 $
-
 
-
 
21
// $Revision: 1.2 $
-
 
22
// $Date: 2003-02-14 23:01:37 $
23
// $Source: /usr/local/cvs/OpenSees/SRC/material/section/repres/reinfBar/ReinfBar.h,v $
23
// $Source: /usr/local/cvs/OpenSees/SRC/material/section/repres/reinfBar/ReinfBar.h,v $
24
                                                                       
24
                                                                       
25
                                                                       
25
                                                                       
26
// File: ReinfBar.h
26
// File: ReinfBar.h
27
//
27
//
28
// Written by Remo M. de Souza
28
// Written by Remo M. de Souza
29
// November 1998
29
// November 1998
30
30
31
31
32
#ifndef ReinfBar_h 
32
#ifndef ReinfBar_h 
33
#define ReinfBar_h 
33
#define ReinfBar_h 
34
34
35
#include <iostream.h>
-
 
-
 
35
#include <OPS_Globals.h>
36
36
37
class Vector;
37
class Vector;
38
38
39
class ReinfBar
39
class ReinfBar
40
{
40
{
41
  public:
41
  public:
42
42
43
    ReinfBar();
43
    ReinfBar();
44
    ReinfBar(double barArea, int materialID, const Vector &position);
44
    ReinfBar(double barArea, int materialID, const Vector &position);
45
       
45
       
46
    virtual ~ReinfBar();
46
    virtual ~ReinfBar();
47
   
47
   
48
    // edition functions
48
    // edition functions
49
49
50
    void setDiameter (double barDiameter);
50
    void setDiameter (double barDiameter);
51
    void setArea     (double barArea);
51
    void setArea     (double barArea);
52
    void setMaterial (int materialID);
52
    void setMaterial (int materialID);
53
    void setPosition (const Vector &position);
53
    void setPosition (const Vector &position);
54
54
55
    // reinforcing bar inquiring functions
55
    // reinforcing bar inquiring functions
56
   
56
   
57
    double getDiameter (void) const;
57
    double getDiameter (void) const;
58
    double getArea     (void) const;
58
    double getArea     (void) const;
59
    int    getMaterial (void) const;
59
    int    getMaterial (void) const;
60
60
61
    const Vector & getPosition (void) const;
61
    const Vector & getPosition (void) const;
62
62
63
    virtual void Print(ostream &s, int flag =0) const;  
-
 
64
    friend ostream &operator<<(ostream &s, const ReinfBar &reinfBar);    
-
 
-
 
63
    virtual void Print(OPS_Stream &s, int flag =0) const;  
-
 
64
    friend OPS_Stream &operator<<(OPS_Stream &s, const ReinfBar &reinfBar);    
65
   
65
   
66
  protected:
66
  protected:
67
   
67
   
68
  private:
68
  private:
69
    int    matID;
69
    int    matID;
70
    double diameter;
70
    double diameter;
71
    double area;
71
    double area;
72
    Vector posit;
72
    Vector posit;
73
};
73
};
74
74
75
75
76
#endif
76
#endif
77
77
78
 
78