00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030 #include <Beam2dTempLoad.h>
00031 #include <Vector.h>
00032
00033 Vector Beam2dTempLoad::data(4);
00034
00035 Beam2dTempLoad::Beam2dTempLoad(int tag,
00036 double temp1, double temp2,
00037 double temp3, double temp4,
00038 const ID &theElementTags)
00039 :ElementalLoad(tag, LOAD_TAG_Beam2dTempLoad, theElementTags),
00040 Ttop1(temp1), Tbot1(temp2), Ttop2(temp3), Tbot2(temp4)
00041 {
00042
00043 }
00044 Beam2dTempLoad::Beam2dTempLoad(int tag,
00045 double temp1,
00046 const ID &theElementTags)
00047 :ElementalLoad(tag, LOAD_TAG_Beam2dTempLoad, theElementTags),
00048 Ttop1(temp1), Tbot1(temp1), Ttop2(temp1), Tbot2(temp1)
00049 {
00050
00051 }
00052
00053 Beam2dTempLoad::Beam2dTempLoad(int tag,
00054 double temp1, double temp2,
00055 const ID &theElementTags)
00056 :ElementalLoad(tag, LOAD_TAG_Beam2dTempLoad, theElementTags),
00057 Ttop1(temp1), Tbot1(temp2), Ttop2(temp1), Tbot2(temp2)
00058 {
00059
00060 }
00061 Beam2dTempLoad::Beam2dTempLoad(int tag, const ID &theElementTags)
00062 :ElementalLoad(tag, LOAD_TAG_Beam2dTempLoad, theElementTags),
00063 Ttop1(0.0), Tbot1(0.0), Ttop2(0.0), Tbot2(0.0)
00064 {
00065
00066 }
00067 Beam2dTempLoad::Beam2dTempLoad()
00068 :ElementalLoad(LOAD_TAG_Beam2dTempLoad),
00069 Ttop1(0.0), Tbot1(0.0), Ttop2(0.0), Tbot2(0.0)
00070 {
00071
00072 }
00073 Beam2dTempLoad::~Beam2dTempLoad()
00074 {
00075
00076 }
00077
00078 const Vector &
00079 Beam2dTempLoad::getData(int &type, double loadFactor)
00080 {
00081 type = LOAD_TAG_Beam2dTempLoad;
00082 data(0) = Ttop1;
00083 data(1) = Tbot1;
00084 data(2) = Ttop2;
00085 data(3) = Tbot2;
00086 return data;
00087 }
00088
00089 int
00090 Beam2dTempLoad::sendSelf(int commitTag, Channel &theChannel)
00091 {
00092 return -1;
00093 }
00094
00095 int
00096 Beam2dTempLoad::recvSelf(int commitTag, Channel &theChannel,
00097 FEM_ObjectBroker &theBroker)
00098 {
00099 return -1;
00100 }
00101
00102 void
00103 Beam2dTempLoad::Print(OPS_Stream &s, int flag)
00104 {
00105 s << "Beam2dTempLoad - reference load : " << Ttop1 << " change in temp at top of node 1 : " << Tbot1 << " change in temp at bottom of node 1\n";
00106 s << Ttop2 << " change in temp at top of node 2 : " << Tbot2 << " change in temp at bottom of node 2\n";
00107 s << " elements acted on: " << this->getElementTags();
00108 }