BrickSelfWeight.cppGo to the documentation of this file.00001 00002 // 00003 // COPYRIGHT (C): :-)) 00004 // PROJECT: Object Oriented Finite Element Program 00005 // FILE: BrickSelfWeight 00006 // CLASS: 00007 // MEMBER FUNCTIONS: 00008 // 00009 // MEMBER VARIABLES 00010 // 00011 // PURPOSE: Finite Element Class 00012 // RETURN: 00013 // VERSION: 00014 // LANGUAGE: C++ 00015 // TARGET OS: DOS || UNIX || . . . 00016 // DESIGNER: Zhaohui Yang 00017 // PROGRAMMER: Zhaohui Yang 00018 // DATE: March 2002 00019 // UPDATE HISTORY: 00020 // 00021 // 00022 // 00024 // 00025 00026 #ifndef BRICKSELFWEIGHT_CPP 00027 #define BRICKSELFWEIGHT_CPP 00028 00029 00030 // Written: ZHYang UC Davis 00031 // Purpose: This file contains the class definition for 8 node brick self weigth load. 00032 00033 #include <BrickSelfWeight.h> 00034 #include <Vector.h> 00035 00036 Vector BrickSelfWeight::data(1); 00037 00038 BrickSelfWeight::BrickSelfWeight(int tag, const ID &theElementTags) 00039 :ElementalLoad(tag, LOAD_TAG_BrickSelfWeight, theElementTags) 00040 { 00041 00042 } 00043 00044 BrickSelfWeight::BrickSelfWeight() 00045 :ElementalLoad(LOAD_TAG_BrickSelfWeight) 00046 { 00047 00048 } 00049 00050 BrickSelfWeight::~BrickSelfWeight() 00051 { 00052 00053 } 00054 00055 const Vector & 00056 BrickSelfWeight::getData(int &type, double loadFactor) 00057 { 00058 type = LOAD_TAG_BrickSelfWeight; 00059 //data(0) = P; 00060 //data(1) = x; 00061 return data; 00062 } 00063 00064 int 00065 BrickSelfWeight::sendSelf(int commitTag, Channel &theChannel) 00066 { 00067 return -1; 00068 } 00069 00070 int 00071 BrickSelfWeight::recvSelf(int commitTag, Channel &theChannel, FEM_ObjectBroker &theBroker) 00072 { 00073 return -1; 00074 } 00075 00076 void 00077 BrickSelfWeight::Print(OPS_Stream &s, int flag) 00078 { 00079 s << "BrickSelfWeight..."; 00080 s << " elements acted on: " << this->getElementTags(); 00081 } 00082 00083 #endif 00084 |