MaterialResponse.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.3 $
00022 // $Date: 2001/07/31 18:26:59 $
00023 // $Source: /usr/local/cvs/OpenSees/SRC/recorder/response/MaterialResponse.cpp,v $
00024                                                                         
00025 // Written: MHS 
00026 // Created: Oct 2000
00027 //
00028 // Description: This file contains the MaterialResponse class implementation
00029 
00030 #include <MaterialResponse.h>
00031 #include <Material.h>
00032 
00033 MaterialResponse::MaterialResponse(Material *mat, int id):
00034 Response(), theMaterial(mat), responseID(id)
00035 {
00036 
00037 }
00038 
00039 MaterialResponse::MaterialResponse(Material *mat, int id, int val):
00040 Response(val), theMaterial(mat), responseID(id)
00041 {
00042 
00043 }
00044 
00045 MaterialResponse::MaterialResponse(Material *mat, int id, double val):
00046 Response(val), theMaterial(mat), responseID(id)
00047 {
00048 
00049 }
00050 
00051 MaterialResponse::MaterialResponse(Material *mat, int id, const ID &val):
00052 Response(val), theMaterial(mat), responseID(id)
00053 {
00054 
00055 }
00056 
00057 MaterialResponse::MaterialResponse(Material *mat, int id, const Vector &val):
00058 Response(val), theMaterial(mat), responseID(id)
00059 {
00060 
00061 }
00062 
00063 MaterialResponse::MaterialResponse(Material *mat, int id, const Matrix &val):
00064 Response(val), theMaterial(mat), responseID(id)
00065 {
00066 
00067 }
00068 
00069 MaterialResponse::MaterialResponse(Material *mat, int id, const Tensor &val):
00070 Response(val), theMaterial(mat), responseID(id)
00071 {
00072 
00073 }
00074 
00075 MaterialResponse::~MaterialResponse()
00076 {
00077 
00078 }
00079 
00080 int
00081 MaterialResponse::getResponse(void)
00082 {
00083         return theMaterial->getResponse(responseID, myInfo);
00084 }

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