Modeling Biosystems Mathematical models are tools that biomedical engineers use to predict the behavior of the system. Three different states are modeled.

Slides:



Advertisements
Similar presentations
Instructor: Dr Sachin S. Talathi
Advertisements

Roundoff and truncation errors
2009 Spring Errors & Source of Errors SpringBIL108E Errors in Computing Several causes for malfunction in computer systems. –Hardware fails –Critical.
Chapter 3 Dynamic Modeling.
Chemistry 232 Transport Properties.
Chapter 3 Steady-State Conduction Multiple Dimensions
ECIV 201 Computational Methods for Civil Engineers Richard P. Ray, Ph.D., P.E. Error Analysis.
Fall 2006AE6382 Design Computing1 Numeric Representation in a Computer Learning Objectives Understand how numbers are stored in a computer and how the.
COS 323: Computing for the Physical and Social Sciences Szymon Rusinkiewicz.
CONSERVATION OF MASS Control Volumes By: Bashir Momodu.
Round-Off and Truncation Errors
Thermodynamics can be defined as the science of energy. Although everybody has a feeling of what energy is, it is difficult to give a precise definition.
Lecture 2: Numerical Differentiation. Derivative as a gradient
COS 323: Computing for the Physical and Social Sciences Szymon Rusinkiewicz.
Chapter 1: Introduction and Basic Concepts
Revision.
2-1 Problem Solving 1. Physics  2. Approach methods
CE 1501 CE 150 Fluid Mechanics G.A. Kallio Dept. of Mechanical Engineering, Mechatronic Engineering & Manufacturing Technology California State University,
1 Error Analysis Part 1 The Basics. 2 Key Concepts Analytical vs. numerical Methods Representation of floating-point numbers Concept of significant digits.
Energy Transfer By Heat, Work, and Mass
Fluid mechanics 3.1 – key points
Therme = Heat Dynamikos = work Thermodynamics = flow of heat THERMODYNAMICS Thermodynamics is a branch of science that deals with the study of inter conversion.
PTT 201/4 THERMODYNAMIC SEM 1 (2012/2013). Objectives Apply the second law of thermodynamics to processes. Define a new property called entropy to quantify.
Electrical Circuits Dr. Sarika Khushalani Solanki
Information Representation (Level ISA3) Floating point numbers.
Dr. R. Nagarajan Professor Dept of Chemical Engineering IIT Madras Advanced Transport Phenomena Module 2 Lecture 4 Conservation Principles: Mass Conservation.
Energy Balance Equation
Generate and interpret graphs and charts describing different types of motion, including the use of real-time technology such as motion detectors or photogates.[PHY.4A]
Molecular Transport Equations. Outline 1.Molecular Transport Equations 2.Viscosity of Fluids 3.Fluid Flow.
Error: Finding Creative ways to Screw Up CS 170: Computing for the Sciences and Mathematics.
BsysE595 Lecture Basic modeling approaches for engineering systems – Summary and Review Shulin Chen January 10, 2013.
MMJ 1113 Computational Methods for Engineers Mohsin Mohd Sies Fakulti Kejuruteraan Mekanikal, Universiti Teknologi Malaysia.
Universal College of Engg. & Technology
Lesson 8 SECOND LAW OF THERMODYNAMICS
College of Engineering Representing Numbers in a Computer Section B, Spring 2003 COE1361: Computing for Engineers COE1361: Computing for Engineers 1 COE1361:
Section 10.1 Energy, Temperature, and Heat 1.To understand the general properties of energy 2.To understand the concepts of temperature and heat 3.To understand.
Basic Probability (Chapter 2, W.J.Decoursey, 2003) Objectives: -Define probability and its relationship to relative frequency of an event. -Learn the basic.
BME 6938 Mathematical Principles in Neuroscience Instructor: Dr Sachin S. Talahthi.
ME 254. Chapter I Integral Relations for a Control Volume An engineering science like fluid dynamics rests on foundations comprising both theory and experiment.
Announcements:. Last lecture 1.Organization of the nervous system 2.Introduction to the neuron Today – electrical potential 1.Generating membrane potential.
Fakulti Kejuruteraan Mekanikal, Universiti Teknologi Malaysia
MECN 3500 Inter - Bayamon Lecture 3 Numerical Methods for Engineering MECN 3500 Professor: Dr. Omar E. Meza Castillo
ELEC 3105 Basic EM and Power Engineering Conductivity / Resistivity Current Flow Resistance Capacitance Boundary conditions.
Thermodynamics Thermodynamics Thermodynamics Way to calculate if a reaction will occur Way to calculate if a reaction will occur Kinetics Kinetics Way.
Systems, Energy, & Efficiency
Lecture 4 - Numerical Errors CVEN 302 June 10, 2002.
Molecular motion in liquids Experimental results Measuring techniques: NMR, ESR, inelastic neutron scattering, etc. Big molecules in viscous fluids.
Chapter 2: Heat Conduction Equation
HW/Tutorial # 1 WRF Chapters 14-15; WWWR Chapters ID Chapters 1-2
HW/Tutorial # 1 WRF Chapters 14-15; WWWR Chapters ID Chapters 1-2 Tutorial #1 WRF#14.12, WWWR #15.26, WRF#14.1, WWWR#15.2, WWWR#15.3, WRF#15.1, WWWR.
Chemistry 232 Transport Properties. Definitions Transport property. The ability of a substance to transport matter, energy, or some other property along.
Department of Mechanical Engineering ME 322 – Mechanical Engineering Thermodynamics Lecture 4 Conservation and Balance Concepts.
ERT 216 HEAT & MASS TRANSFER Sem 2/ Dr Akmal Hadi Ma’ Radzi School of Bioprocess Engineering University Malaysia Perlis.
Chapter 1. Essential Concepts
CHAPTER 2 MASS BALANCE and APPLICATION
Module 2.2 Errors 03/08/2011. Sources of errors Data errors Modeling Implementation errors Absolute and relative errors Round off errors Overflow and.
Biomechanics Mechanics applied to biology –the interface of two large fields –includes varied subjects such as: sport mechanicsgait analysis rehabilitationplant.
Thermochemistry. Overview Thermochemistry: An IntroductionThermochemistry: An Introduction Classification of EnergyClassification of Energy Conservation.
Thermodynamics Thermodynamics Thermodynamics Way to calculate if a reaction will occur Way to calculate if a reaction will occur Kinetics Kinetics Way.
Chapter 3: Conservation of Energy. Important Notation 2.
공정 열역학 Chapter 2. The First Law and Other Basic Concepts 고려대학교 화공생명공학과 강정원.
Signals and systems By Dr. Amin Danial Asham.
Thermodynamics Thermodynamics deals with the quantitative relationships of interconversion of the various forms of energy, including mechanical, chemical,
Chapter 2 ERROR ANALYSIS
BASIC BIOPHYSICS TOOLS AND RELATIONSHIPS
INFINITESIMALLY SMALL DIFFERENTIAL CUBE IN SPACE
Advection – Diffusion Equation
Several themes are recurrent
Transport numbers The fraction of total current carried by the ions of a specified type. The limiting transport number, t0±, is defined for the limit.
Presentation transcript:

Modeling Biosystems Mathematical models are tools that biomedical engineers use to predict the behavior of the system. Three different states are modeled Steady-state behavior Behavior over a finite period of time Transient behavior

Modeling Biosystems Modeling in BME needs an interdisciplinary approach. Electrical Engineering: circuits and systems; imaging and image processing; instrumentation and measurements; sensors. Mechanical Engineering: fluid and solid mechanics; heat transfer; robotics and automation; thermodynamics. Chemical Engineering: transport phenomena; polymers and materials; biotechnology; drug design; pharmaceutical manufacturing Medicine and biology: biological concepts of anatomy and physiology at the system, cellular, and molecular levels.

Modeling Biosystems A framework for modeling in BME Step one: Identify the system to be analyzed. Step two: Determine the extensive property to be accounted for. Step three: Determine the time period to be analyzed. Step four: Formulate a mathematical expression of the conservation law.

Modeling Biosystems Step one: Identify the system to be analyzed SYSTEM: Any region in space or quantity of matter set side for analysis ENVIRONMENT: Everything not inside the system BOUNDARY: An infinitesimally thin surface that separates the system from its environment.

Modeling Biosystems Step two: Determine the extensive property to be accounted for. An extensive property doe not have a value at a point Its value depends on the size of the system (e.g., proportional to the mass of the system) The amount of extensive property can be determined by summing the amount of extensive property for each subsystem comprising the system. The value of an extensive property for a system is a function of time (e.g., mass and volume) Conserved property: the property that can neither be created nor destroyed (e.g. charge, linear momentum, angular momentum) Mass and energy are conserved under some restrictions The speed of the system << the speed of light The time interval > the time interval of quantum mechanics No nuclear reactions

Modeling Biosystems Step three: Determine the time period to be analyzed. Process: A system undergoes a change in state The goal of engineering analysis: predict the behavior of a system, i.e., the path of states when the system undergoes a specified process Process classification based on the time intervals involved steady-state finite-time transient process

Modeling Biosystems Step four: Formulate a mathematical expression of the conservation law. The accumulation form (steady state or finite-time processes) The rate form (transient processes)

Modeling Biosystems The accumulation form of conservation The time period is finite Net amount generated Inside the system Net amount Accumulated Inside the system Net amount transported Into the system =+ Mathematical expression: algebraic or integral equations It is not always possible to determine the amount of the property of interest entering or exiting the system.

Modeling Biosystems The rate form of conservation The time period is infinitesimally small Generation rate Into the system at t Rate of change inside the system at t Transport rate into the system at t =+ Mathematical expression: differential equations

Modeling Biosystems Example: How to derive Nernst equation? Background: Nernst equation is used to describe resting potential of a membrane The flow of K + due to (1) diffusion (2) drift in an electrical field

Modeling Biosystems Example: How to derive Nernst equation? Diffusion: Fick’s law J: flow due to diffusion D: diffusive constant (m 2 /S) I: the ion concentration : the concentration gradient

Modeling Biosystems Example: How to derive Nernst equation? Drift: Ohm’s law J: flow due to drift  : mobility (m 2 /SV) I: the ion concentration Z : ionic valence v: the voltage across the membrane

Modeling Biosystems Example: How to derive Nernst equation? Einstein relationship: the relationship between diffusivity and mobility K: Boltzmann’s constant (1.38x J/K) T : the absolute temperature in degrees Kelvin q: the magnitude of the electric charge ( x C)

Modeling Biosystems Example: How to derive Nernst equation? K+K+

Concepts of Numerical Analysis Errors: absolution and relative (given a quantity u and its approximation) The absolute error: |u - v| The relative error: |u – v|/|u| When u  1, no much difference between two errors When |u|>>1, the relative error is a better reflection of the difference between u and v.

Concepts of Numerical Analysis Errors: where do they come from? Model errors: approximation of the real-world Measurement errors: the errors in the input data (Measurement system is never perfect!) Numerical approximation errors: approximate formula is used in place of the actual function Truncation errors: sampling a continuous process (interpolation, differentiation, and integration) Convergence errors: In iterative methods, finite steps are used in place of infinitely many iterations (optimization) Roundoff errors: Real numbers cannot be represented exactly in computer!

Concepts of Numerical Analysis Taylor series: the key to connecting continuous and discrete versions of a formula The infinite Taylor series The finite Taylor formula

Concepts of Numerical Analysis h=10.^(-20:0.5:0); dif_f=[sin(0.5+h)-sin(0.5)]./h; % numerical derivative for sin(0.5) delta=abs(dif_f-cos(0.5)); % absolute errors loglog(h,delta,'-*') h>10 -8, truncation errors dominate roundoff errors h<10-8, roundoff errors dominate truncation errors

Concepts of Numerical Analysis Floating point representation in computer IEEE 754 standard, used in MATLAB d i = 0 or 1 64 bits of storage (double precision) s; 11 bits: exponent (e); 52 bits: fraction (t) 1bit: sign s; 11 bits: exponent (e); 52 bits: fraction (t) A bias 1023 is added to e to represent both negative and positive exponents. (e.g., a stored value of 1023 indicates e=0) A bias 1023 is added to e to represent both negative and positive exponents. (e.g., a stored value of 1023 indicates e=0) Not saved!

Concepts of Numerical Analysis Floating point representation in computer Overflow: FATAL Overflow: A number is too large to fit into the floating-point system in use. FATAL! Underflow Underflow: The exponent is less than the smallest possible ( in IEEE 754). Nonfatal: sets the number to 0. Machine precision (eps): 0.5*2^(1-t)

Concepts of Numerical Analysis Floating point representation in computer How to avoid roundoff error accumulation and cancellation error If x and y have markedly different magnitudes, then x+y has a large absolute error If |y| >1 If x  y, then x-y has a large relative error (cancellation error)

Concepts of Numerical Analysis The ill-posed problem: The problem is sensitive to small error Example: Consider evaluating the integrals n=0,1,2,…25 n=1,2,3,…25

Concepts of Numerical Analysis The ill-posed problem: The problem is sensitive to small error y=zeros(1,26); %allocate memory for y y(1)=log(11)-log(10); %y0 for n=2:26,y(n)=1/(n-1)-10*y(n-1);end plot(0:25,y)