00001 /* 00002 * Copyright (c) 2001 The AUTHORS 00003 * Romeu Andre' Pieritz, Ph.D. - romeu_pieritz@hotmail.com 00004 * Rafael Mendes, Eng. – mendes_rafael@yahoo.com 00005 * Rodrigo Ferraz de Andrade, Eng. – rferraz@iname.com 00006 * All rights reserved. 00007 * 00008 * Permission to use, copy and distribute this software and its 00009 * documentation for educational and personal use, without fee is hereby granted, 00010 * provided that the above copyright notice and the following 00011 * two paragraphs appear in all copies of this software. 00012 * 00013 * IN NO EVENT SHALL THE AUTHORS BE LIABLE TO ANY PARTY FOR 00014 * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT 00015 * OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF THE AUTHORS 00016 * HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 00017 * 00018 * THE AUTHORS SPECIFICALLY DISCLAIMS ANY WARRANTIES, 00019 * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY 00020 * AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HERE UNDER IS 00021 * ON AN "AS IS" BASIS, AND THE AUTHORS HAVE NO OBLIGATION TO 00022 * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. 00023 * 00024 * SINMEC Lab. - CFD Sinflow Project - http://www.sinmec.ufsc.br/cfd 00025 */ 00026 00027 00028 // File Define 00029 #ifndef __CSFL_MATH_SOLVER_SOLVER__ 00030 #define __CSFL_MATH_SOLVER_SOLVER__ 00031 00032 00033 // Include 00034 #include <csfl/sys/core/sflobject.h> 00035 #include <csfl/sys/core/action.h> 00036 #include <csfl/sys/math/linearsys.h> 00037 #include <csfl/sys/container/param.h> 00038 00039 00040 // Namespace 00041 namespace csfl { 00042 00043 //============================================================================== 00044 // Class ISolver 00045 // Description: Basic class to the solvers objects 00046 //============================================================================== 00047 00048 class ISolver : 00049 virtual public ISFLObject 00050 00054 00055 { 00056 00057 public: 00058 00063 ISolver( ILinearSystem *_lsys = NULL ); 00064 ISolver( ISolver *_solver ); 00065 ~ISolver(); 00066 00068 virtual void Solve() {} 00069 virtual void Solve( ILinearSystem *_lsys ) {} 00070 00075 ILinearSystem * LinearSystem() { return lsys; } 00076 00081 void SetLinearSystem( ILinearSystem *_lsys ); 00082 00087 virtual void SetTolerance( double ) {} 00088 00093 virtual double Tolerance() { return 1.0; } 00094 00098 virtual int IterMax() { return 0; } 00099 00103 virtual void SetIterMax( int ) {} 00104 00109 virtual int Iteract() { return 1; } 00110 00114 IAction ActionSolve; 00115 00119 IAction ActionSingularMatrix; 00120 00121 protected: 00122 ILinearSystem *lsys; 00123 00124 }; 00125 } // csfl namespace 00126 00127 #endif // __CSFL_MATH_SOLVER_SOLVER__
CFD Project
|
Documents |
Downloads |
Contact us |
Use Terms |
|
|||
© SINMEC/EMC/UFSC,
2001. |
All rights
reserved. |
Last Update: Jan. 18, 2002 |
|