Beam2dTempLoad.cpp

Go to the documentation of this file.
00001 /* ****************************************************************** **
00002 **    OpenSees - Open System for Earthquake Engineering Simulation    **
00003 **          Pacific Earthquake Engineering Research Center            **
00004 **                                                                    **
00005 **                                                                    **
00006 ** (C) Copyright 1999, The Regents of the University of California    **
00007 ** All Rights Reserved.                                               **
00008 **                                                                    **
00009 ** Commercial use of this program without express permission of the   **
00010 ** University of California, Berkeley, is strictly prohibited.  See   **
00011 ** file 'COPYRIGHT'  in main directory for information on usage and   **
00012 ** redistribution,  and for a DISCLAIMER OF ALL WARRANTIES.           **
00013 **                                                                    **
00014 ** Developed by:                                                      **
00015 **   Frank McKenna (fmckenna@ce.berkeley.edu)                         **
00016 **   Gregory L. Fenves (fenves@ce.berkeley.edu)                       **
00017 **   Filip C. Filippou (filippou@ce.berkeley.edu)                     **
00018 **                                                                    **
00019 ** ****************************************************************** */
00020                                                                         
00021 // $Revision: 1.4 $
00022 // $Date: 2003/10/07 18:59:16 $
00023 // $Source: /usr/local/cvs/OpenSees/SRC/domain/load/Beam2dTempLoad.cpp,v $
00024                                                                         
00025 // Written: Scott R. Hamilton 15 July 2002
00026 
00027 // Purpose: This file contains the class implementation Beam2dTempLoad 
00028 // modeled after Beam2dPointLoad.cpp by fmk.
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 }

Generated on Mon Oct 23 15:05:01 2006 for OpenSees by doxygen 1.5.0