| Home | Trees | Indices | Help |
|---|
|
|
object --+
|
LinkableObject --+
|
ParameterSet --+
|
Model
A Model object represents a process marching over time until a finalizing condition is fulfilled. At each time step an iterative process can be performed and the time step size can be controlled. A Model has the following work flow:
doInitialization()
while not terminateInitialIteration(): doInitialStep()
doInitialPostprocessing()
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.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from Inherited from Inherited from Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
UNDEF_DT = 1e+300
|
|||
|
|||
|
Inherited from |
|||
|
|||
Creates a model. Just calls the parent constructor.
|
|
Finalizes the time stepping. This function may be overwritten. |
Finalises the initialization iteration process. This method is not called in case of a restart. This function may be overwritten. |
Performs an iteration step in the initialization phase. This method is not called in case of a restart. This function may be overwritten. |
Initializes the time stepping scheme. This method is not called in case of a restart. This function may be overwritten. |
Executes an iteration step at a time step. dt is the currently used time step size. This function may be overwritten. |
Finalises the time step. dt is the currently used time step size. This function may be overwritten. |
Sets up a time step of step size dt. This function may be overwritten. |
Returns False if the time stepping is finalized. This function may be overwritten. |
Returns a time step size which can be safely used. dt gives the previously used step size. This function may be overwritten. |
Sets up the model. This function may be overwritten. |
|
| Home | Trees | Indices | Help |
|---|
| Generated by Epydoc 3.0.1 on Sat May 26 00:38:44 2012 | http://epydoc.sourceforge.net |