EquiSolnAlgo.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.3 $ 00022 // $Date: 2005/11/29 22:42:41 $ 00023 // $Source: /usr/local/cvs/OpenSees/SRC/analysis/algorithm/equiSolnAlgo/EquiSolnAlgo.cpp,v $ 00024 00025 00026 // File: ~/OOP/analysis/algorithm/EquiSolnAlgo.C 00027 // 00028 // Written: fmk 00029 // Created: 11/96 00030 // Revision: A 00031 // 00032 00033 // Description: This file contains the class implementation for 00034 // EquiSolnAlgo. EquiSolnAlgo is an abstract base class, 00035 // i.e. no objects of it's type can be created. Its subclasses deifine 00036 // the sequence of operations to be performed in the analysis by static 00037 // equilibrium of a finite element model. 00038 // 00039 // What: "@(#)EquiSolnAlgo.C, revA" 00040 00041 00042 #include <EquiSolnAlgo.h> 00043 #include <AnalysisModel.h> 00044 #include <IncrementalIntegrator.h> 00045 #include <LinearSOE.h> 00046 00047 00048 EquiSolnAlgo::EquiSolnAlgo(int clasTag) 00049 :SolutionAlgorithm(clasTag), 00050 theModel(0), theIntegrator(0), theSysOfEqn(0) 00051 { 00052 00053 } 00054 00055 EquiSolnAlgo::~EquiSolnAlgo() 00056 { 00057 00058 } 00059 00060 void 00061 EquiSolnAlgo::setLinks(AnalysisModel &theNewModel, 00062 IncrementalIntegrator &theNewIntegrator, 00063 LinearSOE &theSOE) 00064 { 00065 theModel = &theNewModel; 00066 theIntegrator = &theNewIntegrator; 00067 theSysOfEqn = &theSOE; 00068 } 00069 00070 00071 ConvergenceTest * 00072 EquiSolnAlgo::getConvergenceTest(void) 00073 { 00074 return 0; 00075 } 00076 00077 00078 AnalysisModel * 00079 EquiSolnAlgo::getAnalysisModelPtr(void) const 00080 { 00081 return theModel; 00082 } 00083 00084 00085 00086 IncrementalIntegrator * 00087 EquiSolnAlgo::getIncrementalIntegratorPtr(void) const 00088 { 00089 return theIntegrator; 00090 } 00091 00092 00093 00094 LinearSOE * 00095 EquiSolnAlgo::getLinearSOEptr(void) const 00096 { 00097 return theSysOfEqn; 00098 } 00099 00100 |