Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(vectors): vector plots when stresses applied along boundaries (#817
) * feat(postprocessing): add get_extended_budget() and get_specific_discharge() * Add new function get_extended_budget() to get the correct flow rate across cell faces when stresses are applied along boundaries. * Add new function get_specific_discharge() to get the correct specific discharge vector including at boundary cells. * Deprecate centered_specific_discharge() function in module plotutil since the new get_specific_discharge() function just gives more flexibility (the function is kept to ensure backward compatibility). * Add autotests for the new functions (t070). * fix(PlotMapView): fix minor bugs in PlotMapView * Fix squeeze of wrong axis in particular situations * Make plot_discharge() return the quiver generated by plot_specific_discharge() * feat(PlotMapView, plotutil): deal with nan values * Make it such that nan values are not plotted * fix(testunitcbc.py): fix bug in examples/Testing/testunitcbc.py The ipackcb option was not provided to the LPF package, so the cell-by-cell flow terms could not be loaded. Fix it. * feat(PlotMapView, PlotCrossSection): add plot_vector() functions * Add new plot_vector() function in both PlotMapView and PlotCrossSection classes to plot any vector (typically specific discharge). This function is meant to replace both plot_specific_discharge() and plot_discharge(). It makes the code both more concise and more generic (can plot any vector). * Deprecate plot_specific_discharge() and plot_discharge() functions (but keep them to ensure backward compatibility). * Add tests for the new functions. * Fix several tests for non-closed figures (close them). * docs(multiple files): fix code documentation Fix a few errors, inaccuracies and typos in code documentation. * refactor(discretization): homogenize assignment of _grid_type The _grid_type attribute was not assigned in the same way for all grid types. Make it more homogeneous. Also remove redundant grid_type() function in UnstructuredGrid. * fix(ModflowOc): fix small error in unitnumber vector The unitnumber vector in __init__() was wrong (too many zeros padded at the end). This error was without consequence, but still better fixed.
- Loading branch information