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

Improvement: need to auto-detect the number of outlets and adjust the state mappings accordingly. #102

Open
rburghol opened this issue Jul 8, 2024 · 0 comments

Comments

@rburghol
Copy link

rburghol commented Jul 8, 2024

SPF Outflow Flags and Destinations

  • HSPF
    • Has up to 5 "outlet" values to simulate flow coming out of a reach
    • The UCI can supply up to 5 "flow" outlet values from the FTABLE (ODFVFG in HYDR-PARM1)
    • The UCI can also indicate up to 5 "diversion" outlets coming from specl or mass-link or WDM (ODGTFG in HYDR-PARM1)
    • Both "flow" and "diversion" values can be specified for the same outlet
    • The FUNCT values indicate how to sort out multiple values for a single outlet: min, max or sum
  • CBP has 3 "out" paths from a reach:
    • Stream Flow out: Column 4 on the FTABLE is the natural outflow routed to O3
    • Muni WD: Element 1 of the OUTDGT array (which is mapped from the WDM)
    • Ag WD: Element 2 of the OUTDGT array (which is mapped from the WDM)
  • Currently, the code auto-detects how many OUTDGT elements there are and maps them as needed, but only goes up to 3.

RCHRES
...

  HYDR-PARM1
    RCHRES  Flags for HYDR section                    ***
    # -  #  VC A1 A2 A3  ODFVFG for each     ODGTFG for each *** FUNCT  for each
            FG FG FG FG  possible   exit     possible   exit *** possible   exit
                           1  2  3  4  5       1  2  3  4  5 ***   1  2  3  4  5
            VC A1 A2 A3   V1 V2 V3 V4 V5      G1 G2 G3 G4 G5 ***  F1 F2 F3 F4 F5
    1        0  1  1  1    0  0  4  0  0       1  2  0  0  0       0  0  0  0  0
  END HYDR-PARM1
@rburghol rburghol changed the title Bug: need to auto-detect the number of outlets and adjust the state mappings accordingly. Improvement: need to auto-detect the number of outlets and adjust the state mappings accordingly. Jul 8, 2024
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