| Home | Trees | Index | Help |
|---|
| Package esys :: Package modellib :: Module probe :: Class Probe |
|
object --+
|
LinkableObject --+
|
ParameterSet --+
|
Model --+
|
Probe
Tests values against a expression which may depend on time and spatial coordinates.
It prints out the relative error in each time step and the maximum relative error over all time steps at the end.Warning: this class use python's eval function!!!!!
| Method Summary | |
|---|---|
Set up parameters | |
Print out the maximum error. | |
Initializes values | |
Finalalizes the time step. | |
| Inherited from Model | |
| |
Executes an iteration step at a time step. | |
Sets up a time step of step size dt. | |
Returns False if the time stepping is finalized. | |
Returns a time step size which can safely be used. | |
Returns True if iteration on a time step is terminated. | |
toDom method of Model class | |
Writes the object as an XML object into an output stream. | |
| Inherited from ParameterSet | |
Removes the attribute name. | |
Creates an iterator over the parameter and their values. | |
| |
Declares a new parameter(s) and its (their) initial value. | |
Declares a set of parameters. | |
(Class method) | |
Removes parameter name from the paramameters. | |
Returns a descrition of the parameters. | |
| Inherited from LinkableObject | |
Returns the value of attribute name. | |
Sets the value for attribute name. | |
Return the object stored for attribute name. | |
Returns True if self as attribute name. | |
If debugging is on, print the message, otherwise do nothing | |
| Inherited from object | |
x.__getattribute__('name') <==> x.name | |
x.__hash__() <==> hash(x) | |
T.__new__(S, ...) -> a new object with type S, a subtype of T | |
helper for pickle | |
helper for pickle | |
| Instance Variable Summary | |
|---|---|
expression (in): expressions defining expression values to test against. | |
line_tag (in): tag to be used when printing error | |
max_error (out): maximum error | |
t (in): current time | |
t_max (out): time of maximum error | |
value (in): values to be tested | |
| Class Variable Summary | |
|---|---|
| Inherited from Model | |
float |
UNDEF_DT = 1.0000000000000001e+300 |
| Inherited from LinkableObject | |
count |
number_sequence = <itertools.count object at 0x401ff100>
|
| Instance Method Details |
|---|
__init__(self,
debug=False)
Set up parameters
|
doFinalization(self)Print out the maximum error.
|
doInitialization(self)Initializes values |
doStepPostprocessing(self, dt)Finalalizes the time step. dt is the currently used time step size. This function may be overwritten.
|
| Instance Variable Details |
|---|
expression (in)expressions defining expression values to test against. If None only value is reported. |
line_tag (in)tag to be used when printing error |
max_error (out)maximum error |
t (in)current time |
t_max (out)time of maximum error |
value (in)values to be tested |
| Home | Trees | Index | Help |
|---|
| Generated by Epydoc 2.1 on Thu Apr 27 11:16:11 2006 | http://epydoc.sf.net |