Skip to main content

SIMULATION OF VIRUS SPREAD

 

    Consider excel sheet like grid.  Give blue color to some cells.  They stand for healthy people.  Randomly give red color to some more cells.  They are infected people.  We will now formulate some rules.  Each cell (person) is surrounded by 8 persons -neighbors. 
1. A blue cell becomes red cell at the next step (iteration) if at least one neighboring cell is red (has virus). 
2. Each red cell has a certain chance (like 60%) of becoming blue cell (healthy person) at the next step. 
3. If a blue cell does not have at least one healthy neighbor, it does not survive. 
4. If a blue cell has more than 3 neighbors (healthy or unhealthy), it is infected. 
    Let us start with some healthy people and certain number of infected people.  Let us also create a neighborhood with some cluster of people, some quarantined persons, a crowd, random people etc. 
    Let us write a simple computer program and run it to find out if the virus spread dies out or goes on forever. 
Program in simple language: 

Do n times: 
      Scan all the cells in the grid one by one. 
             1.  For each cell:  Count the healthy neighbors and                                                     unhealthy neighbors. 
            2.   carry out the four rules. 
           3.   move to next cell. 
If n iterations are not completed, go to beginning.   

After the execution of the program, look at the screen.  If the grid is mostly blue, the viral infection is dying out.  If it is reddish, adjust rules, initial conditions, and rerun the program. 
     Arrive at proper rules and conditions and implement in your neighborhood. 
    This is not a correct mathematical model.  But an attempt in that direction.  The highlight is visual representation.  Anyone can experiment with it. 
    This process is derived from "game of life" based on cellular Automata. 
    Game of life is used to study self-organizing systems.  It is the study of how elaborate patterns and behavior can appear from quite simple rules.  It helps us to understand, how the petals on a rose or the strips on a zebra can arise from a tissue of living cells growing together. 
    Note:  The principle can be applied not only for people but for healthy cells and infected cells also. 
    Suppose you include any resistance to spread of virus like temperature, medicine, etc., the picture will completely change.  
---------------------------------------------------------------- 
  

Comments

Popular posts from this blog

Your heart -you do not know

  Size and Location: The human heart is roughly the size of a clenched fist and is located slightly to the left of the center of the chest. Despite its relatively small size, the heart plays a crucial role in pumping blood throughout the entire body. Heartbeat Variability: The heart does not beat at a constant rate. The interval between heartbeats can vary, and this variability is considered a sign of a healthy heart. Factors such as breathing, emotions, and physical activity influence the heartbeat. Electrical Conduction: The heart's contractions are controlled by electrical impulses. The sinoatrial (SA) node, often called the "natural pacemaker," generates electrical signals that regulate the heartbeat and coordinate the pumping of blood. Blood Pumping Capacity: On average, the human heart pumps about 2,000 gallons (or 7,570 liters) of blood each day. Over a lifetime, this amounts to pumping enough blood to fill several Olympic-sized swimming pools. Heart Chambers and V...

THE WORK HORSE "="

    One cannot think of  a mathematical step without 'is equal to ' .  It balances right hand side and left hand side.  It aids simplification and manipulation of a mathematical expression. example: 2(A+B)  = C 2A+2B  = C         2A = C-2B           A = C-2B/ 2   In an electronic calculator,  the pressing of ' = " sign executes an asthmatic expression  or simply calculates.       In computer languages, it plays very important role.                                                                 A = B   When a computer looks at this expression, the value stored in the location named B is just transferred to the storage named A .  After execution both A and B will have the same value an...

How does your smart phone detect motion, steps, rotation, and location?

 How it works-1  An accelerometer in a smartphone is a microelectromechanical system (MEMS) device that measures acceleration and tilt. It works by detecting changes in motion by measuring the vibration or acceleration of the device. The accelerometer consists of a small mass suspended on a spring inside a sealed chamber. When the device is subjected to acceleration, the mass moves relative to the device, causing a change in capacitance that can be measured and processed by the smartphone's hardware. The accelerometer measures acceleration in three dimensions (x, y, and z) and provides data that the smartphone's software can use to determine the device's orientation, detect motion, and track changes in velocity and acceleration. The accelerometer is used for a variety of purposes in a smartphone, including screen rotation, motion tracking for games and fitness apps, and detecting the position of the device for navigation and location services. Additionally, it can be used t...