Strategy python

From KratosWiki
(Difference between revisions)
Jump to: navigation, search
(Solve)
(Solve)
Line 8: Line 8:
 
==Solve==
 
==Solve==
 
This function is called at every time step to solve the problem.
 
This function is called at every time step to solve the problem.
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 put True
+
*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 True

Revision as of 07:48, 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.

  • 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 True
Personal tools
Categories