Converter

API Documentation for the Biflow class
Keywords

system dynamics, bptk, bptk-py, python, business prototyping

Converter

Converter Constructor

Converter(model, name, function_string=None)

A converter in an SD DSL model

A converter either sits at the boundary of the system — its value is not determined by the system itself — or it derives a value from other parts of the system at any instant. Unlike a stock it has no memory: its value depends only on the current timestep.

Create one through the model: model.converter("birth_rate").

food_per_person = model.converter("foodAvailablePerPerson")
food_per_person.equation = food_available / population

Inherited from Element

Everything else — equation, function_string, plot() and the arrayed-element API — comes from Element, where it is documented once for all element types.