Diffusion is the process by which molecules spread from areas of high concentratiion, to areas of...

48
on is the process by which molecules spread from areas of high conce s of low concentration. When the molecules are even throughout a spa alled EQUILIBRIUM Diffusion 2 2 2 2 C C C D t x y Diffusion Equation- vling this PDE we need to know initial conditions and the boundary c Where, C the concentration and D diffusion Constant.

Transcript of Diffusion is the process by which molecules spread from areas of high concentratiion, to areas of...

Page 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.

Diffusion is the process by which molecules spread from areas of high concentratiion, to areas of low concentration. When the molecules are even throughout a space – it is called EQUILIBRIUM

Diffusion

2 2

2 2

C C CD

t x y

Diffusion Equation-

For sovling this PDE we need to know initial conditions and the boundary conditions

Where, C the concentration and D diffusion Constant.

Page 2: Diffusion is the process by which molecules spread from areas of high concentratiion, to areas of low concentration. When the molecules are even throughout.

Today We will solve Partial differential equation (PDE) in Vcell.

Start from File New BioModel

1. Name the compartment2. Add a species (c)

Now we have to define a Geometry to represent the behavior of the system.

Page 3: Diffusion is the process by which molecules spread from areas of high concentratiion, to areas of low concentration. When the molecules are even throughout.

Defining Geometries:What to rememebr before starting Geometric Model

1. Each model requires a detailed description of the (cellular) geometry to represent the behavior of the (cellular) system.

2. Geometric model represents the morphometry of a particular Cell, or a portion of the cell.

3. In order to properly define a simulation domain, the geometry must be 2D or 3D segmented images with appropriate scaling information.

4. Membranes are implicitly represented as the boundary between the dissimilar compartments.

5. For regular structures or symmetric cells, analytic geometry is used instead of experimental images.

Page 4: Diffusion is the process by which molecules spread from areas of high concentratiion, to areas of low concentration. When the molecules are even throughout.

Defining Geometry

To Create a Analytic Geometry go to

File>New>Geometry>Analytic>2D

A new document called Geometry will show up. Here we will create a simple 2D geometry.

In our case, we have a single compartment.

Page 5: Diffusion is the process by which molecules spread from areas of high concentratiion, to areas of low concentration. When the molecules are even throughout.

Click in Geometry editor change domain to change the size .

A new dialog Geometry size will appear.

Double click Subvolume1 to rename the compartment (optional)

Page 6: Diffusion is the process by which molecules spread from areas of high concentratiion, to areas of low concentration. When the molecules are even throughout.

We can assign values of X and Yin Geometry size window and click ok.

Lets take for simplicity ,X= 10.0 and Y=10.0 to create

a square.

The origin refers to the coordinates relative to the analytic Geometry

Page 7: Diffusion is the process by which molecules spread from areas of high concentratiion, to areas of low concentration. When the molecules are even throughout.

Click Surface Viewer to see the surface of the geometry you just created.

Page 8: Diffusion is the process by which molecules spread from areas of high concentratiion, to areas of low concentration. When the molecules are even throughout.

This surface viewer dialog shows surface of your 2D data set and its size.It allows to rotate in space (interesting for 3D).

Save the Geometry with a name. It will be saved in your geometry document. Close the Geometry window. We will need this geometry soon.

Page 9: Diffusion is the process by which molecules spread from areas of high concentratiion, to areas of low concentration. When the molecules are even throughout.

Go to Application:

ApplicationNewDeterministic

Give a name of this application (This a spatial application, so i gave the name pde)

Click on View/change Geometry

Page 10: Diffusion is the process by which molecules spread from areas of high concentratiion, to areas of low concentration. When the molecules are even throughout.

This window will pop up.

Click change Geometry.. and select the geometry you just created.

Page 11: Diffusion is the process by which molecules spread from areas of high concentratiion, to areas of low concentration. When the molecules are even throughout.

You will see like this in your screen

Close the Geometry box. Note your geometry is in your Application Window.

Page 12: Diffusion is the process by which molecules spread from areas of high concentratiion, to areas of low concentration. When the molecules are even throughout.

Use to map your Geometry to your Bio Model

Now concentrate here. This is to configure the Boundary Condition of the system

For solving PDEs we need to know Initial conditions and Boundary conditions

Flux

Value

Page 13: Diffusion is the process by which molecules spread from areas of high concentratiion, to areas of low concentration. When the molecules are even throughout.

Possible boundary conditions:fixed concentration at the boundaryno flux (boundary is impermeable)

Consider a Box with a drop of blue ink at the middleand no flux at all boundaries.

Case 1. Simple Diffusion

Now Click Initial condition in application pannel.

Page 14: Diffusion is the process by which molecules spread from areas of high concentratiion, to areas of low concentration. When the molecules are even throughout.

double click

Here we have to write the expression for the concentration of c.

Concentration of c is confiend in that box.

Write the expression as follows and click ok..

It means concentration is at the middle of the box and its value is 1.

Expression is given by this inequality

Page 15: Diffusion is the process by which molecules spread from areas of high concentratiion, to areas of low concentration. When the molecules are even throughout.

See the description. Assign value of diffusion constant as 1.0 and boundaryconditions 0.0

Remember: in the structure mapping sector we consider Flux BC andnow we have assigned them all zero, that is no flux at the boundaries

Now save the Model with a name to see the Math and to run the simulation.

Thats all !!!

Page 16: Diffusion is the process by which molecules spread from areas of high concentratiion, to areas of low concentration. When the molecules are even throughout.

This is the Code for the PDE.

Click View Math

Note this portion

Page 17: Diffusion is the process by which molecules spread from areas of high concentratiion, to areas of low concentration. When the molecules are even throughout.

Next step is to Run Simulation.Run the simulation at least for 10 sec to see the result.

Increase the time to see the diffusion

Page 18: Diffusion is the process by which molecules spread from areas of high concentratiion, to areas of low concentration. When the molecules are even throughout.

Let us see qualitatively how the concentration gradient changes with time.

Page 19: Diffusion is the process by which molecules spread from areas of high concentratiion, to areas of low concentration. When the molecules are even throughout.

Selection / Drawing Tools.

Selection arrow

Point tool

Line tool

Spline tool

Add an additional control point

We want to see the quantitative results too.

Page 20: Diffusion is the process by which molecules spread from areas of high concentratiion, to areas of low concentration. When the molecules are even throughout.

Select Line tool to draw a line like this.

Click spatial plot to see the initial concentration gradient. To delete Line or point, just use Back space or delete key

Page 21: Diffusion is the process by which molecules spread from areas of high concentratiion, to areas of low concentration. When the molecules are even throughout.

For t=0 For t=1sec

For t=7secFor t=10 sec

Page 22: Diffusion is the process by which molecules spread from areas of high concentratiion, to areas of low concentration. When the molecules are even throughout.

Change the diffusion rate and see how the results changes.

Here Diffusion rate =5.0, as you see equillibrium comes faster !!

Page 23: Diffusion is the process by which molecules spread from areas of high concentratiion, to areas of low concentration. When the molecules are even throughout.

Usisng the same Geometry will study a few cases.

Case 2: Diffusion with C=0 at all boundaries

Steps are same as before. Start from New Biomodel .

Only Difference:

In Structure Mapping sector we have to assign Value instead of Flux.

The rest is the same

Check for the curiosty what happens if the circle inside the box becomes very small.

Page 24: Diffusion is the process by which molecules spread from areas of high concentratiion, to areas of low concentration. When the molecules are even throughout.

Results:

Page 25: Diffusion is the process by which molecules spread from areas of high concentratiion, to areas of low concentration. When the molecules are even throughout.

t=1.6 sect=0t=30 sec

Result:

Concentration is confined at middle of the box with C=0 at the boundaries.

Page 26: Diffusion is the process by which molecules spread from areas of high concentratiion, to areas of low concentration. When the molecules are even throughout.

Case 3 :

Diffusion with concentration is 1 and 0 at left and right boundaries, and no Flux bounary conditions for top and bottom walls.

Start as before:Create BioModel ApplicationMap Geometry

Click for X- and X+ Value, and Y-and Y+ Flux

Page 27: Diffusion is the process by which molecules spread from areas of high concentratiion, to areas of low concentration. When the molecules are even throughout.

Initial Condition – same as before.

But the BC_Xm =1 and BC_XP=0 and rests are zero.

Page 28: Diffusion is the process by which molecules spread from areas of high concentratiion, to areas of low concentration. When the molecules are even throughout.

Qualitative Results:

Page 29: Diffusion is the process by which molecules spread from areas of high concentratiion, to areas of low concentration. When the molecules are even throughout.

Line plot for t=0.4 sec

Page 30: Diffusion is the process by which molecules spread from areas of high concentratiion, to areas of low concentration. When the molecules are even throughout.

Line plot for t=10 sec

Page 31: Diffusion is the process by which molecules spread from areas of high concentratiion, to areas of low concentration. When the molecules are even throughout.

Let us see other what happens with other geometric structure.

Again Start a new BioModel like before.

Create a new geometry 2D

FileNew GeometryAnalytic2D

Page 32: Diffusion is the process by which molecules spread from areas of high concentratiion, to areas of low concentration. When the molecules are even throughout.

Click change domain.

X=30.0 and Y=2.0, Save the Geometry.

Page 33: Diffusion is the process by which molecules spread from areas of high concentratiion, to areas of low concentration. When the molecules are even throughout.

Next:

1. Application (deterministic)

2. Structure Mapping (click Flux)

3. Initial condition (provide an expression for initial concentration.)

4. Diffusion constant=1, and All BCs=0

Page 34: Diffusion is the process by which molecules spread from areas of high concentratiion, to areas of low concentration. When the molecules are even throughout.

Save the Model and go to simulation

Run simulation for t=30

Red= High concentration, Blue= zero concentration at t=0

Page 35: Diffusion is the process by which molecules spread from areas of high concentratiion, to areas of low concentration. When the molecules are even throughout.

For t=10.6 sec

Page 36: Diffusion is the process by which molecules spread from areas of high concentratiion, to areas of low concentration. When the molecules are even throughout.

Line plot for t=0

Page 37: Diffusion is the process by which molecules spread from areas of high concentratiion, to areas of low concentration. When the molecules are even throughout.

Line plot for t=10.6secLine plot for t=3.2sec

for t=30sec

Page 38: Diffusion is the process by which molecules spread from areas of high concentratiion, to areas of low concentration. When the molecules are even throughout.

1.To see the equillibrim we have to run the simulation for long time. or 2. We have to increase the diffusion constant

For t= 200sec, and D=1.0For t= 11.3 sec D= 50

The system is in equillibrium

Page 39: Diffusion is the process by which molecules spread from areas of high concentratiion, to areas of low concentration. When the molecules are even throughout.

Another Geometry.

Here we will consider this geometry as a cell in ECM Start FileNewBiomodelDouble click to give the compart name ECM

click to add feature

Click here.

Page 40: Diffusion is the process by which molecules spread from areas of high concentratiion, to areas of low concentration. When the molecules are even throughout.

It will look like this

Add species c in the compartment cell and your Bio Model is complete.

Page 41: Diffusion is the process by which molecules spread from areas of high concentratiion, to areas of low concentration. When the molecules are even throughout.

This is Bio Model.

Page 42: Diffusion is the process by which molecules spread from areas of high concentratiion, to areas of low concentration. When the molecules are even throughout.

Create this Geometry (2D analytic). Think how to create geometry.

we have two compartments. So click Add to add another subvolume

Write the expression for the geometry in any of the subvolumes

Page 43: Diffusion is the process by which molecules spread from areas of high concentratiion, to areas of low concentration. When the molecules are even throughout.

See what I did to create this geometry. Save this Geometry. It will be saved in your Geometry document.

Or if you can not Use shared Geometry from my account

FileOpenGeometryShared Geometries Satarupadiff_sq_rectangclick

Page 44: Diffusion is the process by which molecules spread from areas of high concentratiion, to areas of low concentration. When the molecules are even throughout.

Application: create an application (pde)

1. Structure MappingChange Geometry

2. Map the geometry with your model

Page 45: Diffusion is the process by which molecules spread from areas of high concentratiion, to areas of low concentration. When the molecules are even throughout.

Initial Condition:

The initial concentration is confined in the square.

Page 46: Diffusion is the process by which molecules spread from areas of high concentratiion, to areas of low concentration. When the molecules are even throughout.

Save the Model and go to simulation. Run simulationD=1.0

T=0 T=1.3

T=5.0 T=143.0

Page 47: Diffusion is the process by which molecules spread from areas of high concentratiion, to areas of low concentration. When the molecules are even throughout.

Line plot t=10.0 secLine plot t=0.7 sec

Line plot t=143.0 secLine plot t=60.0 sec

Page 48: Diffusion is the process by which molecules spread from areas of high concentratiion, to areas of low concentration. When the molecules are even throughout.

Time plot for an arbitrary point.

Select a point with and click show time plot