Exercises: C = 0 on the whole boundary no flux at all boundaries In these cases, make surface color plots of the concentration in the cell at different.

Slides:



Advertisements
Similar presentations
Working with Profiles in IX1D v 3 – A Tutorial © 2006 Interpex Limited All rights reserved Version 1.0.
Advertisements

How to do a print screen!. 1. Find what you want to ‘copy’ as evidence:
KompoZer. This is what KompoZer will look like with a blank document open. As you can see, there are a lot of icons for beginning users. But don't be.
Intro to modeling April Part of the course: Introduction to biological modeling 1.Intro to modeling 2.Intro to biological modeling (Floor) 3.Modeling.
Multiscale Packed Bed Reactor with Extra Dimension
Åbo Akademi University & TUCS, Turku, Finland Ion PETRE Andrzej MIZERA COPASI Complex Pathway Simulator.
475 Wall Street, Princeton NJ Introduction to PSCAD © 2012 Nayak Corporation Inc. 1.
Diffusion is the process by which molecules spread from areas of high concentratiion, to areas of low concentration. When the molecules are even throughout.
GasTurb 12 COMPONENT MAPS Copyright © GasTurb GmbH.
Let’s solve the equation: We shall use a scale to represent our equation. The variable x will be replaced with and the numbers will be represented with.
Computational Biology, Part 19 Cell Simulation: Virtual Cell Robert F. Murphy, Shann-Ching Chen, Justin Newberg Copyright  All rights reserved.
While there is a generally accepted precise definition for the term "first order differential equation'', this is not the case for the term "Bifurcation''.
Using Excel for Data Analysis in CHM 161 Monique Wilhelm.
CIS101 Introduction to Computing Week 11. Agenda Your questions Copy and Paste Assignment Practice Test JavaScript: Functions and Selection Lesson 06,
Simulation of Created Design Documentation on the simulation process of a basic injector-separation channel model design.
Partial differential equations Function depends on two or more independent variables This is a very simple one - there are many more complicated ones.
Numerical Methods for Partial Differential Equations CAAM 452 Spring 2005 Instructor: Tim Warburton.
How to Open Microsoft Word Click Start Click All Programs Click Microsoft Office Click Microsoft Word 2013.
Maxwell Control Panel Use these buttons to page forward and backward Section Two.
Epidemiology Modeling the Spread of Disease Designing and Running Experiments Modeling and Simulation Module 1: Lesson 5.
01-Intro-Object-Oriented-Prog-Alice1 Barb Ericson Georgia Institute of Technology Aug 2009 Introduction to Object-Oriented Programming in Alice.
Modeling and Animation with 3DS MAX R 3.1 Graphics Lab. Korea Univ. Reference URL :
1 CSC 221: Computer Programming I Fall 2004 Objects and classes: a first pass  software objects, classes, object-oriented design  BlueJ IDE, compilation.
Virtual Cell Satarupa Dey Alex Mogilner. What is Virtual cell? The Virtual cell (or Vcell) is a software developed by NRCAM. This software platform has.
1 iSee Player Tutorial Using the Forest Biomass Accumulation Model as an Example ( Tutorial Developed by: (
by Chris Brown under Prof. Susan Rodger Duke University June 2012
Inserting Pictures and Symbols in Word documents There are many ways to insert pictures – these are the most common methods Copy and Paste Copy and paste.
Microsoft Excel Macros & Excel Solver (IENG490)
Today we will create our own math model 1.Flagellar length control in Chlamydomonus 2.Lotka-Volterra Model.
Intro to C++. Getting Started with Microsoft Visual Studios Open Microsoft Visual Studios 2010 Click on file Click on New Project Choose Visual C++ on.
Sentaurus Introduction & Step-by-Step Manual
PDE Toolbox The Partial Differential Equation Toolbox is a Matlab based collection of tools for solving Partial Differential Equations (PDEs) on a two-dimensional.
Fall 2005 Using FrontPage to Enhance Blackboard - Darek Sady1 Using FrontPage to Enhance Blackboard 1.Introduction 2.Starting FrontPage 3.Creating Documents.
Lecture 16 Solving the Laplace equation in 2-D Remember Phils Problems and your notes = everything Only 6 lectures.
Exercise: SIR MODEL (Infected individuals do not move, they stay at home) What is the effect of diffusion? How is the behavior affected by the diffusion.
HTML H yper T ext M arkup L anguage. What is HTML? It is a programming language that Defines the format of a World Wide Web (WWW) page. It is a simple.
Click to create a Free Account! OR Login if you have your account.
Chapter 1 - Getting to know Greenfoot
Virtual Cell and CellML The Virtual Cell Group Center for Cell Analysis and Modeling University of Connecticut Health Center Farmington, CT – USA.
Flash! Macromedia Flash is the key to designing and delivering low-bandwidth animations, presentations, and Web sites. It offers scripting capabilities.
Today we will deal with two important Problems: 1.Law of Mass Action 2. Michaelis Menten problem. Creating Biomodel in Vcell we will solve these two problems.
PowerPoint Basics Tutorial 1: Objects These tutorials will introduce you to the most basic and useful functions of Microsoft PowerPoint We’re going.
CellDesigner and Virtual Cell Leang Chhun and Chanchala Kaddi Georgia Institute of Technology 29 June, 2006.
Plot the value of a single variable along an aquifer at different times.
Developing Models in Virtual Cell Susana Neves, Ph.D. 1.
L – Modelling and Simulating Social Systems with MATLAB © ETH Zürich | Lesson 3 – Dynamical Systems Anders Johansson and Wenjian.
MA354 An Introduction to Math Models (more or less corresponding to 1.0 in your book)
1.Introduction to SPSS By: MHM. Nafas At HARDY ATI For HNDT Agriculture.
Using the Microsoft Math add- in for Microsoft Word for Graphing Equations.
Hyperstudio: A Beginner’s Tutorial By Judy Swaim.
GOOGLE SITES HOW TO USE GOOGLE SITES TO CREATE A WEBSITE FOR CORNERS, STUDENT GROUPS, YOUTH CLUBS, YALI STEPHEN PERRY, IRO, GHANA OCTOBER 2014.
1 Project 2: Using Variables and Expressions. 222 Project 2 Overview For this project you will work with three programs Circle Paint Ideal_Weight What.
Aquarium Lab Series Developed by Alyce BradyAlyce Brady of Kalamazoo CollegeKalamazoo College.
Creating a Google Doc A Quick Photo Tutorial. Sign in to Google Docs If you don’t already have an account, sign up for one, it’s FREE.
Graphing in Excel X-Y Scatter Plot SCI 110 CCC Skills Training.
JavaScript 101 Lesson 6: Introduction to Functions.
BENG/CHEM/Pharm/MATH 276 HHMI Interfaces Lab 2: Numerical Analysis for Multi-Scale Biology Modeling Cell Biochemical and Biophysical Networks Britton Boras.
My Super Cool Room Plan By:. Directions: For this activity, you will be designing your dream bedroom! You will shop online at Ikea.com.Ikea.com 1.After.
McGraw-Hill/Irwin The Interactive Computing Series © 2002 The McGraw-Hill Companies, Inc. All rights reserved. Microsoft Excel 2002 Using Macros Lesson.
Virtual Cell How to model reaction diffusion systems.
© ETH Zürich | L – Modeling and Simulating Social Systems with MATLAB Lecture 3 – Dynamical Systems © ETH Zürich | Giovanni Luca.
Start up the RTTOV GUI type: rttovgui Class01,trd00, 2tDQohR,
Maxwell 3D Transient.
Tessellation and prints
Today we will deal with two important Problems:
File Upload.
Introduction to Programming
Predicting the Future To Predict the Future, “all we have to have is a knowledge of how things are and an understanding of the rules that govern the changes.
Running a Java Program using Blue Jay.
Introduction to Programming
Presentation transcript:

Exercises: C = 0 on the whole boundary no flux at all boundaries In these cases, make surface color plots of the concentration in the cell at different moments of time, learn how to make line plots, determine how fast the concentration spreads, and in general think about the meaning of the results.

Exercise 1: Create a Biomodel like this An elliptical cell with concentration confied somewhere inside it.

Create this Geometry (2D analytic). Think how to create geometry. Or if you can not Use shared Geometry from my account File  Open  Geometry  Shared Geometries  Satarupa  ellipse_diff  click See what I did to create this geometry. Save this geometry. It will be saved in your Geometry document.

Application (deterministic) Structure Mapping Initial Conditions (concentration confied inside the ellipse and C=0 at the whole boundary) Save the Model Simulation Now you know all the steps:

Structure Mapping: Value boundary condition for the ellipse

Initail Condition: concentration is confined some where inside the ellipse

Results: For t=3.4 sec For t=0 sec For t=10.0 sec For t=22.3 sec

For t=10.0 sec Spatial plot: For t=2.5 sec For t=28.1 sec

Time plot:

Play with your Model: 1.Change the Difussion Constant. See how fast equllibrim occurs. 2.Make the source concentration a point, see what happens. 3.Now you change the geometry, Create a new one (big or small), see the results

Exercise 2: Diffusion in this geometric structure with concentration in one of the circles Consider this structure as a cell in ECM Your Biomodel will look like this

Create this Geometry (2D analytic). Think how to create geometry. Or if you can not Use shared Geometry from my account File  Open  Geometry  Shared Geometries  Satarupa  2circle_rectangle  click See what I did to create this geometry. Save this geometry. It will be saved in your Geometry document.

1.Application (deterministic) 1.Structure Mapping 2.Initial Conditions 3.Save the Model 4.Simulation Now you know all the steps:

Structure Mapping:

concentration is confined some where inside one of the circles and No Flux BC Initial condition

Results: For t=0 sec For t=4.9 sec For t=60 secFor t=194.6 sec For Diffusion Constant =1

Diffusion constant = 10 For t= 52.9sec For t= 77.4sec

Line plot: Diffusion Constant =10 For t= 80.6sec For t= 41.9sec For t= 12.4sec For t= 1.6sec

Play with your Model: 1.Change the Difussion Constant. See how fast equllibrim occurs. 2.Make the source concentration a point, see what happens. 3.Now you change the geometry, Create a new one (big or small), see the results

Diffusion - Reaction Now we will study There will be a diffusion of concentration from left wall of the box to the right wall and inside this box concentration is decaying with a rate r (say). That is, Now we will see results of diffusion-reaction in Vcell

File  open  BioModel  model name (find out the model with diff in box which you did during last lab ) Select the compartment and right click to get this document then click Reactions.. Now we will use any of our old models of diff in Box from last lab Hint: We will modify this model -- Now save this model with a new name to study diffusion-Reaction.

In the reaction window use Reaction tool and line tool to set reaction. It will look like this Note: there is no other reactant. C is decaying itself. So we set the reaction like this.

ClickIn the reaction window to get Reaction kinetic editor. 1.Set the reaction General 2. Put the value of the constant r =0.5 Close the reaction kinetic editor window. Save the model with a name.

Set Boundary condition Go to initial condition

Save the Model  See the Math Model  Run Simulation. Reaction and Diffusion

R=0.5, D= 10, t=0.9R=0.5, D= 10, t=8.9

R=1, D= 10, t=2 R=1, D= 10, t=10

Diffusion-Reaction in an elliptical cell with concentration confied somewhere inside it. We can use our previous model and change it a bit to see the result of Diffusion-Reaction. Open your saved Ellipse_diffusion model. Now go to File  Save as..  with a new name (diff_reac_ellipse, say) So, this way we can save time and monotonous jobs !!!

Now we set the Reaction same as before: Save the Model.

Initial Condition: concentration is confined some where inside the ellipse like before Save the Model and See the Math Description Set no flux Boundary condition in structure mapping section.

See how Diffusion and Reaction are described in Math Model Reaction-Diffusion Inside the ellipse Note c is a Function

Results: r=0.3, D= 10, t=0.1 r=0.3, D= 10, t=1 r=1, D= 1, t=1.1

Exercise 1 (double source): No flux on the whole boundary Save previous ellipse model with a new name !!!! Only difference is declaring Initial Condition, where you have to set two sources of concentration.

Initial Condition for two sources

For r=1, D=1

Now we will write our Math Model for solving PDEs Lotka-Volterra Model with diffusion in 2D space with no Flux BC D R and D W are diffusion constants for Rabbit and Wolf growth predation Deathgrowth

Start file  new  MathModel  Spatial Then you have to choose a geometry. For L-V model just consider a box. Imagine this Box as the Jungle. No Flux BC means animals must stay inside it.

This Window will pop up Here we will write pde.

Open your old Lotka –Volterra model (ODE) and copy paste all constants. Add diffusion rates as constant, like Constant W_N_diffusionRate 0.2; Constant R_N_diffusionRate 0.2; Then copy-Paste VolumeVariables and Functions

CompartmentSubDomain subVolume1 { } In this section we will write PDEs for Rabbit and wolf. CompartmentSubDomain subVolume1 { BoundaryXm Flux BoundaryXp Flux BoundaryYm Flux BoundaryYp Flux PdeEquation R_N { BoundaryXm 0.0; BoundaryXp 0.0; BoundaryYm 0.0; BoundaryYp 0.0; Rate J_predation; Diffusion R_N_diffusionRate; Initial R_N_init; } Change Flux from value No flux BC Similarly write down the equations for Wolf Predation rate Diffusion rate

PdeEquation W_N { BoundaryXm 0.0; BoundaryXp 0.0; BoundaryYm 0.0; BoundaryYp 0.0; Rate J_wolfgrowth; Diffusion W_N_diffusionRate; Initial W_N_init; } Wolf equation--- Click Apply Changes  Simulation  Run  Save the Model Click Equation view to see the equations.

Lotka-Volterra spatial MathModel --

Run the simulation for t=10 sec, time step=0.01, See the results.. Here we have thought that rabbits and wolves are mixed up in jungle.... Increase the time and see how number of Rabbits and wolves chages. Rabbit at t=4.25 wolf at t=4.25

You can play with with it, changinging different parameters Time Plot Rabbit : a=10, c=5 D R =0.2 Wolf : a=10, c=5 D W =0.2 Now, consider Rabbits and wolves live in two different places in Jungle save this model with a new name. File  save as..(a new name to modify it)

Modify the code: Cut the Constant declaration for initial Rabbit and Wolf. Constant d 1.0; Constant c 1.0; Constant b 1.0; Constant a 1.0; Constant W_N_diffusionRate 0.2; Constant R_N_diffusionRate 0.2; VolumeVariable R_N VolumeVariable W_N Function J_predation ((a * R_N) - (R_N * b * W_N)); Function J_wolfgrowth ((R_N * d * W_N) - (c * W_N)); Function R_N_init (10.0 * (((( x) ^ 2.0) + (y ^ 2.0)) < 25.0)); Function W_N_init (5.0 * (((( x) ^ 2.0) + (( y) ^ 2.0)) < 25.0)); Rabbits and Wolves must be described as Functions not as Constants Only change: last two lines in Fuction declaration

New MathModel looks like --

Rabbits and wolves at different times At t=0 At t=.275 growth At t=1.989 decay At t=0.16 decay At t=.591 growth At t=0 Rabbit wolf

Apply Changes—run simulation T=10 sec Timesteps=0.001 a= 10.0 c=5.0 Edit diffusion rates 0.5 for rabbits and wolves. Rabbits, t=3.37Wolves, t=3.37

1.Change diffusion rate 2. Change growth and death rate of Rabbit and wolf 3. Modify the positions of rabbit and wolf 4. Run for different time. In these two Models edit different parameters and try to think what is Happening and why? Rabbit at t=5.806wolft at t=5.806

Fitzhugh-Nagumo system with voltage (ions) spreading along the axon

Create 2D analytic geometry. Set size x=1, Y= 0.5, origin at (0.0). Save it with a name.

1.Copy the constants from the old F-N model (ODE model) and paste, cut Constant V_init, because V is now a sptial variable, i.e. a Function 2. Constant V_diffusionRate ; 3. Copy & paste VolumeVariable and Function.Add new function for V_init. These are condition for our new system: Go file  new  math Model  Spatial  click the geometry you just created

We will set PDE and ODE here— CompartmentSubDomain subVolume1 { Priority 0 BoundaryXm Flux BoundaryXp Flux PdeEquation V { BoundaryXm 0.0; BoundaryXp 0.0; Rate J1; Diffusion V_diffusionRate; Initial V_init; } OdeEquation C { RateJ2; Initial C_init; } Click Apply changes. We have 1 ODE for C

The code looks like -

Click equation viewer -- Close this window and click simulation

Run simulation for t=100, I=0, 0.05, 0.2 can you increase parameter I and get periodic firing?

For I=0.0V at t=0.0C at t=0.0 Time plot CTime plot V

Time plot for V with I= 0.05 Time plot for V with I= 0.2 Time plot for C with I= 0.2Time plot for C with I= 0.05

Time plot for I=0.2, t= 1000 sec V C

Exercise: SIR MODEL (Infected individuals do not move, they stay at home) What is the effect of diffusion? How is the behavior affected by the diffusion coefficient D? What if you have two ‘nests’ of infection?

Again create a math Model- Spatial for BOX geometry. 1.Copy – Paste the Constants, VolumeVariable and Functions. Add diffusionRate as constant. 2.Cut Initial concentration for infected population. We want to set infected population in a particular place. So we will declare it as Function. 3. We have no Flux BC. 4. Infected people do not move, so no diffusion for Infectected population, i.e. ODE.

Part-1

Part-2

Healthy people move arround and if they come near infected people, who are In the middle, they get sick !! What happens to Healthy Population: Time plot Line plot S_init=9.0,D= 1.0

Infected popultion stays at the middle, see how the concentration Changes as you increase the time. Line plot, t=.3 Time plot Line plot, t= 10

Recovered Population: Time plot Line plot

Now consider two Nests of infection- that is infection in two places: Save this SIR model with a new name to modify it. Only change  Function I_init ((((x-5)^2 + y^2) < 1 ) || (((x-5)^2 + (y-10)^2) < 1 )) *0.2 ; It specifies two two places of infected population with the concentration 0.2 That‘s all !!!

Susceptible (D=1): Line plot Time plot

Infected Time plot Line plot

Recovered:

When Diffusion rate =0 If healthy people dont move. Nothing happens outside the infected region Infection becomes epidemic in the infected region Recovered