Strategy python
From KratosWiki
(Difference between revisions)
Line 1: | Line 1: | ||
functions in strategy_python are descibed here | functions in strategy_python are descibed here | ||
− | == | + | == Initialize == |
calls ''Initialize'' and ''InitializeElements'' of the ''Scheme'' | calls ''Initialize'' and ''InitializeElements'' of the ''Scheme'' | ||
*''Initilize'' is intended to be called just once when the strategy is initialized | *''Initilize'' is intended to be called just once when the strategy is initialized | ||
− | *''InitializeElements'' calls Initialize function of the elements | + | *''InitializeElements'' calls [[Initialize]] function of the elements |
==[[Solve]]== | ==[[Solve]]== |
Revision as of 08:16, 12 March 2008
functions in strategy_python are descibed here
Initialize
calls Initialize and InitializeElements of the Scheme
- Initilize is intended to be called just once when the strategy is initialized
- InitializeElements calls Initialize function of the elements
Solve
This function is called at every time step to solve the problem. the order of calls is as follow
- First of all it checks if Initialize is called or no so just in the first call of Solve, scheme and elements are initialized and then corresponding flag turns out to True
- initializations needed for every step is done by InitializeSolutionStep