fElmt02.cppGo 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.1.1.1 $ 00022 // $Date: 2000/09/15 08:23:20 $ 00023 // $Source: /usr/local/cvs/OpenSees/SRC/element/feap/fElmt02.cpp,v $ 00024 00025 00026 // File: ~/element/fortran/fElmt02.C 00027 // 00028 // Written: fmk 00029 // Created: 03/99 00030 // Revision: A 00031 // 00032 // Description: This file contains the implementation for the fElmt02 class. 00033 // 00034 // What: "@(#) fElement.C, revA" 00035 00036 #include "fElmt02.h" 00037 #include <ID.h> 00038 #include <Vector.h> 00039 00040 fElmt02::fElmt02(int tag, int nd1, int nd2, double A, double E, double rho) 00041 :fElement(tag, ELE_TAG_fElmt02, 2, 3, 2, 2, 2, 0, 0) 00042 { 00043 (*data)(0) = A; 00044 (*data)(1) = E; 00045 (*data)(2) = rho; 00046 00047 (*connectedNodes)(0) = nd1; 00048 (*connectedNodes)(1) = nd2; 00049 } 00050 00051 fElmt02::fElmt02(int tag, int nd1, int nd2, int iow) 00052 :fElement(tag, ELE_TAG_fElmt02, 2, 3, 2, 2, 2, iow) 00053 { 00054 (*connectedNodes)(0) = nd1; 00055 (*connectedNodes)(1) = nd2; 00056 } 00057 00058 fElmt02::fElmt02() 00059 :fElement(ELE_TAG_fElmt02) 00060 { 00061 // does nothing 00062 } 00063 00064 fElmt02::~fElmt02() 00065 { 00066 // does nothing 00067 } 00068 |