What a block is. A TaqSim model is a chain of boxes, and each box does one thing with water: it brings it in, carries it, splits it, stores it, uses it or takes it out of the story. A box never decides anything by itself; it only moves water. The demo below has ten boxes of seven kinds: a river, a canyon, a headworks, a canal, a reservoir, an outlet splitter, a farm, a turbine and two places where the water leaves. The full Zarafshan model is made of the same kinds, only more of them.
What a rule card is. Every box that has a choice to make carries a small piece of Python that tells it what to do each month: how much to send which way, how much to let out of the valve, how much is lost. That piece of code is the block's rule, and this page shows it verbatim when you click the block. Five of the rules contain a number you can turn; those numbers are the five sliders.
What to watch. Pick a month, or press Play, and watch the width of the arrows: that is how much water each edge carries in that month, in Mm³. The reservoir shows how full it is, the farm whether it got all it needs, the turbine whether water spills past its gate. Click any block for its card: the analogy, the rule, this month's numbers and a one-line balance. At the bottom the whole year adds up: what the river brought equals where it all went. Every number was computed by TaqSim in advance; nothing is simulated in the browser.
Что такое блок. Модель TaqSim — это цепочка коробок, и каждая коробка делает с водой одно: приносит её, переносит, делит, хранит, использует или выводит из рассказа. Коробка сама ничего не решает, она только двигает воду. В демонстрации ниже десять коробок семи видов: река, ущелье, гидроузел, канал, водохранилище, разделитель выпусков, поле, турбина и два места, где вода уходит. Полная модель Зарафшана состоит из тех же видов, только их больше.
Что такое карточка правила. Каждая коробка, которой есть что решать, несёт маленький кусок кода на Python, который говорит ей, что делать каждый месяц: сколько отправить в какую сторону, сколько выпустить через задвижку, сколько теряется. Этот кусок кода — правило блока, и эта страница показывает его дословно, когда вы нажимаете на блок. В пяти правилах есть число, которое можно крутить; эти числа — пять ползунков.
За чем следить. Выберите месяц или нажмите «Пуск» и смотрите на толщину стрелок: это сколько воды несёт каждое ребро в этом месяце, в млн м³. Водохранилище показывает, насколько оно полно, поле — получило ли оно всё, что нужно, турбина — сбрасывается ли вода мимо её затвора. Нажмите на любой блок, чтобы открыть его карточку: аналогию, правило, числа этого месяца и баланс в одну строку. Внизу сходится весь год: сколько принесла река, столько и ушло. Все числа заранее вычислены в TaqSim; в браузере ничего не моделируется.
Tap or focus an edge for its monthly volume · Нажмите на стрелку, чтобы увидеть месячный объём
Arrow width: the water carried along that edge this month. Dashed: nothing flows. Scroll sideways to see the whole system →
Each knob is one number inside one block's rule. The sliders snap to the values TaqSim has run.