Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FlowBy Object #82

Open
rburghol opened this issue Jan 10, 2024 · 0 comments
Open

FlowBy Object #82

rburghol opened this issue Jan 10, 2024 · 0 comments

Comments

@rburghol
Copy link

rburghol commented Jan 10, 2024

Overview

  • Allow simulation to select values based on "if value a is < (or >) value b use value b"
    • Is a combination of "< or >" + an equation or a lookup table (the equation just resolves a value of the lookup table)
    • This is a meta-type as it could also be like a table min or max, i.e. row 1 is "a", row 2 is "b"

Data Model

  • flowby is sub-property, and is either an equation, or a lookup table depending
    • flowby
      • extends ModelLinkage (with handlers for parsing)
        • parent object simply copies the result from the children
      • inputs:
        • conditional, if present, which is a Conditional for high speed computation/comparisons (also used by HSPF special actions)
          • Verify performance on this with sample test, can we make matrix data accessors like min/max function just as fast as a hard-wired 2 input conditional?
          • Is this really a conditional which would choose one or the other or is it something that evaluates TRUE/FALSE? (we also may need a TRUE/FALSE operator)
        • if type is Equation, there are only the equation as input for value
        • if type is DataMatrix, the inputs are only the value of the DataMatrix, however, the Datamatrix child has it's inputs
      • value:
        • EquationObject
        • DataMatrix
        • If conditional is enabled
          • input is equation
          • min, max, of condition inputs
      • step_flowby - does not exist since the step_model_linkage handles assigning value to the memory slot
  • if conditional is enabled, this object is a table, if it is not enabled, it is just a linked data pass thru to the flowby subcomp
  • Conditional behavior:
    • 2 row table eqn 1) flowby, 2) alternate flowby
    • stat applied to table (must have table stat evaluation completed)
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

No branches or pull requests

1 participant