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.
Is it possible to adjust the HCOF and RHS coefficients of an existing boundary condition package? I've tried this using
set_advanced_varat the start of the outer iteration loop, but when callingsolve()the coefficients are overwritten by the CF & FC subroutines (see also #30). Is there a way to prevent thesolve()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.