Fiber.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.5 $ 00022 // $Date: 2006/09/05 22:06:39 $ 00023 // $Source: /usr/local/cvs/OpenSees/SRC/material/section/fiber/Fiber.cpp,v $ 00024 00025 00026 // File: ~/fiber/Fiber.C 00027 // 00028 // Written: Remo Magalhaes de Souza 00029 // Created: 10/98 00030 // Revision: 00031 // 00032 // Description: This file contains the implementation for the 00033 // Fiber class. Fiber provides the abstraction of a section fiber. 00034 // 00035 // What: "@(#) Fiber.C, revA" 00036 00037 00038 #include <Fiber.h> 00039 #include <Matrix.h> 00040 00041 // constructor: 00042 Fiber::Fiber(int tag, int classTag): 00043 TaggedObject(tag), MovableObject(classTag), 00044 sDefault(0), fDefault(0) 00045 { 00046 00047 } 00048 00049 // destructor: 00050 Fiber::~Fiber() 00051 { 00052 if (sDefault != 0) 00053 delete sDefault; 00054 if (fDefault != 0) 00055 delete fDefault; 00056 } 00057 00058 Response* 00059 Fiber::setResponse(const char **argv, int argc, Information &info, OPS_Stream &s) 00060 { 00061 return 0; 00062 } 00063 00064 int 00065 Fiber::getResponse(int responseID, Information &info) 00066 { 00067 return -1; 00068 } 00069 00070 const Vector& 00071 Fiber::getFiberSensitivity(int gradNumber, bool cond) 00072 { 00073 if (sDefault == 0) 00074 sDefault = new Vector (this->getOrder()); 00075 return *sDefault; 00076 00077 } 00078 00079 int 00080 Fiber::commitSensitivity(const Vector &dedh, int gradNumber, 00081 int numGrads) 00082 { 00083 return -1; 00084 } |