gridripper::amr1d::AutoAMRCore Class Reference

Automatic AMR integrator. More...

#include <AutoAMRCore.h>

Inheritance diagram for gridripper::amr1d::AutoAMRCore:

gridripper::amr1d::AMRCore

List of all members.

Public Member Functions

 AutoAMRCore (PDE *pde, InitCond &ini, bool constrforced, Integrator *gi, Regridder *regridder, const string &dtdx, int maxi, int npabovemax, int maxl, int r, AMError *amerr, double maxerr, int errchkf, int regridf, int bufzoner, int fms, string f, int fileno, int bdatasize, int blines, const string &dtwrite, bool endless, GReal_t tmax, int maxruntime, const string &datafmt, const string &energyfmt, bool enable) throw (InitCond::Exception&, IllegalArgumentException&, OutFileExistsException&)
 Creates an integrator.
AMRCorecloneAMRCore () const
 Clones this object.
long getCalcTime () const
long getWaitTime () const
bool isOutputAppended () const
bool isTimeSliceSaved (int tsc) const
void output ()
 Writes output.

Protected Member Functions

bool isLastTime (const Grid &g) const
 Tests whether the last time step is reached.
virtual void coarseStepped (GReal_t t)
 This method is called immediately after each coarse time step on the base grid, before refined grid updates.

Classes

class  OutFileExistsException
 Thrown if the output file already exists. More...


Detailed Description

Automatic AMR integrator.

Version:
0.5, 05/08/2009
Author:
Peter Csizmadia

Constructor & Destructor Documentation

gridripper::amr1d::AutoAMRCore::AutoAMRCore ( PDE pde,
InitCond ini,
bool  constrforced,
Integrator gi,
Regridder regridder,
const string &  dtdx,
int  maxi,
int  npabovemax,
int  maxl,
int  r,
AMError amerr,
double  maxerr,
int  errchkf,
int  regridf,
int  bufzoner,
int  fms,
string  f,
int  fileno,
int  bdatasize,
int  blines,
const string &  dtwrite,
bool  endless,
GReal_t  tmax,
int  maxruntime,
const string &  datafmt,
const string &  energyfmt,
bool  enable 
) throw (InitCond::Exception&, IllegalArgumentException&, OutFileExistsException&)

Creates an integrator.

Parameters:
pde the partial differential equation to integrate
ini the initial conditions
constrforced whether to force constraints
gi the numerical integration method
regridder the regridder
dtdx dt/dx
maxi base grid size
npabovemax number of grid points above infinity (Xmax)
maxl maximum allowed refinement level
r refinement ratio
amerr the error calculation method
maxerr the critical error value or 0
errchkf error checking frequency
regridf regridding frequency
bufzoner radius of buffer zone
fms milliseconds between two frames
f the output file
fileno the initial file number
bdatasize maximal size of BData file
blines number of blank lines to write between time slices in the output datafile, in case of text (non-binary) format
dtwrite time step for data file writing
endless endless
tmax the time at which simulation should stop
maxruntime maximal running time in seconds (-1: unlimited)
datafmt printf format string for t, x and grid function values
energyfmt printf format string for energy values
enable enable data file writing


Member Function Documentation

AMRCore* gridripper::amr1d::AutoAMRCore::cloneAMRCore (  )  const [virtual]

Clones this object.

Returns:
the clone

Implements gridripper::amr1d::AMRCore.

bool gridripper::amr1d::AutoAMRCore::isLastTime ( const Grid g  )  const [protected, virtual]

Tests whether the last time step is reached.

Returns:
true if no more integration steps are needed, false if simulation should continue

Implements gridripper::amr1d::AMRCore.

virtual void gridripper::amr1d::AutoAMRCore::coarseStepped ( GReal_t  t  )  [protected, virtual]

This method is called immediately after each coarse time step on the base grid, before refined grid updates.

Parameters:
t the mean time of the last time step

Reimplemented from gridripper::amr1d::AMRCore.


The documentation for this class was generated from the following file:

Generated on Wed Jun 17 18:46:48 2009 for GridRipper by  doxygen 1.5.6