Skip to content

Adjust HCOF and RHS for an existing package #62

Description

@cneyens

Is it possible to adjust the HCOF and RHS coefficients of an existing boundary condition package? I've tried this using set_advanced_var at the start of the outer iteration loop, but when calling solve() the coefficients are overwritten by the CF & FC subroutines (see also #30). Is there a way to prevent the solve() procedure from overwriting the user-defined HCOF and RHS values?

I'm basically trying to switch some GHB's from a third-type boundary condition to a constant-flux based on a maximum-allowed flow rate by adjusting the matrix coefficients (so setting HCOF to zero and setting RHS to the maximum flux). Alternatively, I can follow the approach of the custom ET package as shown in the MODFLOW-API paper, but that involves setting up a 'new' package instead of adjusting the behaviour of an existing one.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions