00001 // Copyright (C) 2002-2004 Vivien Mallet 00002 // 00003 // This file is part of Multivac library. 00004 // Multivac library provides front-tracking algorithms. 00005 // 00006 // Multivac is free software; you can redistribute it and/or modify 00007 // it under the terms of the GNU General Public License as published by 00008 // the Free Software Foundation; either version 2 of the License, or 00009 // (at your option) any later version. 00010 // 00011 // Multivac is distributed in the hope that it will be useful, 00012 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 // GNU General Public License (file "license") for more details. 00015 // 00016 // For more information, please see the Multivac home page: 00017 // http://spacetown.free.fr/fronts/ 00018 00019 00020 #ifndef FILE_MESHES_ORTHOGONAL_HXX 00021 00022 00023 #include "../errors.cxx" 00024 #include <stdio.h> 00025 00026 00027 namespace Multivac 00028 { 00029 00030 00032 // CORTHOGONALMESH // 00034 00036 template <class T> 00037 class COrthogonalMesh: public CMesh<T> 00038 { 00039 00040 00041 /************** 00042 * ATTRIBUTES * 00043 **************/ 00044 00045 protected: 00046 00047 00048 /***************************** 00049 * CONSTRUCTORS & DESTRUCTOR * 00050 *****************************/ 00051 00052 public: 00053 00054 COrthogonalMesh() throw(); 00055 COrthogonalMesh(T Xmin, T Xmax, T Ymin, T Ymax, 00056 int Nx, int Ny) throw(); 00057 00058 ~COrthogonalMesh() throw(); 00059 00060 00061 /*********** 00062 * METHODS * 00063 ***********/ 00064 00065 public: 00066 00067 virtual void Save(string XFile, string YFile) const; 00068 virtual void SaveNonOrthogonalMesh(string PointsFile, 00069 string EdgesFile, 00070 string TrianglesFile) const; 00071 00072 }; // COrthogonalMesh. 00073 00074 00075 } // namespace Multivac. 00076 00077 00078 #define FILE_MESHES_ORTHOGONAL_HXX 00079 #endif