Skip to content

Latest commit

 

History

History
19 lines (13 loc) · 1.5 KB

README.md

File metadata and controls

19 lines (13 loc) · 1.5 KB

water_gas

This Python 2.7 script uses the numerical method-of-lines to model gas injection into a one-dimensional system of variable geometry with a mobile, albeit unsaturated, water phase.

The script requires numpy, scipy, and matplotlib libraries.

The following tab-delimited input files are required:

  • ICs.txt - initial conditions
  • grid.txt - spatial discretization
  • mat_list.txt - material distribution within column
  • materials.txt - physical properties of porous media
  • sources.txt - source/sink terms
  • times.txt - output times

More background information can be found here: https://numericalenvironmental.wordpress.com/2016/07/11/multiphase-flow/

I'd appreciate hearing back from you if you find the script useful. Questions or comments are welcome at walt.mcnab@gmail.com.

THIS CODE/SOFTWARE IS PROVIDED IN SOURCE OR BINARY FORM "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.