gridripper::amr1d::ParameterParser Class Reference

AMR 1D parameter parser. More...

List of all members.

Public Member Functions

 ParameterParser (Properties props)
 Creates a parameter parser using a property map.
void parse (URL inputFileURL) throws InitCond.Exception, IllegalArgumentException, IOException
 Parses parameters.
double getTmax () throws InitCond.Exception
 Returns the maximum time parameter for the simulation.
String getTimeFormatString () throws InitCond.Exception
 Returns a format string suitable for printing the time coordinate.

Public Attributes

boolean debug = false
 Debug messages enabled.
PDE pde = null
 The partial differential equation.
InitCond initCond = null
 Initial conditions.
boolean constraintForced = false
 Constraints equations enforced on each time slice.
Integrator gridIntegrator = null
 Time integration method.
String dtdx = "1"
 Courant factor dt/dx.
int maxi = 0
 Maximum grid point index on base grid.
int numPointsAboveMaxX = 0
 Number of "non-physical" points above maximum x.
int maxLevel = 0
 The maximum refinement level.
Regridder regridder = new DefaultRegridder()
 The regridder method.
int refinementRatio = 2
 The refinement ratio.
AMError amError = null
 Error calculation for the mesh refinement condition.
double errorTolerance = 0
 Error tolerance.
int errorCheckFreq = 1
 Error checking frequency.
int regridFreq = 1
 Regridding frequency.
int bufferZoneSize = 4
 Size of the buffer zone.
int fileNo = -1
int maxBDataSize = -1
boolean tagFirstFile = false
boolean forceAppend = false
String dtwrite = "1"
 Inverse frequency of data writing.
String tmax_str = "1"
 Simulation must stop at the specified time.
boolean endless = true
 Simulation never stops if enabled.
int blankLines = 1
 Number of blank lines between two time slices in case of text output.
String dataFormat = "text:tx:%8.6f %8.6f:f:%+22.15e"
 Data line format string in case of text output.
String energyFormatStr = "%13.6e"
 Energy format string in case of text output.
boolean energyWritten = true
 Energy is saved if true.
PrecalculatedSolution[] xsols = null
PrecalculatedSolution exactSolution = null
boolean writeIntq = false
 Write an intq file if enabled.
String intqHeaderFormat = null
 Format string for the header of the intq file.
String intqFormat = null
 Format string for the intq file.
int delay = 0
 Delay between two steps in milliseconds.
double[] breakpoints = null
 Times at which the simulation must pause.
DisplayedComponents displayedComponents
 Displayed components.
int memorySteps = 0
 State is memorized at each n-th step, where n is the specified value.
int memoryMax = 10
 Maximum number of time slice to store in memory.

Protected Member Functions

String getParameter (String key)
 Gets a parameter.


Detailed Description

AMR 1D parameter parser.

Version:
0.5, 02/27/2009
Author:
Peter Csizmadia

Constructor & Destructor Documentation

gridripper::amr1d::ParameterParser::ParameterParser ( Properties  props  )  [inline]

Creates a parameter parser using a property map.

Parameters:
props the property map


Member Function Documentation

void gridripper::amr1d::ParameterParser::parse ( URL  inputFileURL  )  throws InitCond.Exception, IllegalArgumentException, IOException [inline]

Parses parameters.

Parameters:
inputFileURL the URL of the input file

double gridripper::amr1d::ParameterParser::getTmax (  )  throws InitCond.Exception [inline]

Returns the maximum time parameter for the simulation.

Returns:
the maximum time

String gridripper::amr1d::ParameterParser::getTimeFormatString (  )  throws InitCond.Exception [inline]

Returns a format string suitable for printing the time coordinate.

Returns:
the format string

String gridripper::amr1d::ParameterParser::getParameter ( String  key  )  [inline, protected]

Gets a parameter.

Parameters:
key the parameter name


Member Data Documentation

Debug messages enabled.

The partial differential equation.

Initial conditions.

Constraints equations enforced on each time slice.

Time integration method.

Courant factor dt/dx.

Maximum grid point index on base grid.

Number of "non-physical" points above maximum x.

The maximum refinement level.

The regridder method.

The refinement ratio.

Error calculation for the mesh refinement condition.

Error tolerance.

A mesh point needs refinement if error is larger than this value.

Error checking frequency.

Numerical error is checked in every n-th step, where n is the specified value.

Regridding frequency.

Regridding always perform in every n-th step (or earlier), where n is the specified value.

Simulation never stops if enabled.

Number of blank lines between two time slices in case of text output.

String gridripper::amr1d::ParameterParser::dataFormat = "text:tx:%8.6f %8.6f:f:%+22.15e"

Data line format string in case of text output.

Energy format string in case of text output.

Energy is saved if true.

Write an intq file if enabled.

Format string for the header of the intq file.

Format string for the intq file.

Delay between two steps in milliseconds.

Times at which the simulation must pause.

Displayed components.

Maximum number of time slice to store in memory.


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

Generated on Wed Jun 17 18:47:25 2009 for GridRipper by  doxygen 1.5.6