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

Multivac::CCurvesSaver< T > Class Template Reference

This saver stores curves with a given period. More...

#include <curvessaver.hxx>

Inheritance diagram for Multivac::CCurvesSaver< T >:

Multivac::CSaver< T > List of all members.

Public Member Functions

 CCurvesSaver () throw ()
 Default constructor.

 CCurvesSaver (string TimeFileName, string CurvesFileName, string CurveLengthsFileName, string PhiFileName, string FFileName, string XFileName, string YFileName, string PointsFileName, string EdgesFileName, string TrianglesFileName, int Period_)
 Main contructor.

virtual ~CCurvesSaver () throw ()
 Destructor.

virtual void SaveAtTheBeginning (CMesh< T > &Mesh, CSpeedFunction< T > &F, CLevelSet< T > &Phi, CInitializer< T > &Initializer)
 Saves the initial mesh and the initial curve.

virtual void SaveAtCurrentIteration (CMesh< T > &Mesh, CSpeedFunction< T > &F, CLevelSet< T > &Phi, T time, int iter, CInitializer< T > &Initializer)
virtual void SaveAtTheEnd (CMesh< T > &Mesh, CSpeedFunction< T > &F, CLevelSet< T > &Phi, Vector< T > &time, int iter, CInitializer< T > &Initializer)

Detailed Description

template<class T>
class Multivac::CCurvesSaver< T >

This saver stores curves with a given period.

If the current iteration is a multiple of the given period, then this saver stores the curves (stored in the initializer and probably built from the current level set function). If the curve is not built yet, the initializer curve builder is called (member function 'BuildCurveForDisplay'). In addition to that, the mesh is saved at the beginning. At the end, the speed function, the level set are saved (as they are at this time). Finally, iteration times (of the whole simulation) are saved.


Constructor & Destructor Documentation

template<class T>
Multivac::CCurvesSaver< T >::CCurvesSaver string  TimeFileName,
string  CurvesFileName,
string  CurveLengthsFileName,
string  PhiFileName,
string  FFileName,
string  XFileName,
string  YFileName,
string  PointsFileName,
string  EdgesFileName,
string  TrianglesFileName,
int  Period_
 

Main contructor.

Parameters:
TimeFileName file in which iteration times will be stored.
CurvesFileName file in which fronts will be stored.
CurveLengthsFileName file in which numbers of points (on fronts) will be stored.
PhiFileName file in which the level set function will be stored.
FFileName file in which the speed function will be stored.
XFileName file in which grid point abscissae will be stored.
YFileName file in which grid point ordinates will be stored.
PointsFileName file in which mesh points will be stored.
EdgesFileName file in which mesh edges will be stored.
TrianglesFileName file in which mesh triangles will be stored.
Period_ Data will be saved if the current iteration is a multiple of 'Period_'.


Member Function Documentation

template<class T>
void Multivac::CCurvesSaver< T >::SaveAtCurrentIteration CMesh< T > &  Mesh,
CSpeedFunction< T > &  F,
CLevelSet< T > &  Phi,
time,
int  iter,
CInitializer< T > &  Initializer
[virtual]
 

Parameters:
Mesh initial mesh.
F initial speed function.
Phi initial level set.
time current time.
iter current iteration.
Initializer initializer.
Exceptions:
Seldon::IOError an error occured during I/O operations.

Implements Multivac::CSaver< T >.

template<class T>
void Multivac::CCurvesSaver< T >::SaveAtTheBeginning CMesh< T > &  Mesh,
CSpeedFunction< T > &  F,
CLevelSet< T > &  Phi,
CInitializer< T > &  Initializer
[virtual]
 

Saves the initial mesh and the initial curve.

Parameters:
Mesh initial mesh.
F initial speed function.
Phi initial level set.
Initializer initializer.
Exceptions:
Seldon::IOError an error occured during I/O operations.

Implements Multivac::CSaver< T >.

template<class T>
void Multivac::CCurvesSaver< T >::SaveAtTheEnd CMesh< T > &  Mesh,
CSpeedFunction< T > &  F,
CLevelSet< T > &  Phi,
Vector< T > &  Time,
int  iter,
CInitializer< T > &  Initializer
[virtual]
 

Parameters:
Mesh initial mesh.
F initial speed function.
Phi initial level set.
Time vector that constains iteration times (of the whole simulation).
iter current iteration.
Initializer initializer.
Exceptions:
Seldon::IOError an error occured during I/O operations.

Implements Multivac::CSaver< T >.


The documentation for this class was generated from the following files:
Generated on Mon Apr 19 01:59:16 2004 for Multivac by doxygen 1.3.6-20040222