FeapMaterial01.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 $ 00022 // $Date: 2002/10/29 20:26:23 $ 00023 // $Source: /usr/local/cvs/OpenSees/SRC/material/nD/feap/FeapMaterial01.cpp,v $ 00024 00025 // Written: MHS 00026 // Created: June 2001 00027 // 00028 // Description: This file contains the class definition for 00029 // FeapMaterial01. 00030 00031 #include <FeapMaterial01.h> 00032 #include <Vector.h> 00033 00034 FeapMaterial01::FeapMaterial01(int tag, double E, double nu, double rho): 00035 // 0 history variables and 2 material parameters 00036 FeapMaterial(tag, ND_TAG_FeapMaterial01, 0, 2, rho) 00037 { 00038 ud[0] = E; 00039 ud[1] = nu; 00040 } 00041 00042 FeapMaterial01::FeapMaterial01(void): 00043 FeapMaterial(0, ND_TAG_FeapMaterial01, 0, 2) 00044 { 00045 // Does nothing 00046 } 00047 00048 FeapMaterial01::~FeapMaterial01(void) 00049 { 00050 // Does nothing 00051 } 00052 00053 int 00054 FeapMaterial01::fillDArray(void) 00055 { 00056 // Look in FEAP programmer's manual 00057 d[0] = ud[0]; 00058 d[1] = ud[1]; 00059 d[3] = rho; 00060 00061 return 0; 00062 } |