Subversion Repositories OpenSees

Rev

Rev 1025 | Rev 3104 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1025 Rev 1271
Line 16... Line 16...
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.2 $
-
 
22
// $Date: 2002-06-11 20:46:39 $
-
 
-
 
21
// $Revision: 1.3 $
-
 
22
// $Date: 2003-02-14 23:00:57 $
23
// $Source: /usr/local/cvs/OpenSees/SRC/domain/load/Beam3dUniformLoad.cpp,v $
23
// $Source: /usr/local/cvs/OpenSees/SRC/domain/load/Beam3dUniformLoad.cpp,v $
24
                                                                       
24
                                                                       
25
25
26
// Written: fmk 
26
// Written: fmk 
27
//
27
//
Line 77... Line 77...
77
  vectData(2) = wz;
77
  vectData(2) = wz;
78
  vectData(3) = theElements.Size();
78
  vectData(3) = theElements.Size();
79
79
80
  int result = theChannel.sendVector(dbTag, commitTag, vectData);
80
  int result = theChannel.sendVector(dbTag, commitTag, vectData);
81
  if (result < 0) {
81
  if (result < 0) {
82
    cerr << "Beam3dUniformLoad::sendSelf - failed to send data\n";
-
 
-
 
82
    opserr << "Beam3dUniformLoad::sendSelf - failed to send data\n";
83
    return result;
83
    return result;
84
  }
84
  }
85
85
86
  result = theChannel.sendID(dbTag, commitTag, theElements);
86
  result = theChannel.sendID(dbTag, commitTag, theElements);
87
  if (result < 0) {
87
  if (result < 0) {
88
    cerr << "Beam3dUniformLoad::sendSelf - failed to send element tags\n";
-
 
-
 
88
    opserr << "Beam3dUniformLoad::sendSelf - failed to send element tags\n";
89
    return result;
89
    return result;
90
  }
90
  }
91
 
91
 
92
  return 0;
92
  return 0;
93
}
93
}
Line 100... Line 100...
100
100
101
  static Vector vectData(4);
101
  static Vector vectData(4);
102
102
103
  int result = theChannel.recvVector(dbTag, commitTag, vectData);
103
  int result = theChannel.recvVector(dbTag, commitTag, vectData);
104
  if (result < 0) {
104
  if (result < 0) {
105
    cerr << "Beam3dUniformLoad::sendSelf - failed to send data\n";
-
 
-
 
105
    opserr << "Beam3dUniformLoad::sendSelf - failed to send data\n";
106
    return result;
106
    return result;
107
  }
107
  }
108
108
109
  wx = vectData(0);;
109
  wx = vectData(0);;
110
  wy = vectData(1);;
110
  wy = vectData(1);;
Line 115... Line 115...
115
  if (theElementTags == 0 || theElementTags->Size() != numEle) {
115
  if (theElementTags == 0 || theElementTags->Size() != numEle) {
116
    if (theElementTags != 0)
116
    if (theElementTags != 0)
117
      delete theElementTags;
117
      delete theElementTags;
118
    theElementTags = new ID(numEle);
118
    theElementTags = new ID(numEle);
119
    if (theElementTags == 0) {
119
    if (theElementTags == 0) {
120
      cerr << "Beam3dUniformLoad::sendSelf - failed to create an ID\n";
-
 
-
 
120
      opserr << "Beam3dUniformLoad::sendSelf - failed to create an ID\n";
121
      return -3;
121
      return -3;
122
    }
122
    }
123
  }
123
  }
124
124
125
  result = theChannel.recvID(dbTag, commitTag, *theElementTags);
125
  result = theChannel.recvID(dbTag, commitTag, *theElementTags);
126
  if (result < 0) {
126
  if (result < 0) {
127
    cerr << "Beam3dUniformLoad::sendSelf - failed to send element tags\n";
-
 
-
 
127
    opserr << "Beam3dUniformLoad::sendSelf - failed to send element tags\n";
128
    return result;
128
    return result;
129
  }
129
  }
130
 
130
 
131
  return 0;
131
  return 0;
132
}
132
}
133
133
134
void
134
void
135
Beam3dUniformLoad::Print(ostream &s, int flag)
-
 
-
 
135
Beam3dUniformLoad::Print(OPS_Stream &s, int flag)
136
{
136
{
137
  s << "Beam3dUniformLoad - Reference load" << endl;
-
 
138
  s << "  Transverse (y): " << wy << endl;
-
 
139
  s << "  Transverse (z): " << wz << endl;
-
 
140
  s << "  Axial (x):      " << wx << endl;
-
 
-
 
137
  s << "Beam3dUniformLoad - Reference load" << endln;
-
 
138
  s << "  Transverse (y): " << wy << endln;
-
 
139
  s << "  Transverse (z): " << wz << endln;
-
 
140
  s << "  Axial (x):      " << wx << endln;
141
  s << "  Elements acted on: " << this->getElementTags();
141
  s << "  Elements acted on: " << this->getElementTags();
142
}
142
}