mountaindust / VisIt_Macrophyte

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Analyze IBAMR data via VisIt/Python

This code is not yet ready for public consumption, and is not general in any way. It only properly runs on my computer to parse the Macrophyte data.

Parsing IBAMR data into average velocities

  • You must be running Python 2.7 to parse data from IBAMR.
  • You must have VisIt installed
  • You must edit the Python file with the correct system path to the VisIt lib/site-packages folder on your computer

collect_avgs_py27.py is for parsing a single IBAMR simulation collect_avgs_loop.py is for looping over several IBAMR simulations, parsing each in turn

All averages and dp/dx are stored in the folder MacrophyteAvgs.

Visualizing the averages

This can be done in Python 3 using plot_avgs.py. Python 2 may work too, but I haven't tried it.

This is a bit hacky at the moment, but you should import plot_avgs into an IPython session and then run its functions from there. The good news is that each individual function is decently documented, so it shouldn't be too difficult to find your way from there. Loading of avg data is done automatically based on the paramters you pass.

About

License:GNU General Public License v3.0


Languages

Language:Python 100.0%