0% found this document useful (0 votes)
25 views

Bioelectrical Circuits - Lecture 3

Circuitos eléctricos
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
25 views

Bioelectrical Circuits - Lecture 3

Circuitos eléctricos
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 38

City University of New York (CUNY)

CUNY Academic Works

Open Educational Resources City College of New York

2019

Bioelectrical Circuits: Lecture 3


Jacek P. Dmochowski
CUNY City College

Luis Cardoso
CUNY City College

How does access to this work benefit you? Let us know!


More information about this work at: https://academicworks.cuny.edu/cc_oers/137
Discover additional works at: https://academicworks.cuny.edu

This work is made publicly available by the City University of New York (CUNY).
Contact: [email protected]
BME  205  L03  

DC  Circuits  –  Methods  of  Analysis  


Introduc>on  
• We  now  use  Ohm’s  Law  and  Kirchhoff’s  Laws  to  develop  
powerful  techniques  for  circuit  analysis:  
• Nodal  Analysis    
– based  on  applica>on  of  Kirchhoff’s  Current  Law  
• Mesh  Analysis    
– based  on  applica>on  of  Kirchhoff’s  Voltage  Law  
• For  almost  any  circuit  we  can  use  these  techniques  to  obtain  
a  set  of  simultaneous  equa>ons  and  solve  for  all  voltages  &  
currents.  
• We’ll  use  Cramer’s  Rule  to  solve  the  simultaneous  equa>ons;  
this  is  easy…  
 
 
Nodal  Analysis  
• Nodal  analysis  (also  known  as  the  node-­‐voltage  method)  
provides  a  general  procedure  for  analyzing  circuits  using  node  
voltages  as  the  circuit  variables.    
• Choosing  node  voltages  instead  of  element  voltages  as  circuit  
variables  is  convenient  and  reduces  the  number  of  equa>ons  
one  must  solve  simultaneously.  
• To  simplify  maXers,  we’ll  assume  for  now  that  circuits  do  not  
contain  voltage  sources.  Circuits  that  contain  voltage  sources  
will  be  analyzed  later  on.    
• In  this  case,  the  steps  to  determine  node  voltages  are...  
Steps  to  determine  Node  Voltages  
• Given  a  circuit  with  n  nodes  without  voltage  sources:  
1. Select  a  node  as  the  reference  node.  Assign  voltages  v1,  
v2,  .  .  .  ,  vn−1  to  the  remaining  n  −  1  nodes.  The  voltages  are  
referenced  with  respect  to  the  reference  node.  
2. Apply  KCL  to  each  of  the  n  −  1  nonreference  nodes.  Use  
Ohm’s  law  to  express  the  branch  currents  in  terms  of  node  
voltages.  
3. Solve  the  resul>ng  simultaneous  equa>ons  to  obtain  the  
unknown  node  voltages.  
Reference  /  Ground  
• The  first  step  in  nodal  analysis  is  selec>ng  a  node  as  the  
reference  or  datum  node.  The  reference  node  is  commonly  
called  the  ground  since  it  is  assumed  to  have  zero  poten>al.  
A  reference  node  is  indicated  by  any  of  the  three  symbols  
below.  The  type  of  ground  in  (b)  is  called  a  chassis  ground  
and  is  used  in  devices  where  the  case,  enclosure,  or  chassis  
acts  as  a  reference  point  for  all  circuits.  When  the  poten>al  
of  the  earth  is  used  as  reference,  we  use  the  earth  ground  in  
(a)  or  (c).  We  shall  always  use  the  symbol  in  (b).  
Assign  nonreference  nodes  
• Once  we  have  selected  a  reference  node,  we  assign  voltage  
variable  labels  to  nonreference  nodes.  Consider,  for  example,  
the  circuit  shown.  Node  0  is  the  reference  node  (v  =  0),  while  
nodes  1  and  2  are  assigned  voltages  v1  and  v2,  respec>vely.    
• Keep  in  mind  that  the  node  voltages  are  defined  with  respect  
to  the  reference  node.    

• Each  node  voltage  is  the  


voltage  rise  from  the  
reference  node  to  the  
corresponding  nonreference  
node  or  simply  the  voltage  
of  that  node  with  respect  to  
the  reference  node.  
Apply  KCL  
• As  the  second  step,  we  apply  KCL  to  each  nonreference  node  
in  the  circuit.  Label  i1,  i2,  and  i3  as  the  currents  through  
resistors  R1,R2,  and  R3,  respec>vely.  At  node  1,  applying  KCL  
gives   I 1 = I 2 + i1 + i2
I 2 + i2 = i3
• At  node  2:  
• We  now  apply  Ohm’s  law  to  express  
the  unknown  currents  i1  ,  i2  ,  and  i3  
in  terms  of  node  voltages.    
• Keep  in  mind  the  passive  sign  
conven>on:  in  the  equa>on  v=iR,  
the  “i”  refers  to  current  flowing  
from  the  +  to  the  –  of  v.  
• This  gives  us  

• We  subs>tute  these  into  our  KCL  equa>ons:  

 ...  or  in  terms  of  conductances:  


Solve  for  Node  Voltages  

• The  third  step  in  nodal  analysis  is  to  solve  for  the  node  
voltages.  If  we  apply  KCL  to  n−1  nonreference  nodes,  we  
obtain  n−1  simultaneous  equa>ons.  For  the  current  example  
circuit  we  could  use  any  standard  method,  such  as  subs>tu>on,  
elimina>on,  Cramer’s  rule,  or  matrix  inversion.  
• To  use  either  of  the  last  two  methods,  one  must  cast  the  
simultaneous  equa>ons  in  matrix  form.  For  example,  our  
conductance  equa>ons  can  be  cast  in  matrix  form  as  

which  can  be  solved  to  get  v1  and  v2  .  


Example  
Calculate  the  node  voltages  in  this  circuit.  
Solu%on:  
First  prepare  the  circuit  for  nodal  analysis,  
labeling  the  node  voltages  and  currents  as  
shown  below.    
No>ce  how  the  currents  are  selected  for  
the  applica>on  of  KCL  -­‐  Except  for  the  
branches  with  current  sources,  the  labeling  
is  arbitrary  but  consistent,  i.e.  the  currents  
entering  a  resistor  are  in  the  same  direc>on  
when  they  go  out  the  other  end.  
The  reference  node  is  selected,  and  the  
node  voltages  v1  and  v2  are  now  to  be  
determined.  
• At  node  1,  applying  KCL  and  Ohm’s  law  gives  
v1 − v2 v1 − 0
i1 = i2 + i3 ⇒ 5 = +
4 2
• Mul>plying  each  term  in  the  last  equa>on  by  
4,  we  obtain  
         1          or   3v1 − v2 = 20
20 =   v1 − v2 +      2v
At  node  2,  we  do  the  same  thing  and  get  
 
 
Mul>plying  each  term  by  12  results  in  
 
 
 
We  could  use  elimina>on:  add  underlined  
equa>ons  &  subs>tute  
• Alterna>vely,  we  could  use  Cramer’s  rule:  

 
 
which  is  as  we  got  before.  
• We  can  then  get  the  currents  easily  if  required.  
Examples  
Obtain  the  node  voltages  

1)  

2)   3)  
Nodal  Analysis  with  Voltage  Sources  
• CASE  I.  If  a  voltage  source  is  connected  
between  the  reference  node  and  a  
nonreference  node,  we  simply  set  the  
voltage  at  the  nonreference  node  equal  
to  the  voltage  of  the  voltage  source.  In  
this  example,  v1  =  10  V.  
• CASE  II.  If  the  voltage  source  
(dependent  or  independent)  is  
connected  between  two  nonreference  
nodes,  the  two  nonreference  nodes  
form  a  generalized  node  or  supernode;  
we  apply  both  KCL  and  KVL  to  
determine  the  node  voltages.   A  supernode  is  formed  by  enclosing  
a(dependent  or  independent)  voltage  source  
  connected  between  two  nonreference  nodes  
and  any  elements  connected  in  parallel  with  it.  
• So  in  this  example,  nodes  2  and  3  form  a  supernode.  (We  could  
have  more  than  two).  We  analyze  a  circuit  with  supernodes  using  
the  same  three  steps  men>oned  in  the  previous  sec>on  except  that  
the  supernodes  are  treated  differently.    
• Why?  Because  an  essen>al  component  of  nodal  analysis  is  applying  
KCL,  which  requires  knowing  the  current  through  each  element.  
There  is  no  way  of  knowing  the  current  through  a  voltage  source  in  
advance.  However,  KCL  must  be  sa>sfied  at  a  supernode  like  any  
other  node.  Hence,  at  the    
         supernode  in  this  example,  
• To  apply  Kirchhoff’s  voltage  law  to  the  supernode,  we  
redraw  the  circuit  as  shown.  Going  around  the  loop  in  the  
clockwise  direc>on  gives  
• So  now  we  have  3  equa>ons  in  v1,  v2,  v3.  

• Note  the  following  proper>es  of  a  supernode:  


1.  The  voltage  source  inside  the  supernode  provides  a  
constraint  equa>on  needed  to  solve  for  the  node  voltages.  
2.  A  supernode  has  no  voltage  of  its  own.  
3.  A  supernode  requires  the  applica>on  of  both  KCL  and  KVL.  
Example  
Examples  

Find  v  and  i  

Find  node  voltages  


Mesh  Analysis  
• Mesh  analysis  provides  another  general  procedure  for  analyzing  
circuits,  using  mesh  currents  as  the  circuit  variables.    
• Using  mesh  currents  instead  of  element  currents  as  circuit  variables  is  
convenient  and  reduces  the  number  of  equa>ons  that  must  be  solved  
simultaneously.    
• Recall  that  a  loop  is  a  closed  path  with  no  node  passed  more  than  
once.  A  mesh  is  a  loop  that  does  not  contain  any  other  loop  within  it.  
• Nodal  analysis  applies  KCL  to  find  unknown  voltages  in  a  given  circuit,  
while  mesh  analysis  applies  KVL  to  find  unknown  currents.  Mesh  
analysis  is  not  quite  as  general  as  nodal  analysis  because  it  is  only  
applicable  to  a  circuit  that  is  planar.    
• A  planar  circuit  is  one  that  can  be  drawn  in  a  plane  with  no  branches  
crossing  one  another;  otherwise  it  is  nonplanar.  A  circuit  may  have  
crossing  branches  and  s>ll  be  planar  if  it  can  be  redrawn  such  that  it  
has  no  crossing  branches.  
• For  Example,  (a)  has  two  crossing  branches,  
but  it  can  be  redrawn  as  in  (b),  so  it  is  
planar.    
• However,  circuit  (c)  is  nonplanar,  because  
there  is  no  way  to  redraw  it  and  avoid  the  
branches  crossing.  Nonplanar  circuits  can  be  
handled  using  nodal  analysis,  but  they  will  
not  be  considered  in  this  course.  

(c)  
A  mesh  is  a  loop  which  does  not  
contain  any  other  loops  within  it.  
• For  example,  paths  abefa  and  bcdeb  
are  meshes,  but  path  abcdefa  is  not  a  
mesh.  The  current  through  a  mesh  is  
known  as  mesh  current.    
• In  mesh  analysis,  we  are  interested  in  
applying  KVL  to  find  the  mesh  currents  
in  a  given  circuit.  
In  the  mesh  analysis  of  a  circuit  with  n  meshes  and  no  current  
sources,  we  take  the  following  three  steps:  
1.  Assign  mesh  currents  i1,  i2,  .  .  .  ,  in  to  the  n  meshes.  
2.  Apply  KVL  to  each  of  the  n  meshes.  Use  Ohm’s  law  to  express  
the  voltages  in  terms  of  the  mesh  currents.  
3.  Solve  the  resul>ng  n  simultaneous  equa>ons  to  get  the  mesh  
currents.  
• For  this  example,  the  first  step  requires  
that  mesh  currents  i1  and  i2  are  assigned  
to  meshes  1  and  2.  Although  a  mesh  
current  may  be  assigned  to  each  mesh  in  
an  arbitrary  direc>on,  it  is  conven>onal  to  
assume  that  each  mesh  current  flows  
clockwise.  

As  the  second  step,  we  apply  KVL  to  each  mesh.  Applying  KVL  to  mesh  1,  
we  obtain  
       or  
For  mesh  2,  applying  KVL  gives  
       or  
 
Note  that  in  the  1st  equa>on  the  coefficient  of  i1  is  the  sum  of  the  
resistances  in  the  first  mesh,  while  the  coefficient  of  i2  is  the  
nega>ve  of  the  resistance  common  to  meshes  1  and  2.  The  same  is  
true  for  the  2nd  equa>on.  The  third  step  is  to  solve  for  the  mesh  
currents.  In  matrix  form:  
• If  a  circuit  has  n  nodes,  b  branches,  and  l  independent  
loops  or  meshes,  then  l  =  b−n+1.  Hence,  l  independent  
simultaneous  equa>ons  are  required  to  solve  the  
circuit  using  mesh  analysis.  
• No>ce  that  the  branch  currents  are  different  from  the  
mesh  currents  unless  the  mesh  is  isolated.  To  
dis>nguish  between  the  two  types  of  currents,  we  use  i  
for  a  mesh  current  and  I  for  a  branch  current.  The  
current  elements  I1,  I2,  and  I3  are  algebraic  sums  of  the  
mesh  currents.  
• In  the  last  example  it  is  evident  that  
Example  

−i1 + 2i2 = 1

We  can  use  Cramer’s  Rule:  

We  obtain  the  determinants  


More  examples  

1)  

Find  io  

2)   3)  
Mesh  Analysis  with  Current  Sources  
• CASE  I.  When  a  current  source  exists  only  in  
one  mesh.  Consider  top  circuit  for  example.  
We  set  i2  =  −5  A  and  write  a  mesh  equa>on  
for  the  other  mesh  in  the  usual  way,  that  is,  

• CASE  II.  When  a  current  source  exists  


between  two  meshes.  Consider  circuit  (a),  
for  example.  We  create  a  supermesh  by  
excluding  the  current  source  and  any  
elements  connected  in  series  with  it,  as   (a)  
shown  in  (b).  Thus,  

(b)  
• We  create  a  supermesh  as  the  periphery  of  the  two  meshes  
and  treat  it  differently.  (If  a  circuit  has  two  or  more  
supermeshes  that  intersect,  they  should  be  combined  to  form  
a  larger  supermesh.)    
• Why  do  we  need  supermeshes  that  “go  over  the  head”  of  a  
current  source?  Because  mesh  analysis  applies  KVL—which  
requires  that  we  know  the  voltage  across  each  branch—and  
we  do  not  know  the  voltage  across  a  current  source  in  
advance.    
• However,  a  supermesh  must  sa>sfy  KVL  like  any  other  mesh  
or  loop.  Therefore,  applying  KVL  to  the  supermesh  in  (b)  gives  

   or  
• We  apply  KCL  to  a  node  in  the  branch  where  the  two  meshes  
intersect.  Applying  KCL  to  node  0  gives  

• Solving  the  two  equa>ons  in  i1  and  i2  we  get  

• Note  the  following  proper>es  of  a  supermesh:  


1.  The  current  source  in  the  supermesh  is  not  completely  
ignored;  it  provides  the  constraint  equa>on  necessary  to  
solve  for  the  mesh  currents.  
2.  A  supermesh  has  no  current  of  its  own.  
3.  A  supermesh  requires  the  applica>on  of  both  KVL  and  KCL.  
Example  
Find  i1  to  i4  using  mesh  analysis.  
Solu%on:  
Note  that  meshes  1  and  2  form  a  
supermesh  since  they  have  an  
independent  current  source  in  
common.  Also,  meshes  2  and  3  
form  another  supermesh  because  
they  have  a  dependent  current  
source  in  common.    
The  two  supermeshes  intersect  
and  form  a  larger  supermesh  as  
shown.  Applying  KVL  to  the  larger  
supermesh,  
   or  
 
Solve  to  get:  
Prac>ce  Problem  
• Use  mesh  analysis  to  determine  i1,  i2,  and  i3  
Nodal  and  Mesh  Analysis  by  Inspec>on  
• When  all  sources  in  a  circuit  are  independent  current  sources,  we  
do  not  need  to  apply  KCL  to  each  node  to  obtain  the  node-­‐voltage  
equa>ons  as  we  did  in  last  sec>on.  We  can  obtain  the  equa>ons  by  
mere  inspec>on  of  the  circuit.  As  an  example,  let  us  reexamine  the  
circuit  shown.  The  circuit  has  two  nonreference  nodes  and  the  
node  equa>ons  were  derived  before  as  

Observe  that  each  of  the  diagonal  terms  is  the  


sum  of  the  conductances  connected  directly  to  
node  1  or  2,  while  the  off-­‐diagonal  terms  are  the  
nega>ves  of  the  conductances  connected  
between  the  nodes.    
• Also,  each  term  on  the  right-­‐hand  side  is  the  algebraic  sum  of  the  
current  sources  entering  the  node.  
• In  general,  if  a  circuit  with  independent  current  sources  has  N  
nonreference  nodes,  the  node-­‐voltage  equa>ons  can  be  wriXen  in  
terms  of  the  conductances  as  

 
or    simply  
where  Gkk  =  sum  of  the  conductances  connected  to  node  k  
Gkj  =  Gjk  =  Nega>ve  of  the  sum  of  the  conductances  directly  connec>ng  
nodes  k  and  j,  k  ≠  j  
vk  =  Unknown  voltage  at  node  k;  
 ik  =  Sum  of  all  independent  current  sources  directly  connected  to  
node  k,  with  currents  entering  the  node  treated  as  posi>ve.  
G  is  called  the  conductance  matrix,  v  is  the  output  vector;  and  i  is  the  
input  vector.  
• This  equa>on  can  be  solved  to  obtain  the  unknown  node  voltages.  Keep  in  
mind  that  this  is  valid  for  circuits  with  only  independent  current  sources  
and  linear  resistors.  
• Similarly,  we  can  obtain  mesh-­‐current  equa>ons  by  inspec>on  when  a  
linear  resis>ve  circuit  has  only  independent  voltage  sources.    
• Consider  again  the  circuit  shown.  The  circuit  has  two  nonreference  nodes  
and  the  node  equa>ons  were  derived  before  as  

" R +R −R3 %" i % " V %


$ 1 3 '$ 1 ' = $ 1 '
$# −R3 R2 + R3 '&$# i2 '& $# −V2 '&

• We  no>ce  that  each  of  the  diagonal  terms  is  the  sum  of  the  resistances  in  
the  related  mesh,  while  each  of  the  off-­‐diagonal  terms  is  the  nega>ve  of  
the  resistance  common  to  meshes  1  and  2.  Each  term  on  the  right-­‐hand  
side  is  the  algebraic  sum  taken  clockwise  of  all  independent  voltage  
sources  in  the  related  mesh.  
 
• In  general,  if  the  circuit  has  N  meshes,  the  mesh-­‐current  equa>ons  
can  be  expressed  in  terms  of  the  resistances  as  

 
or  simply  
where  Rkk  =  Sum  of  the  resistances  in  mesh  k  
Rkj  =  Rjk  =  Nega>ve  of  the  sum  of  the  resistances  in  common  with  
meshes  k  and  j,  k  ≠  j  
ik  =  Unknown  mesh  current  for  mesh  k  in  the  clockwise  direc>on  
vk  =  Sum  taken  clockwise  of  all  independent  voltage  sources  in  mesh  k,  
with  voltage  rise  treated  as  posi>ve  
R  is  called  the  resistance  matrix,  i  is  the  output  vector;  and  v  is  the  
input  vector.  We  can  solve  this  matrix  equa>on  to  obtain  the  unknown  
mesh  currents.  
Examples  
Write  the  node-­‐voltage  matrix  
equa>ons  by  inspec>on.  

2)  
1)  
Example  
write  the  mesh-­‐current  equa>ons  by  inspec>on  

3)   4)  

You might also like