A Simulation object is a special Model which runs a sequence of
Models.
|
__getitem__(self,
i)
Returns the i-th model. |
|
|
|
__init__(self,
models=[ ] ,
**kwargs)
Initiates a simulation from a list of models. |
|
|
|
__len__(self)
Returns the number of models. |
|
|
|
__repr__(self)
Returns a string representation of the Simulation. |
|
|
|
__setitem__(self,
i,
value)
Sets the i-th model. |
|
|
|
__str__(self)
Returns Simulation as a string. |
|
|
|
checkModels(self,
models,
hash)
Returns a list of (model, parameter, target model) if the parameter
of model is linking to the target_model which is not in the list of
models. |
|
|
|
|
|
|
|
doInitialStep(self)
Performs an iteration step in the initialization step for all models. |
|
|
|
|
|
doStep(self,
dt)
Executes the iteration step at a time step for all models: |
|
|
|
|
|
|
|
finalize(self)
Returns True if any of the models is to be finalized. |
|
|
|
getAllModels(self)
Returns a list of all models used in the Simulation including
subsimulations. |
|
|
|
|
|
iterModels(self)
Returns an iterator over the models. |
|
|
|
run(self,
check_pointing=None)
Runs the simulation by performing essentially: |
|
|
|
setUp(self)
Performs the setup for all models. |
|
|
|
|
|
|
|
toDom(self,
esysxml,
node)
toDom method of Simulation class. |
|
|
Inherited from ParameterSet :
__delattr__ ,
__iter__ ,
checkLinkTargets ,
declareParameter ,
declareParameters ,
releaseParameters ,
showParameters ,
writeXML
Inherited from LinkableObject :
__getattr__ ,
__setattr__ ,
getAttributeObject ,
hasAttribute ,
trace
Inherited from object :
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__
|