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. | |
| gridripper::amr1d::ParameterParser::ParameterParser | ( | Properties | props | ) | [inline] |
Creates a parameter parser using a property map.
| props | the property map |
| void gridripper::amr1d::ParameterParser::parse | ( | URL | inputFileURL | ) | throws InitCond.Exception, IllegalArgumentException, IOException [inline] |
Parses 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.
| String gridripper::amr1d::ParameterParser::getTimeFormatString | ( | ) | throws InitCond.Exception [inline] |
Returns a format string suitable for printing the time coordinate.
| String gridripper::amr1d::ParameterParser::getParameter | ( | String | key | ) | [inline, protected] |
Gets a parameter.
| key | the parameter name |
| boolean gridripper::amr1d::ParameterParser::debug = false |
Debug messages enabled.
The partial differential equation.
Initial conditions.
| boolean gridripper::amr1d::ParameterParser::constraintForced = false |
Constraints equations enforced on each time slice.
Time integration method.
| String gridripper::amr1d::ParameterParser::dtdx = "1" |
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.
| boolean gridripper::amr1d::ParameterParser::endless = true |
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.
| String gridripper::amr1d::ParameterParser::energyFormatStr = "%13.6e" |
Energy format string in case of text output.
| boolean gridripper::amr1d::ParameterParser::energyWritten = true |
Energy is saved if true.
| boolean gridripper::amr1d::ParameterParser::writeIntq = false |
Write an intq file if enabled.
| String gridripper::amr1d::ParameterParser::intqHeaderFormat = null |
Format string for the header of the intq file.
| String gridripper::amr1d::ParameterParser::intqFormat = null |
Format string for the intq file.
Delay between two steps in milliseconds.
| double [] gridripper::amr1d::ParameterParser::breakpoints = null |
Times at which the simulation must pause.
Displayed components.
Maximum number of time slice to store in memory.
1.5.6