GFunEvaluator.hGo 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 2001, 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 ** Reliability module developed by: ** 00020 ** Terje Haukaas (haukaas@ce.berkeley.edu) ** 00021 ** Armen Der Kiureghian (adk@ce.berkeley.edu) ** 00022 ** ** 00023 ** ****************************************************************** */ 00024 00025 // $Revision: 1.4 $ 00026 // $Date: 2003/10/27 23:45:43 $ 00027 // $Source: /usr/local/cvs/OpenSees/SRC/reliability/analysis/gFunction/GFunEvaluator.h,v $ 00028 00029 00030 // 00031 // Written by Terje Haukaas (haukaas@ce.berkeley.edu) 00032 // 00033 00034 #ifndef GFunEvaluator_h 00035 #define GFunEvaluator_h 00036 00037 #include <Vector.h> 00038 #include <ReliabilityDomain.h> 00039 #include <tcl.h> 00040 00041 #include <fstream> 00042 using std::ofstream; 00043 00044 class GFunEvaluator 00045 { 00046 00047 public: 00048 GFunEvaluator(Tcl_Interp *theTclInterp, ReliabilityDomain *theReliabilityDomain); 00049 virtual ~GFunEvaluator(); 00050 00051 // Methods provided by base class 00052 int evaluateG(Vector x); 00053 double getG(); 00054 int initializeNumberOfEvaluations(); 00055 int getNumberOfEvaluations(); 00056 00057 // Methods to be implemented by specific classes 00058 virtual int runGFunAnalysis(Vector x) =0; 00059 virtual int tokenizeSpecials(TCL_Char *theExpression) =0; 00060 00061 // Methods implemented by SOME specific classes (random vibrations stuff) 00062 virtual void setNsteps(int nsteps); 00063 virtual double getDt(); 00064 00065 protected: 00066 Tcl_Interp *theTclInterp; 00067 ReliabilityDomain *theReliabilityDomain; 00068 double g; 00069 int numberOfEvaluations; 00070 00071 private: 00072 00073 }; 00074 00075 #endif 00076 |