ENGI E1006 Percolation Handout

Similar documents
Illinois Geometry Lab. Percolation Theory. Authors: Michelle Delcourt Kaiyue Hou Yang Song Zi Wang. Faculty Mentor: Kay Kirkpatrick

Activity 10. Coffee Break. Introduction. Equipment Required. Collecting the Data

Predicting Wine Quality

SPLENDID SOIL (1 Hour) Addresses NGSS Level of Difficulty: 2 Grade Range: K-2

OALCF Tasks for the Apprenticeship Goal Path: Prepared for the Project,

Thought: The Great Coffee Experiment

AWRI Refrigeration Demand Calculator

OALCF Task Cover Sheet. Goal Path: Employment Apprenticeship Secondary School Post Secondary Independence

Experimental Procedure

Economics Homework 4 Fall 2006

5 Populations Estimating Animal Populations by Using the Mark-Recapture Method

The river banks of Ellsworth Kelly s Seine. Bryan Gin-ge Chen Department of Physics and Astronomy

Lesson 11: Comparing Ratios Using Ratio Tables

STA Module 6 The Normal Distribution

STA Module 6 The Normal Distribution. Learning Objectives. Examples of Normal Curves

Lesson 4. Choose Your Plate. In this lesson, students will:

wine 1 wine 2 wine 3 person person person person person

2. What is percolation? ETH Zürich, Spring semester 2018

Washington State Snap-Ed Curriculum Fidelity for Continuous Improvement

Mini Project 3: Fermentation, Due Monday, October 29. For this Mini Project, please make sure you hand in the following, and only the following:

Novice Guide for Cuts (pot still)

Percolation Properties of Triangles With Variable Aspect Ratios

Experiment 2: ANALYSIS FOR PERCENT WATER IN POPCORN

Directions for Menu Worksheet. General Information:

Grade 7 Unit 2 Family Materials

Case Study 8. Topic. Basic Concepts. Team Activity. Develop conceptual design of a coffee maker. Perform the following:

PickYourOwn.org. Where you can find a pick-your-own farm near you!

ONE DROP OF WATER IN THE MELTED CHOCOLATE WILL CAUSE IT TO SEIZE

CS 322: (Social and Information) Network Analysis Jure Leskovec Stanford University

The Cranberry. Sample file

Molecular Gastronomy: The Chemistry of Cooking

Directions for Menu Worksheet ***Updated 9/2/2014 for SY *** General Information:

STABILITY IN THE SOCIAL PERCOLATION MODELS FOR TWO TO FOUR DIMENSIONS

Teaching notes and key

Wine-Tasting by Numbers: Using Binary Logistic Regression to Reveal the Preferences of Experts

Level 2 Mathematics and Statistics, 2016

Lesson 5. Bag a GO Lunch. In this lesson, students will:

NVIVO 10 WORKSHOP. Hui Bian Office for Faculty Excellence BY HUI BIAN

EMISSIONS ACTIVITY CATEGORY FORM YEAST LEAVENED BAKERY OVEN OPERATIONS

#611-7 Workbook REVIEW OF PERCOLATION TESTING PROCEDURES. After completing this chapter, you will be able to...

Chapter 1: The Ricardo Model

Grapes of Class. Investigative Question: What changes take place in plant material (fruit, leaf, seed) when the water inside changes state?

What Is This Module About?

Economics 101 Spring 2019 Answers to Homework #1 Due Thursday, February 7 th, Directions:

Algorithms. How data is processed. Popescu

Assignment #3: Lava Lite!!

The Dumpling Revolution

Statistics 5303 Final Exam December 20, 2010 Gary W. Oehlert NAME ID#

Online Appendix to. Are Two heads Better Than One: Team versus Individual Play in Signaling Games. David C. Cooper and John H.

Unit 2, Lesson 15: Part-Part-Whole Ratios

~ FOR IMMEDIATE RELEASE

Lesson 23: Newton s Law of Cooling

Roux Bot Home Cooker. UC Santa Cruz, Baskin Engineering Senior Design Project 2015

SECURE THERAPY. I can identify the similarities and differences between the two texts, and make some comparisons and / or contrasts

Title: Visit to Mount Sunflower. Target Audience: Preschoolers and their families. Objectives:

Assignment 60 Marks 1 March, 2018

Separations. Objective. Background. Date Lab Time Name

Vortices in Simulations of Solar Surface Convection

Economics 101 Spring 2016 Answers to Homework #1 Due Tuesday, February 9, 2016

Answering the Question

A Note on H-Cordial Graphs

Pg. 2-3 CS 1.2: Comparing Ratios. Pg CS 1.4: Scaling to Solve Proportions Exit Ticket #1 Pg Inv. 1. Additional Practice.

SENIOR VCAL NUMERACY INVESTIGATION SENIOR VCAL NUMERACY INVESTIGATION Only A Little Bit Over. Name:

Making Cookies: Problem Solving

Lesson 4 * Portion Distortion

Instant Pot Cookbook: 50 Great Pressure Cooker Recipes That Help You Stay On Track From Morning Till Night (Good Food Series) Ebooks Free

Going Strong. Comparing Ratios. to Solve Problems

Assignment 03 Portfolio

Injection, Modularity, and Testing

by Julian Stone illustrated by Joanne Renaud

DOC / KEURIG COFFEE MAKER NOT WORKING ARCHIVE

COLT 45 / MALT LIQUOR / MALT LAGER VARIATIONS By Randy Karasek

Activity Instructions

Investigation 1: Ratios and Proportions and Investigation 2: Comparing and Scaling Rates

Lesson Plans: Plant Parts

Rice Paddy in a Bucket

Gardening Newsletter Vol. 12, Issue 4 - April Roasted Asparagus

Properties of Water Lab: What Makes Water Special? An Investigation of the Liquid That Makes All Life Possible: Water!

Investigation 1: Ratios and Proportions and Investigation 2: Comparing and Scaling Rates

Chapter 5 SEPARATION OF SUBSTANCES

Recycled Seed Starters From the Trash Bin

Read & Download (PDF Kindle) Atkins Diet Recipes Under 30 Minutes Vol. 1: Over 30 Atkins Recipes For All Phases & Includes Atkins Induction Recipes

Experiment 3: Separation of a Mixture Pre-lab Exercise

Alcoholic Fermentation in Yeast A Bioengineering Design Challenge 1

Properties of Water. reflect. look out! what do you think?

CLASS SET: PLEASE DO NOT WRITE ON THIS Natural Selection: Butterflies

Crock Pot Beef Tips and Gravy

Which of your fingernails comes closest to 1 cm in width? What is the length between your thumb tip and extended index finger tip? If no, why not?

Chocolate Chip Cookies Without Brown Sugar No Baking Soda

Fractions with Frosting

0 + 1 = = = 2 + = = 3 + = = 5 + = = 8 + = = 13 + =

3 Ingredient Slow Cooker: 21 Amazing & Stupidly Simple Slow Cooker Recipes (Healthy Recipes, Crock Pot Recipes, Slow Cooker Recipes, Caveman Diet,

Ag in the Classroom Going Local

Help write the Orono Farmers' Market Item Eligibility Criteria A draft edition...for comment and editing.

Team Davis Good Foods Lesson 2: Breakfast

ARM4 Advances: Genetic Algorithm Improvements. Ed Downs & Gianluca Paganoni

How do I use Delay Brew?

THE ECONOMIC IMPACT OF BEER TOURISM IN KENT COUNTY, MICHIGAN

Copyright 2015 by Steve Meyerowitz, Sproutman

15-Annotating Plots text: Chapter ECEGR 101 Engineering Problem Solving with Matlab Professor Henry Louie

Transcription:

ENGI E1006 Percolation Handout NOTE: This is not your assignment. These are notes from lecture about your assignment. Be sure to actually read the assignment as posted on Courseworks and follow the instructions provided there. Percolation is the process of a fluid slowly traveling through a porous material. Example: If a liquid is poured on top of a layer of soil, will it manage to filter down through the soil and into what lies below? If it does we say it percolates. We can model this phenomenon using a a grid consisting of blocked and open (vacant) sites to represent the soil.!blocked site Open site " We imagine pouring a liquid onto the top of the grid and consider how it would flow through the open and blocked

sites.!blocked site Open site "!Full site If the liquid can find a path through the grid, then it percolates in this instance. There are many other applications of the percolation model beyond liquid moving through soil. The model may be used to describe gas moving through a gas mask filter, electricity through a network of resistors, natural gas through semi porous rock, and many other important phenomena. Question: Okay, so if we're supposed to be modeling some porous material with this grid, how do we determine which sites are blocked and which sites are open? Answer: We'll use randomization. Let each site have a probability of being vacant (open) or blocked. Very porous materials will have a high site vacancy probability and less porous materials will have a low site vacancy probability. Let's call this site vacancy probability p. Using a pseudorandom number generator we can generate n x n

grids for any p we're interested in. Question: So if some material has a site vacancy probability p, will a corresponding n x n grid allow percolation or not? Answer: That's the million dollar question! First of all, notice that the answer to this question will be a probability. Since we are randomly generating the grid, we could get really lucky even with a low p and end up with a grid that allows percolation. Similarly even with a very high p we could end up with a system that does not percolate. So our answer will not be yes or no but rather a percolation probability. Fine, so how do we figure that out? The only way we know how to do that is via simulation. That is, we'll generate a whole bunch of these grids and then check each one to see if they permit percolation. The fraction of grids that get percolation is our estimate for the percolation probability. In a nutshell, that's what you'll be doing in the current project. Question: How are we going to do this using Python? Answer: We will use two-dimensional numpy arrays to model a grid. We'll learn about numpy arrays and how exactly one does this in the next lecture. For now think of them as very similar to lists in Python. In fact, we could do this just using lists but it would be very inefficient and take way too much time. That's where numpy will come in. So let's break it down a bit more:

Ultimate Goal: The question we want to answer is "Given an n x n grid with site vacancy probability p, whats the percolation probability of the system? We'll ultimately answer this by generating a graph of percolation probability versus site vacancy probability. Suppose we're considering a 10 by 10 grid and consider a single point on the graph: We're given a site vacancy and we want to determine the corresponding percolation probability. Here's what you need to do: 1) Randomly generate a 2-dimensional numpy array made up of zeros and ones. Each entry in the array will be 1 with probability p. 2) Determine what the system would look like if we poured liquid on the top. (Create an array representing the one with the orange in it above.) 3) Determine if the array you made in (2) is percolating or not. (Just check to see if any of the bottom sites are filled.) 4) Repeat the process a whole bunch of times keeping track of how many times it percolates. The fraction of times it percolates is the estimate for the percolation probability. 5) Graph your results. That's it. That's all you have to do. That doesn't seem too bad, does it? Well, how do you do (2)? That is a good question. That part can be tricky. To help with all of this we will break the assignment into two parts. For Part 1

we're going to simplify step 2 by only modeling vertical percolation. That means that the liquid can only move vertically. So when you generate the flow matrix in step two, the only way a site can get filled is if it is vacant and the site above it is filled. That should make step 2 quite a bit easier. Next week will figure out how to remove this restriction and consider the more general percolation model. Here's Part 1 of your assignment below: Percolation Part 1 Write a Percolation module in Python to solve the vertical percolation problem we saw in class. Your module should make use of the functions we designed in class. Specifically: 1. Functions to read and write N x N arrays (use numpy) of binary numbers representing a grid of blocked/ open sites (from or to text files). Please use the format below for text files. 2. A function that takes one of the arrays from (1) as input and outputs an array of vacant/full sites. 3. A function that takes as input the output from (2) and outputs a boolean indicating whether the system percolates or not. 4. A function that takes as input a number between 0-1 p, an integer N, and generates a random NxN array of blocked/open sites where each site is open with probability p. This function will be useful for testing your code. 5. I have provided function definitions in the attached

percolation.py file. I have provided a main function to test your code in a separate file hw5_1.py. Your code must work with the main function I have provided. 1. For section (1) above please use the following text file format: The first row of the text file should contain the integer N. That is the number of rows and columns in the system. The next N rows should contain N 1s and 0s each separated by a space. The 0 indicates a blocked site and the 1 indicates an open site. So for example: 3 0 1 0 1 1 0 0 0 1 would represent a 3x3 system where the first row consists of a blocked site, an open site, and a blocked site. NOTE: Please make sure your code works with the main function provided on Courseworks.