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

hfb6.export function issue? #1114

Closed
Matt-Webb1 opened this issue May 19, 2021 · 4 comments · Fixed by #1249
Closed

hfb6.export function issue? #1114

Matt-Webb1 opened this issue May 19, 2021 · 4 comments · Fixed by #1249
Assignees
Labels
enhancement in progress enhancement in progress
Milestone

Comments

@Matt-Webb1
Copy link

Hi,

I wondered if anyone could tell me if the hfb6.export function is working correctly? I can use .export on a number of the packages without issue (e.g. DIS/BAS/RIV/UPW/GHB). It is listed as an available function of hfb6 but I can't get it to export anything. E.g.:

model_ws = os.path.join("model_data")
output_folder = os.path.join('output')
ml = flopy.modflow.Modflow.load(model.nam, model_ws=model_ws, check=False)

# This creates the RIV folder and exports the River BCs to a .vtu file
river_elev_output = os.path.join(output_folder, 'RIV')
ml.riv.export(river_elev_output, fmt='vtk')

# This creates the folder HFB but does not export anything
hfb_output = os.path.join(output_folder, 'HFB')
ml.hfb6.export(hfb_output, fmt='vtk')

Thanks!

Matt

@langevin-usgs
Copy link
Contributor

langevin-usgs commented May 20, 2021

Sorry, but it does not look like HFB information can be written to vtk yet. Ideally, the vtk representation should be represented with planes that correspond to the shared cell face where the hfb is located. Will keep this issue open as a reminder to implement.

@Matt-Webb1
Copy link
Author

Thanks! I will try to see if I can use the HFB data to generate the required vertices etc to create the VTK file.

@jdhughes-usgs jdhughes-usgs added this to the 3.3.5 milestone Aug 4, 2021
@jdhughes-usgs jdhughes-usgs added the in progress enhancement in progress label Aug 4, 2021
@jdhughes-usgs
Copy link
Contributor

The VTK export functionality is currently being revised. We may be able to implement this as part of that effort.

Also see #873

@jlarsen-usgs
Copy link
Contributor

@jdhughes-usgs, @Matt-Webb1

I am working on a hfb export method for VTK as part of the Vtk class overhaul.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement in progress enhancement in progress
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants