Public Member Functions | |
AMRCore (PDE pde, InitCond ini, boolean constrforced, Integrator gi, Regridder rgdproto, String dtdx_str, int maxi, int npabovemax, int maxl, int r, AMError amerr, double maxerr, int errchkf, int regridf, int bufzoner) throws InitCond.Exception, IllegalArgumentException | |
Creates a grid hierarchy. | |
abstract AMRCore | cloneAMRCore () |
Clones this object. | |
boolean | isRunning () |
void | setRunning (boolean r) |
Sets the running flag. | |
abstract boolean | areSubstepsMonitorable () |
abstract void | monitor (int level, int sublevel, String msg) |
Wakes up another thread, suspends the integrator thread temporarily. | |
int | getRefinementRatio () |
int | getMaxAllowedLevel () |
boolean | getDebug () |
void | setDebug (boolean v) |
PDE | getPDE () |
Gets the PDE. | |
double | getErrorTolerance () |
double | getErrorToleranceDt (int l) |
int | getErrorCheckFreq () |
int | getRegridFreq () |
int | getBufferZoneSize () |
boolean | getSubstepMonitoring () |
Gets substep monitoring mode. | |
void | setSubstepMonitoring (boolean fm) |
Sets substep monitoring mode. | |
int | getCurrentLevel () |
Gets the current level. | |
String | getNextMessage () |
Gets the current state description. | |
Grid | getBaseGrid () |
Gets the base grid. | |
double | getDeltaT0 () |
Gets the default time step on the base grid. | |
double | getDeltaT () |
Gets the current time step on the base grid. | |
boolean | isCurrentDeltaT0Computed () |
Is the current time step computed? | |
double | getDeltaT (double dt, int l) |
Gets the time step on the specified level. | |
final boolean | isConstraintForced () |
final void | setConstraintForced (boolean v) |
final boolean | isEnergyWritten () |
final void | setEnergyWritten (boolean v) |
GridBDataWriter | createBDataWriter () |
void | writeData (Writer w, String format, String energyfmt, PrecalculatedSolution xsol) throws IOException |
void | integrate () |
Performs integration on the base grid and its subgrids. | |
Protected Member Functions | |
AMRCore (AMRCore ai) | |
Copy constructor. | |
abstract boolean | isLastTime (Grid g) |
Tests whether the last time step is reached. | |
abstract boolean | isStepMonitored (int level, int sublevel) |
Checks if a step should be monitored or not. | |
void | setCurrentLevel (int l) |
Gets the current level. | |
void | setNextMessage (String msg) |
Gets the current state description. | |
void | coarseStepped (double t) |
This method is called immediately after each coarse time step on the base grid, before refined grid updates. | |
Static Package Functions | |
[static initializer] |
gridripper::amr1d::AMRCore::AMRCore | ( | AMRCore | ai | ) | [inline, protected] |
Copy constructor.
ai | the object to copy |
gridripper::amr1d::AMRCore::AMRCore | ( | PDE | pde, | |
InitCond | ini, | |||
boolean | constrforced, | |||
Integrator | gi, | |||
Regridder | rgdproto, | |||
String | dtdx_str, | |||
int | maxi, | |||
int | npabovemax, | |||
int | maxl, | |||
int | r, | |||
AMError | amerr, | |||
double | maxerr, | |||
int | errchkf, | |||
int | regridf, | |||
int | bufzoner | |||
) | throws InitCond.Exception, IllegalArgumentException [inline] |
Creates a grid hierarchy.
pde | the partial differential equation to integrate | |
ini | the initial conditions | |
constrforced | whether to force constraints | |
gi | the numerical integration method | |
rgdproto | regridder prototype | |
dtdx_str | 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 |
abstract AMRCore gridripper::amr1d::AMRCore::cloneAMRCore | ( | ) | [pure virtual] |
void gridripper::amr1d::AMRCore::setRunning | ( | boolean | r | ) | [inline] |
Sets the running flag.
abstract boolean gridripper::amr1d::AMRCore::isLastTime | ( | Grid | g | ) | [protected, pure virtual] |
Tests whether the last time step is reached.
true
if no more integration steps are needed, false
if simulation should continue Implemented in gridripper::amr1d::AutoAMRCore.
abstract boolean gridripper::amr1d::AMRCore::isStepMonitored | ( | int | level, | |
int | sublevel | |||
) | [protected, pure virtual] |
Checks if a step should be monitored or not.
level | the current level | |
sublevel | the current sublevel |
Implemented in gridripper::amr1d::AutoAMRCore.
abstract void gridripper::amr1d::AMRCore::monitor | ( | int | level, | |
int | sublevel, | |||
String | msg | |||
) | [pure virtual] |
Wakes up another thread, suspends the integrator thread temporarily.
Also sets the current level and status message.
level | the current level | |
sublevel | the current sublevel | |
msg | a message or null |
Implemented in gridripper::amr1d::AutoAMRCore.
boolean gridripper::amr1d::AMRCore::getSubstepMonitoring | ( | ) | [inline] |
Gets substep monitoring mode.
void gridripper::amr1d::AMRCore::setSubstepMonitoring | ( | boolean | fm | ) | [inline] |
Sets substep monitoring mode.
fm | true to monitor the state frequently, false to monitor only before base grid integration steps |
int gridripper::amr1d::AMRCore::getCurrentLevel | ( | ) | [inline] |
Gets the current level.
void gridripper::amr1d::AMRCore::setCurrentLevel | ( | int | l | ) | [inline, protected] |
Gets the current level.
l | the current level. |
String gridripper::amr1d::AMRCore::getNextMessage | ( | ) | [inline] |
Gets the current state description.
void gridripper::amr1d::AMRCore::setNextMessage | ( | String | msg | ) | [inline, protected] |
Gets the current state description.
msg | the current state's description |
Grid gridripper::amr1d::AMRCore::getBaseGrid | ( | ) | [inline] |
Gets the base grid.
double gridripper::amr1d::AMRCore::getDeltaT0 | ( | ) | [inline] |
Gets the default time step on the base grid.
double gridripper::amr1d::AMRCore::getDeltaT | ( | ) | [inline] |
Gets the current time step on the base grid.
boolean gridripper::amr1d::AMRCore::isCurrentDeltaT0Computed | ( | ) | [inline] |
Is the current time step computed?
true
if it is computed automatically, false
if determined in the input file double gridripper::amr1d::AMRCore::getDeltaT | ( | double | dt, | |
int | l | |||
) | [inline] |
Gets the time step on the specified level.
dt | the base time step | |
l | the level |
void gridripper::amr1d::AMRCore::coarseStepped | ( | double | t | ) | [inline, protected] |
This method is called immediately after each coarse time step on the base grid, before refined grid updates.
t | the mean time of the last time step |
Reimplemented in gridripper::amr1d::AutoAMRCore.