Initial condition for a PDE from binary data. More...
#include <BData.h>
Public Member Functions | |
BData (const std::string &args, const Parameters *p, const PDE &pde) throw (IOException&, InitCond::Exception&) | |
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. |
Initial condition for a PDE from binary data.
Examples:
initCond=BData file.bdata initCond=BData file.bData t=1.25
gridripper::amr1d::initcond::BData::BData | ( | const std::string & | args, | |
const Parameters * | p, | |||
const PDE & | pde | |||
) | throw (IOException&, InitCond::Exception&) |
Creates initial condition.
args | the arguments | |
p | the parameters | |
pde | the PDE |
std::string gridripper::amr1d::initcond::BData::getMessage | ( | ) | const [virtual] |
Gets the message.
Reimplemented from gridripper::amr1d::InitCond.
GReal_t gridripper::amr1d::initcond::BData::getTime | ( | ) | const [virtual] |
Gets the time parameter at the initialization.
The default implementation returns 0.
Implements 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.
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 |
bool gridripper::amr1d::initcond::BData::isAppended | ( | const std::string & | fname | ) | const [virtual] |
Should the output be appended to an existing data file?
Reimplemented from gridripper::amr1d::InitCond.
bool gridripper::amr1d::initcond::BData::isOnInitialHypersurface | ( | ) | const [virtual] |
Is the the initial condition applied on the initial hypersurface?
Reimplemented from gridripper::amr1d::InitCond.