gridripper::amr1d::initcond::BData Class Reference

Initial condition for a PDE from binary data. More...

#include <BData.h>

Inheritance diagram for gridripper::amr1d::initcond::BData:

gridripper::amr1d::InitCond

List of all members.

Public Member Functions

 BData (const std::string &args, const Parameters *p, const PDE &pde) throw (IOException&)
 Creates initial condition.
bool isOnInitialHypersurface () const
 Is the the initial condition applied on the initial hypersurface?
bool isAppended (const std::string &f) const
 Should the output be appended to an existing data file?
int init (tvalarray< tvector< Grid * > > &grids, PDE *pde, GReal_t dt, int r, int maxlevel, int bufzone, AMError *amerr, GReal_t maxerr) throw (InitCond::Exception&)
 Creates and initializes base grid and initial subgrids.
GReal_t getTime () const
 Gets the time parameter at the initialization.
std::string getMessage () const
 Gets the message.


Detailed Description

Initial condition for a PDE from binary data.

Examples:

 initCond=BData file.bdata
 initCond=BData file.bData t=1.25
 

Version:
0.5, 06/12/2009
Author:
Andras Laszlo

Constructor & Destructor Documentation

gridripper::amr1d::initcond::BData::BData ( const std::string &  args,
const Parameters p,
const PDE pde 
) throw (IOException&)

Creates initial condition.

Parameters:
args the arguments
p the parameters
pde the PDE


Member Function Documentation

bool gridripper::amr1d::initcond::BData::isOnInitialHypersurface (  )  const [virtual]

Is the the initial condition applied on the initial hypersurface?

Returns:
true if it is applied on the initial hypersurface, false otherwise

Reimplemented from gridripper::amr1d::InitCond.

bool gridripper::amr1d::initcond::BData::isAppended ( const std::string &  fname  )  const [virtual]

Should the output be appended to an existing data file?

Returns:
true if output should be appended, false if an existing data file can be overwritten

Reimplemented from gridripper::amr1d::InitCond.

int gridripper::amr1d::initcond::BData::init ( tvalarray< tvector< Grid * > > &  grids,
PDE pde,
GReal_t  dt,
int  r,
int  maxlevel,
int  bufzone,
AMError amerr,
GReal_t  maxerr 
) throw (InitCond::Exception&)

Creates and initializes base grid and initial subgrids.

Parameters:
grids array of all grids
pde the PDE
dt the time step
r refinement ratio
maxlevel maximum refinement level
bufzone buffer zone size
amerr error function
maxerr error tolerance
Returns:
the finest refinement level

GReal_t gridripper::amr1d::initcond::BData::getTime (  )  const [virtual]

Gets the time parameter at the initialization.

The default implementation returns 0.

Returns:
the time

Implements gridripper::amr1d::InitCond.

std::string gridripper::amr1d::initcond::BData::getMessage (  )  const [virtual]

Gets the message.

Reimplemented from gridripper::amr1d::InitCond.


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

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