Skip to content

Conversation

@quffaro
Copy link
Collaborator

@quffaro quffaro commented Jun 26, 2025

This PR introduces an extension of Stock and Flow with auxiliary variables, an object which acts as a functions of quantities of stocks connected to it by variable links. The auxiliary variable acts on flows by a flow link. This effort implements the theory and frontend partially completed in #537, whereas the simulation work will be punted to a new PR.

@quffaro quffaro requested a review from epatters June 26, 2025 16:30
@quffaro quffaro force-pushed the cm/stockflow-dynvar branch from 4914bbd to 71cc0ea Compare June 30, 2025 22:14
@github-actions
Copy link

github-actions bot commented Jun 30, 2025

@quffaro quffaro marked this pull request as ready for review July 1, 2025 04:12

/// Simulates the mass-action system derived from a model.
#[wasm_bindgen(js_name = "mass_action")]
pub fn mass_action(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove for now until we have an idea about semantics for system structure diagrams with auxiliary: the existing mass action semantics will not use the auxiliary variables at all.

ustr("Outflow"),
TabObType::Basic(x),
th.tabulator(th.hom_type(TabObType::Basic(x))),
);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As we discussed today, these "inflows" and "outflows" are actually new kinds of links. We decided to punt on inflows/outflows until our theories can be souped up to handle terminal objects.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants