| Home | Trees | Index | Help |
|---|
| Package esys :: Package escript :: Module modelframe :: Class Model |
|
object --+
|
LinkableObject --+
|
ParameterSet --+
|
Model
Bathymetry,
ConstrainValue,
DarcyFlow,
LinearCombination,
Messenger,
OceanRegion,
OceanRegionCollector,
ODETEST,
Probe,
Sequencer,
Simulation,
SteadyIncompressibleFlow,
SurfMovie,
TemperatureAdvection,
TsunamiInDeepWater,
TsunamiSource,
Visualization
doInitialization()
while not finalize():
dt=getSafeTimeStepSize(dt)
doStepPreprocessing(dt)
while not terminateIteration(): doStep(dt)
doStepPostprocessing(dt)
doFinalization()
where doInitialization, finalize,
getSafeTimeStepSize, doStepPreprocessing,
terminateIteration, doStepPostprocessing,
doFinalization are methods of the particular instance of a
Model. The default implementations of these methods have to be
overwritten by the subclass implementing a Model.
| Method Summary | |
|---|---|
Creates a model. | |
__str__(self)
| |
Finalizes the time stepping. | |
Initializes the time stepping scheme. | |
Executes an iteration step at a time step. | |
Finalalizes the 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 | |
| Class Variable Summary | |
|---|---|
float |
UNDEF_DT = 1.0000000000000001e+300 |
| Inherited from LinkableObject | |
count |
number_sequence = <itertools.count object at 0x401ff100>
|
| Instance Method Details |
|---|
__init__(self,
parameters=[],
**kwarg)
|
doFinalization(self)Finalizes the time stepping. This function may be overwritten. |
doInitialization(self)Initializes the time stepping scheme. This function may be overwritten. |
doStep(self, dt)Executes an iteration step at a time step.
|
doStepPostprocessing(self, dt)Finalalizes the time step. dt is the currently used time step size. This function may be overwritten. |
doStepPreprocessing(self, dt)Sets up a time step of step size dt. This function may be overwritten. |
finalize(self)Returns False if the time stepping is finalized. This function may be overwritten. |
getSafeTimeStepSize(self, dt)Returns a time step size which can safely be used.
|
terminateIteration(self)Returns True if iteration on a time step is terminated. |
toDom(self, document, node)toDom method of Model class
|
writeXML(self, ostream=<epydoc.imports._DevNull instance at 0x402244cc>)Writes the object as an XML object into an output stream.
|
| Class Variable Details |
|---|
UNDEF_DT
|
| Home | Trees | Index | Help |
|---|
| Generated by Epydoc 2.1 on Thu Apr 27 11:16:24 2006 | http://epydoc.sf.net |