MBSim |
Project Page |
00001 /* Copyright (C) 2004-2006 Martin Förg 00002 00003 * This library is free software; you can redistribute it and/or 00004 * modify it under the terms of the GNU Lesser General Public 00005 * License as published by the Free Software Foundation; either 00006 * version 2.1 of the License, or (at your option) any later version. 00007 * 00008 * This library is distributed in the hope that it will be useful, 00009 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00010 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00011 * Lesser General Public License for more details. 00012 * 00013 * You should have received a copy of the GNU Lesser General Public 00014 * License along with this library; if not, write to the Free Software 00015 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 00016 00017 * 00018 * Contact: 00019 * martin.o.foerg@googlemail.com 00020 * 00021 */ 00022 00023 // #ifndef _DASPK_INTEGRATOR_H_ 00024 // #define _DASPK_INTEGRATOR_H_ 00025 // 00026 // #include "integrator.h" 00027 // 00028 // namespace MBSimIntegrator { 00029 // 00030 // /** \brief ODE-Integrator DASPK 00031 // Integrator with root finding for ODEs. 00032 // This integrator uses DASPK from http://www.netlib.org . */ 00033 // class DASPKIntegrator : public Integrator { 00034 // 00035 // private: 00036 // 00037 // static void res(double *t, double *z, double *zd, double *cj, double *delta, int *ires, double *rpar, int *ipar); 00038 // static void fsv(int* zSize, double* t, double* z_, int* nsv, double* sv_); 00039 // 00040 // /** maximal step size */ 00041 // double dtMax; 00042 // /** minimal step size */ 00043 // double dtMin; 00044 // /** Absolute Toleranz */ 00045 // fmatvec::Vec aTol; 00046 // /** Relative Toleranz */ 00047 // double rTol; 00048 // /** step size for the first step */ 00049 // double dt0; 00050 // /** maximum number of steps allowed during one call to the solver. (default 10000) */ 00051 // int maxSteps; 00052 // /** use stiff (BDF) method */ 00053 // bool stiff; 00054 // /** number of differential equations */ 00055 // static int zSize; 00056 // 00057 // public: 00058 // 00059 // DASPKIntegrator(); 00060 // ~DASPKIntegrator() {} 00061 // 00062 // void setMaximalStepSize(double dtMax_) {dtMax = dtMax_;} 00063 // void setMinimalStepSize(double dtMin_) {dtMin = dtMin_;} 00064 // void setRelativeTolerance(double rTol_) {rTol = rTol_;} 00065 // void setAbsoluteTolerance(const fmatvec::Vec &aTol_) {aTol.resize() = aTol_;} 00066 // void setAbsoluteTolerance(double aTol_) {aTol.resize() = fmatvec::Vec(1,fmatvec::INIT,aTol_);} 00067 // void setInitialStepSize(double dt0_) {dt0 = dt0_;} 00068 // void setmaxSteps(int maxSteps_) {maxSteps = maxSteps_;} 00069 // void setStiff(bool flag) {stiff = flag;} 00070 // 00071 // void integrate(DynamicSystemSolver& system); 00072 // 00073 // virtual void initializeUsingXML(xercesc::DOMElement *element); 00074 // }; 00075 // 00076 // } 00077 // 00078 // #endif
1.8.0