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

Update demos to use new ats_xdmf #3

Open
ecoon opened this issue Apr 23, 2020 · 3 comments
Open

Update demos to use new ats_xdmf #3

ecoon opened this issue Apr 23, 2020 · 3 comments

Comments

@ecoon
Copy link
Contributor

ecoon commented Apr 23, 2020

A bunch of the jupyter notebooks refer to ats/tool/utils scripts that need to go away (see amanzi/ats#41 ) and need to be replaced with ats_xdmf, which should simplify a lot of the code for plotting output in these notebooks.

@banesullivan
Copy link

I may be able to help (perhaps just for a demo or two) on this. Is all of the needed code to reproduce the routines currently called in the notebooks present in the ats_xdmf module (I imagine some matplotlib routines will still need to be written)?

What exactly will it look like to do this conversion?

@ecoon
Copy link
Contributor Author

ecoon commented Apr 23, 2020

I believe so, and yes, matplotlib still required -- ats_xdmf will get you the data in a sane format for most problems. That file is better documented than most of the rest of the python codebase.

Effectively you'd create a VisFile instance (one for each domain, so for the problems you're looking at, probably 2, surface + the "default" domain that is the subsurface. Then call loadMesh(), after which getArray() will return the output data in a sane shape/format numpy array. Visualizing that array is up to you (and likely done in the .ipynb files anyway).

@ecoon
Copy link
Contributor Author

ecoon commented Sep 29, 2021

Most of these are done! Need to do a quick check and will close.

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

2 participants