Main Page | User's guide | Class Hierarchy | Class List | File List | Class Members

track.hxx

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_SAVER_TRACK_HXX
00021 
00022 
00023 #include "../errors.cxx"
00024 #include <stdio.h>
00025 
00026 
00027 namespace Multivac
00028 {
00029 
00030 
00032   // CTRACK //
00034 
00036 
00039   template <class T>
00040   class CTrack: public CSaver<T>
00041   {
00042 
00043 
00044     /**************
00045      * ATTRIBUTES *
00046      **************/
00047 
00048   protected:
00050     List<Curve<T> > Fronts;
00052     Curve<T> Path;
00053 
00054 
00055     /*****************************
00056      * CONSTRUCTORS & DESTRUCTOR *
00057      *****************************/
00058 
00059   public:
00060 
00061     CTrack()  throw();
00062     CTrack(string TimeFileName, string CurvesFileName,
00063            string CurveLengthsFileName, string PhiFileName,
00064            string FFileName, string XFileName, string YFileName,
00065            string PointsFileName, string EdgesFileName,
00066            string TrianglesFileName, int Period_);
00067 
00068     ~CTrack()  throw();
00069 
00070 
00071     /***********
00072      * METHODS *
00073      ***********/
00074     
00075   public:
00076   
00077     virtual void SaveAtTheBeginning(CMesh<T>& Mesh,
00078                                     CSpeedFunction<T>& F,
00079                                     CLevelSet<T>& Phi,
00080                                     CInitializer<T>& Initializer);
00081     virtual void SaveAtCurrentIteration(CMesh<T>& Mesh,
00082                                         CSpeedFunction<T>& F,
00083                                         CLevelSet<T>& Phi,
00084                                         T time, int iter,
00085                                         CInitializer<T>& Initializer);
00086     virtual void SaveAtTheEnd(CMesh<T>& Mesh,
00087                               CSpeedFunction<T>& F,
00088                               CLevelSet<T>& Phi,
00089                               Vector<T>& time,
00090                               int iter,
00091                               CInitializer<T>& Initializer);
00092 
00093     void FindPath(Vector<T>& X);
00094 
00095   };  // CCurvesSaver.
00096 
00097 
00098 }  // namespace Multivac.
00099 
00100 
00101 #define FILE_SAVER_TRACK_HXX
00102 #endif

Generated on Mon Apr 19 01:59:14 2004 for Multivac by doxygen 1.3.6-20040222