HAL Id: hal-02720463
https://hal.inrae.fr/hal-02720463
Submitted on 1 Jun 2020
HAL is a multi-disciplinary open access
archive for the deposit and dissemination of
sci-entific research documents, whether they are
pub-lished or not. The documents may come from
teaching and research institutions in France or
abroad, or from public or private research centers.
L’archive ouverte pluridisciplinaire HAL, est
destinée au dépôt et à la diffusion de documents
scientifiques de niveau recherche, publiés ou non,
émanant des établissements d’enseignement et de
recherche français ou étrangers, des laboratoires
publics ou privés.
Spice : a circuit circulation program for physiologists
P. Cruiziat, R. Thomas
To cite this version:
P. Cruiziat, R. Thomas. Spice : a circuit circulation program for physiologists. Agronomie, EDP
Sciences, 1988, 8 (7), pp.613-623. �hal-02720463�
AGRONOMIE
SPICE -
a
circuit simulation
program
for
physio-logists
P. CRUIZIAT Randy THOMAS
LN.R.A., Laboratoire de Bioclimatologie, Domaine de Crouelle, F 63039 Clermont-Ferrand Cedex
( *
) INSERM, U 192, H6pital Necker, TT 6" étage, 149, rue de Sèvres, F 75015 Paris Cedex 15.
SUMMARY This article presents a program named SPICE for simulation in plant physiology. It was originally developed to
simulate electric and electronic circuits. For several years it has now been also used in various fields of human and animal physiology (classical physiology, membrane biophysics, pharmacokinetics...). ).
After a short description of SPICE’s main features and capabilities, 3 simple illustrative examples are given : a
whole plant water flow model, a coupling fluxes of water and solute across a membrane and a process obeying
the Michaelis-Menten law.
The advantage of this approach is that the modeler need know nothing of numerical analysis and can nonetheless
treat complex, non linear-systems. Cheap versions for IBM-compatible personal computers are available.
Additional
key
words: Network thermodynamics, compartmental systems, couplingoj’,fluxes,
chemical reactions.RÉSUMÉ SPICE, un
logiciel
de simulation pourphysiologistes,
Cet article présente un logiciel, appelé SPICE, pour simuler un certain nombre de problèmes de physiologie
végétale. Bien qu’ayant été développé à l’origine pour simuler et mettre au point des circuits électriques et
électroniques, il est depuis quelques années utilisé en physiologie humaine et animale.
Après avoir présenté les principales caractéristiques et possibilités de ce logiciel, 3 exemples simples illustrant son
utilisation sont donnés : un modèle de transport d’eau à travers le végétal, un couplage eau-solutés à travers une
membrane et une simulation d’un processus suivant la loi Michaelis-Menten
Des versions peu chères pour microordinateurs existent.
Mots clés additionnels : Thermodynamique en réseaux, modèles à compartiments, couplage
do flux,
réactionenzymatique.
I. INTRODUCTION
To
varying degrees, experimental
sciencerequires
the construction of models and the use of a simulationapproach.
In fields such as agronomy,bioclimatology,
orphysiology,
many processes can be viewed as anexchange
of matterand/or
energy between differentcompartments
of acomplex
system.
Among
several tools available to solve suchproblems,
a circuit simula-tionpackage
named SPICE has beenincreasingly
used. Itsoriginal
purpose was tohelp
electricalengineers.
Later it was
recognized
as apractical
simulator for networkthermodynamic
models and has been usedespecially
in animal and humanphysiology.
SPICE has three main features :
1)
it is a very suitable tool fordealing
withcoupled
fluxes of different kinds asthey
are formulated in thelanguage
ofthermodynamics
of irreversible processes ;2)
itemphasizes
the connections between structuresand
functions,
and allows one " toput
together
into afunctioning
whole a lot ofpieces
we may have observedas
parts
of acomplicated
system
"(M
IKULECKY
,
1983) ;
3)
it solves thesystem
ofequations corresponding
tothe behavior of the
system.
For these reasons we believe that SPICE can be of
great
interest to many researchers. The purpose of thisand to
provide
a fewexamples
illustrating
its use in thefield of
physiology.
A. What is SPICE ?
SPICE is a program for the simulation of electric and electronic circuits aimed at
assisting
in thedevelopment
of such circuits. It wasdeveloped by
theLaboratory
of Electrical and ElectronicalEngineering
at theUniver-sity
of California atBerkeley (USA).
Newversions,
more flexible and morepowerful,
have beendeveloped
regularly
since 1972. Several similar programs are avai-labletoday,
SPICEbeing
the mostwidely
distributed. It can be used on both mainframe andpersonal
computers
(
*
).
B. Use of SPICE for simulation of
physiological
problems
At first
sight,
it may seemstrange
toapply
a programfor electric circuits to simulations in
physiology.
Howe-ver, a brief review of some historical and
methodologi-cal facts will demonstrate thevalidity
of this idea.1. Use
of
electricalanalogies
Such
analogies
have been used for along
time inanimal and
plant physiology (DAINTY,
1960 ;
SANDERSet
al.,
1971).
The same terms(e.g.
resistance)
are evenapplied
to different butanalogous phenomena
expres-sed
by formally
similar laws.2.
Thermodynamics of
irreversible processes(TIP)
In the
1950’s,
KEDEM& KATCHAt,sKV(1958, 1963a,
b,
c)
wereundoubtedly pioneers
in the use of TIP for thephenomenological description
of flow-forcerelations-hips
inbiological
membranes. This theoreticalapproach
hasspread
widely
and has beenapplied
in many fields ofphysics, chemistry
andbiology.
3. Network
thermodynamics
(NT)
In the same way that TIP can be considered a
generalization
of classicalthermodynamics,
NT can be*
Practical information
2G6, the latest SPICE program written in Fortran 5 (or 77) was
developed at the University of California at Berkeley in 1983. Several versions are available depending on the type of computer and
operating system (CDC, DEC, VAX (UNIX or VMS), IBM, etc...)
A new program in C language, named SPICE 3A. 7 was put on the market in March 1986. In spite of its efhciency, this program is of limited interest to physiologists for it does not allow the use of
dependent polynomial sources, thus reducing its usefulness for physio-logical simulations.
These versions are available on magnetic tape for about $ 100. SPICE programs are also available for IBM-compatible personal
computers. For example INTUSOFT (P.O. Box 6607, San Pedro CA
90734, USA) sells versions of SPICE derived from 2G6 which are more efficient in both ouput and simulation types than the most recent
versions for computers developed at the University of California at
Berkeley. These versions for PCs sell for about $ 200-250.
viewed as an extension of TIP. This method of
analysis
developed along
twolines,
one based on linegraphs
(P
EUSNER
,
1970)
and the other on &dquo; bondgraphs
&dquo;(O
STER
et
al.,
1973).
NT has a double basis :
1)
Ageneralization
of the notions of fluxes J andforces X used in
electricity,
fluidmechanics,
chemicalthermodynamics
and TIP(T
HIERY
,
1983 ;
C
HAUVET
,
1987).
&dquo;Each process
involving
energy can bedecom-posed
into a flow of material and the forceresponsible
for this flow. Theproduct
JX takes the value of a power, an instantaneous energy, which may bestored,
consu-med ortransported
&dquo;(A
TLAN
,
1976).
Thegeneralized
displacement
and thegeneralized
momentum(by
analogy
with the terms used inmechanics)
are also used.2)
The use of network simulation programs.NT
is,
so tospeak,
apowerful
formallanguage
that can be used forsolving
manyproblems
of mass and energy transfer,particularly
inbiological
and chemicalsystems.
Oneproceeds
as follows :- Choose
a
topological representation
of thebiolo-gical
system
in the form of a networkcontaining
thevarious
appropriate
elements.- For each
element,
theflows,
the constitutivedriving
forces and therelationship
between these twoquantities
are defined. An element can be aone-port
if it is crossedby
asingle
type
of mass or energy, or ann-port
in the case where there is more than one flow. For instance a resistor and asemi-permeable
membraneallowing
no activetransport
areone-ports.
On the otherhand,
whenrepresenting
the energybudget
of a leafexchanging
energyby
radiation,
convection orconduc-tion and water vapor with the environment, one will
regard
this leaf as ann-port.
The same willapply
to astudy
ofcoupled
flows of water and ions across a membrane or to a set of associated chemical reactions.Translation into the
system’s
NTlanguage
leads to adescription
of thesystem
by
means of the constitutive relations of the elements and those of electricalnetworks in
particular (Kirchhoff’s
law,
...).
It is thuspossible
to make an electricaldescription
of how thesystem operates
by using
elementsR, C,
L and others. Two alternatives are then available to understand how the system works :-
using
direct numericalanalysis
to solve the set ofequations describing
the system ;-
using
a circuitanalysis
program.A circuit
description generally
involvescharacterizing
the elements in the circuit and
indicating
theirposition
in relation to the network nodes as well as theboundary
conditions. Then thesystem
ofequations corresponding
to the
system’s
operation
with initial conditions isautomatically
solved. Thisstep
therefore does not need be handleddirectly.
Since many similar programs(SPICE
is one of the mostextensively
used),
bothpowerful
and easy to use, arecurrently
available,
one can understand themajor practical advantage
oftranslating
aproblem
in terms of NT. Wepurposely
willnot consider here the theoretical
advantages
of this formalization(M
IKULECKY
,
1983),
sincethey
areinde-pendent
of the program used.Comment
The electrical
analogue
is not theonly
possibility,
noralways
the best. For various reasons, it is the one mostcommonly
usedtoday.
However programs forhydraulic
engineering analysis
could be asappropriate
in certain cases.Obviously,
it would be better to use afully
networkthermodynamics-oriented
program rather thantranslating
into thelanguage
ofspecialized
simulationprograms. It is
hoped
that such a program will bedeveloped
in the near future.Now that we have
presented
theprinciples underlying
the use of SPICE in
physiology,
we willgive
a briefdescription
of this simulation program.II. BRIEF DESCRIPTION OF SPICE
Using
SPICE(i.e. writing
a program in SPICElanguage)
involvesdescribing
each element of the circuit in order torepresent
thesystem
to beinvestigated
and the conditions it will be submitted to.A. Elements
(table
1)
The
type
of each element is definedby
the first letter(e.g.: (R)esistor,
(C)apacitor, ...).
The name(e.g.:
CAP2)
can be any combination of 7alphanumeric
characters. It is followedby
two node numbersidenti-fying
its branch and thenby
thevalue(s)
of thepara-meter(s) defining
the electrical characteristics of this element.ex : VCAP2 8 0 12 2
This line sets a constant
voltage
source of 12 volts between the connection element nodes 8 and node 0. Node 0 isground.
The circuits studied later will show otherexamples.
The main elements of SPICE can be classified somewhat
arbitrarily
into 3categories :
a)
Linear elements includeresistors,
capacitors,
inductors,
independent
voltage
and current sources. The latter can be constant, ortime-dependent.
There are fiveindependent
source functions :exponential,
sinusoidal,
piece-wise
linear,
pulse
andsingle frequency.
It is alsopossible
to compose variable resistors andcapacitors.
*
Voltage
sources, in addition tobeing
used for circuitexcitation,
are the &dquo; ammeters &dquo; forSPICE,
that isvoltage
sources of value zero may be inserted into the circuit for the purpose ofreporting
current in agiven
branch.b)
Non linear elementsessentially
include semicon-ductor devices. As the latter have not been used forphysiological
simulationyet,
we will not consider them here.c) Dependent
or controlled sources areextremely
useful elements
conferring
considerable simulationpower to SPICE.
They produce
avoltage
or a currentthat may
depend
on one or severalvoltages
of currentsexisting
elsewhere in the circuit. Fourtypes
ofcontrol-led sources are available :
- current-controlled
voltage
sources(H),
-
voltage-controlled voltage
sources(E),
-
voltage-controlled
current sources(G),
- current-controlled current
sources
(F).
There are 2
major
restrictionsaffecting
these func-tions :- the functions
must be
expressed
aspolynomials
in which theexponents
of variables must bepositive
integers ;
- a
dependent
source candepend
on one or severalvoltages (up
to6),
or one or several currents. It cannotdepend simultaneously
on avoltage
and a source. Thiscondition, however,
can beeasily
circumvented.Moreover,
theavailability
of the source code for academic research allowsincorporation
ofspecial
func-tions(e.g.
hyperbola
for Michaelis-Mentenequation,
Goldman’s
equation
for membranetransport).
Usually,
the definition of a non-lineardependent
source takes the form :F
G
! ,
G
NameN’ NPOLY
(n) NC1’
NCINC2’
tH
NC2
NC2 all a, a. a,
J
/
NC? a<j a j a! a ;
The current
(F
orG)
or thevoltage (H
orE)
between nodesN+
4and N is a
polynomial
of n variables(currents
orvoltages)
situated between nodesNC1
+ andNC
1
the
polynomial
coefficientsbeing successively
a o
, dl> az, a3, ...
B. Control statements
The control statements serve to
specify
the desiredanalysis
andoutput :
New versions of SPICE do not need
explicit
control lines for theoutput :
they
store all theoutput
andpermit
one to trace any combination of these. In the same way,some CAE programs allow one to
generate
the state-mentsdirectly
from thedesign
of the circuit on agraphic
screenusing
a mouse.C. Simulation
SPICE allows 3
majors
types
of simulation to beperformed :
- A direct current
analysis (DC Analysis)
whichcorresponds
to asteady
stateanalysis.
- A transient
analysis giving
thetime-dependent
response of thesystem
over an interval to bespecified.
- An
alternating
currentanalysis (AC analysis).
Several alternatives are available among these 3
cate-gories (table
2).
Forexample
forlarge-signal
sinusoidalsimulations,
a Fourieranalysis
of theoutput
waveformcan be
performed.
The DCcomponent
and the first 9 components are determined.Likewise,
differentsignal
analyses
can be obtained. Todate, however,
thesample
DC and transient
analyses
have been mostcommonly
used for
physiological
simulations.III. EXAMPLES OF SIMULATION OF PHYSIOLOGICAL PROBLEMS
Three
simple examples
will bepresented
todemons-trate how the most common elements of SPICE can be
applied
in 3 fields ofphysiology.
Detailedexplanations
areprovided
to initiatephysiologists
into the use of this program.A. Whole
plant
flow model(fig.
I )
Water enters vascular
plants
inliquid
formthrough
the rootsystem.
It moves in this formalong
very finecapillaries (xylem vessels) through
the wholeplant.
Upon
reaching
theleaves,
it passes from theliquid
tothe vapor
phase
and is releasedthrough
the stomatainto the
atmosphere.
The maindriving
force for thiswater flow is
transpiration,
which maintains agradient
of waterpotential
from theground
to the leavesanalo-gous to
voltage.
If the amount of water absorbedby
theroots is
equal
to thatevaporated
from theleaves,
the flux is conservative and can berepresented by
Ohm’s lawtype
relations. If these amounts areunequal
(wil-ting, rehydration),
the flux is non-conservative. Inaddi-tion to
resistors,
the evolution of the water balance and itsdynamics
can then be described in terms of waterpresent
example,
whichonly
considers the flow inliquid
form,
theplant
isschematically represented by
the flowmodel in
figure
1including
a soil(constant
levelreser-voir) supplying
water to theplant.
The latter is made upof 3 resistors and one constant
capacitance
reservoir(simplified view).
Simulating
involvesfollowing
fluxes andvoltages
as afunction of time in response to
imposed transpiration.
This
transpiration
increasesinstantaneously,
levels off for awhile,
and decreaseslinearly
and ratherslowly.
Therefore,
theinput
consists of theparameter
values and the initial conditions(voltage
atboundaries,
trans-piration).
Theoutput
consists of the instantaneous or cumulative currentsalong
with thevoltage
at thediffe-rent nodes.
The
corresponding listing
is as follows :**
MODEL: PIA DATE
** TIME CONSTANT ** PARAMETERS: 3 resistors RI = 90
bar . mg ’ .
CM
2
.
s ** R2 = 60 ** R3 = 150 **PARAMETERS: 1 constant
capacitance =
2.5 mg -
CM
2
-
bar-’
* DESCRIPTION OF THE CIRCUIT
Rl 1 1 2 90.0 R2 2 3 60.0 R3 5 6 150.0
C1 0 6 2.5 IC = 0
* MEASUREMENT OF THE FLUXES
VABS 0 1 0.0 VDEP 5 2 0.0 VTRP 4 0 0.0 * IMPOSED TRANSPIRATION GTR 3 4 7 1.0 VCLOCK 7 0 PWL
(0
0.0 300 0.0 + 301 0.006 3300 0.006 54000.0)
RCLOCK 7 0 1.0* MEASUREMENT OF THE CUMULATIVE
FLUXES :
CABS, CDEP, CTRP
CCABS 100 0 1.0 FCABS 100 0 VABS 1.0 RCABS 100 0 1 E7 CCDEP 110 0 1.0 FCDEP 110 0 VDEP - 1.0 RCDEP 110 0 1 E7 CCTRP 120 0 1.0 FCTRP 120 0 VTRP - 1.0 RCTRP 120 0 1E7 * SIMULATION .TRAN 30 6000 UIC
.PLOT TRAN
I(VABS) I(VDEP) I(VTRP)
.PLOT TRANV(
100
)
v(llo) V
(
1
20)
.ENDComments
- The
capacitance
of thecapacitor
is 2.5 farads forSPICE,
but 2.5 mg .bar
1
CM
-2
for the
physiologist.
IC = 0 means that its initial
voltage
is 0 volt. Thereforethe water
potentials (expressed
inbars)
of both the soiland the
plant
areequal
at the start.- Three ammeters
(sources
of zerovoltage)
are usedto measure the currents in the branches :
VABS,
VDEP,
VTRP.
- To
impose
the desiredtranspiration,
i.e. thecurrent
flowing
from node 3 to node4,
2 elements areused :
a)
a source G(voltage-dependent
currentsource) ;
b)
aspecial voltage
source(VCLOCK)
between nodes 0 and 7 of anindependent auxiliary
circuit whose value varieslinearly
with time(PWL
=piece-wise
linear).
Here,
thetranspiration
rises from 0 to0.006 volts
(0.006
mg .CM
2
-
s ’ for
thephysiologist)
within 1 second(between
the300
th
and the301
S
‘
se-cond),
remains at this level until time t = 3 300s, and returns
slowly
to 0 within 2 100 s. As indicatedby
the sourceG,
the currentflowing
between nodes 3 and 4 will beequal,
at anytime,
to one times thevoltage
between nodes 7 and 0.GTR 3 4 7 0 1.0 controlled
controlling
coefficientnodes nodes
The cumulated fluxes are read
by
means of 3 smallindependent auxiliary
circuits in which acapacitor
ischarged
with currentequal
to one of the fluxes of the main circuit.In each
auxiliary
circuit,
onerequires,
through
a sourceF,
that the current beequal
to a current measu-red in the main circuit(e.g.
between nodes 100 and0,
it is the current measuredby
the ammeter VABS that willflow).
Theintegral
of the current over the time interval isequal
to thecharge
accumulated within thecapacitor :
at any
given
time,
thepotential drop
across thecapa-citor
(ex: V(100))
isequal
to V =Q/C
=Q
since C = l. Froma node’s
voltage,
one can thus obtain ateach time the cumulated amount of water
having
left areservoir
(or having
entered thisreservoir)
over agiven
time interval.
In the
output,
thefollowing
isrequired :
-
a transient
analysis
(.TRAN)
of thesystem’s
evolution from time t = 0 to time t = 6 000s, with one
point printed
every 30 s from time t= 0 ;
-
a
graph
showing
the evolution of currents andvoltages
at differentpoints
of the main circuit and of theauxiliary
circuits. M OLTZet al.
(1979)
havegiven
anotherexample
of theuse of SPICE — without the
listing
of the program — forstudying
quantitative
water relations inplant
tissues.B.
Coupled
flow of water and solute across a membrane(fig. 2)
This
example
will show howequations
can bedifferent kinds of fluxes is
expressed.
This willprovide
betterinsight
into :a)
the use ofn-ports,
i.e. of elementshaving
several kinds of in- andoutflows
;
b)
the&dquo; physical &dquo; separation
of the various kinds offlows :
only
one kind of flux flowsthrough
asingle
branch. The theoretical
coupling
expressed
in theequa-tions
essentially
occursthrough
thedependent
sources(F,
G, H,
E)
that allow thevoltage and/or
thepotential
at one
point
to be linked with thepotential and/or
thevoltage
at anotherpoint.
Therefore,
instead ofrelying
on a schematicdiagram
supposedly representing
theglobal
behavior of a system(previous
example),
we will start from twoequations
describing
thecoupled
flows of water and solutes across a membrane in asimple
case(fig.
3).
terms : solvent
drag
diffusive activetransport
branches = dc d
with :
Jy
= total volume flux.4P =
P
I
- P
2
=
difference ofhydrostatic
pressureacross the membrane.
AT[i - 711i
i IT2i, osmotic pressure difference due tonon-permeable
solutes(for
which 6 =I).
Ajr! ! I
Tls IT2,’ osmotic pressure difference due topermeable
solutes(for
whicha < 1 ). ).
Lp
= coefficient of filtration orhydraulic conductivity.
C
o
-
(C
1 +C2)/2,
C 1 and C2being
the concentration of either side of the membranerespectively.
Incertain situations
(THOMAS
&MIKULECKY,
1978),
it can alsobe,
as in thepresent
example,
the concentration of the outsidecompartment.
a, = reflection
coefficient
forpermeable
ions.w = coefficient of solute
mobility.
R = universal gas constant.
T = temperature
(Kelvin).
J
*
,
= active solute flux.Thus we have 2 kinds of flux
(considering only
onesolute)
each of which can be considered as thealgebraic
sum of 2 or 3
elementary
fluxes,
eachcorresponding
toa term of the
right-hand
side ofequations
1 and 2. Ouraim is to
represent
these termsby appropriate
depen-dent sources or other elements.
l.
Representation
of flux
J,,
This form of the flux
equation
iscommonly
used in TIP and often the most convenient for SPICE.Jy
will therefore be considered as the sum of 2 terms XiFi. Xi is acoefficient,
Fi aforce,
each of these 2components
of J!
will flowthrough
a branch(fig.
2a).
Branch a consists of:
- a resistor RWP
taking
the valueI/Lp.
The currentflowing
across this branch will have the valueLp P
*
,
with P* = 4P -Avr,
if thevoltage
across this branchequals
AP*(see
below) ;
- an ammeter VW
measuring
the current in this branch.AP *
is fixed
by
avoltage
source VWP = AP* between nodes 0 and 1. Thisgrounded
sourceputs
node I at apotential
AP* = 1 volt(I
bar for thephysiologist),
resulting
in apotential
of 1 bar between nodes 1 and 2since nodes 2 and 3 are
grounded.
The element VWTwill be considered below.
Branch b consists of a
single
active element(in
addition to an ammeter VW2 used to measure thevoltage):
element GW2 which is a current source controlledby
avoltage equal
to 654!! :
controlled nodes
controlling
nodesLp
The current
flowing through
branch b will beequal
to-
Lp
ASL1
T
Cs’
The VWT element
(like
VSA,
seebelow)
iscomposite,
because it acts both as an ammeter and a non-nullvoltage
source. FluxJy,
the currentpassing through
VWT,
is the sum of the 2 fluxespassing through
bran-ches a and brespectively :
This first sub-circuit
corresponds
toequation
1.2.
Representation
of solute flux
Y,
We follow the same
procedure
as above. FluxJ
s
is made up of 3elementary
fluxes(solvent drag
or convec-tive term,diffusive,
activetransport)
which must be written in the form of aproduct
XiFi. As shownby
equation
2’only
the solventdrag
term does not meetthis
requirement,
because it is theproduct
of 2 different variables : avoltage (C
j
)
and a flux(J!).
As SPICE doesnot
accept
this kind of source, one must first use a smallauxiliary
circuit to fix a nodevoltage
&dquo;V(J
v
)
&dquo;equal
tothe current
Jy.
Then avoltage-dependent
current sourcemultiplies V(J!) by C,
togive
the solventdrag
contri-bution.
Then,
to avoidmultiplying
thebranches,
thesolvent
drag
and activetransport
terms aregrouped
on one side(branch d)
while the diffusive term isput
on the other side(branche c).
Conversion of the convective term
C,
(I -
as) Jy.
Toconvert
C,
into a current, we create avoltage-dependent
current source, a source G named
GTRA,
such that:This is a
polynomial
function of 6s reduced to asingle
term, which will be
accomplished by
use of anauxiliary
circuit(see
auxiliary
circuit n°1,
fig. 2a).
This circuitincludes 2
nodes,
0 and21,
between which a current(GTRA)
flows. This current isequal
to 5.33 E - 0.6 n,, where !, is avoltage
source(VCE)
located between nodes 1 and 10 in the maincircuit,
representing
the osmotic pressure of the outsidecompartment.
The element linedesignating
this source will be written : GTRA 0 21POLY( 1 )
10 0 0.0 5.33 E - 0.6 .The convective term of
equation
3.2 thus becomes acurrent that
depends
on 2 currents,Jy (measured by
theammeter
VTRA),
rather than on avoltage
and acurrent.
The creation of branch
d,
which includes both the convective and the active terms,requires
the use of asub-circuit
corresponding
to fluxJ*!.
This will include :-
a
voltage
source VSAtaking
the valueJ*! (in
thiscase,
J*, !
7.5 E - 12 mole ’cm-
2
.
s ’)
betweennodes 0 and 22
(numbers
arerandomly assigned,
except
for theground
which must bezero).
Then this source can also act as an ammeter ;-
a resistor RSA
equal
to l. The currentflowing
through
this circuit will be :In branch
d,
theflowing
current will be thealgebraic
sum of the convective term(function
ofJ&dquo;
and ofGTRA)
and the activetransport
term(equal
toVSA).
This current is therefore a
polynomial
function(with
only 2 terms)
of 3 variablesbeing
currents. It is a sourceF,
namedFS3,
such that :The
expression
of such a 3-dimensionalpolynomial
(
Xi
,
X2, X3being
thevariables)
as understoodby
SPICE is written :with GTRA =
x, :
J! =
x, andJ*! =
x!, FS3 becomes:FS3 = a3 X3 + a5 x, X2 with as = a3 = 1 all other
coefficients
being
zero.The element line
corresponding
to FS3 is written :FS3 10 13 POLY (3) VRTA VWT VSA 0.0 0.1 0.1 I controlled nodes controlling nodes coefficients
An ammeter
(VS3)
is also used to measure current FS3. Branch c, whichcorresponds
to the diffusive term, issimpler.
The 2voltage
sourcescorresponding
to theoutside
(VCE)
and inside(VST)
concentrations are located at nodes 10 and 12respectively,
inparallel
withbranch d. In the
present
example,
VCE = 2 bars and VST = 0.2. The other element between nodes 10 and 11 Iis a resistor
(RS2)
with a value1/w =
I.OE12 ohm(or
mol !
C
M-
2
_
S-
1
-
bar ’).
There also is an ammeter VS2. Note that ammeters are notalways
necessary. Theirpresence, however, allows the measurement of
elemen-tary
fluxes that may be desired in the programoutput.
They
are also ofgreat
assistance inverifying
calcula-tions.The simulation
requested
here is asteady
stateanaly-sis
(control
cardstarting
with DC with different values of the inside concentration(up
to 2 barsby
increments of 0.2bar).
Inaddition,
the use of another control card(.ALTER)
allows variations in one or several otherparameters
to beproduced
in the same simulation.E.g.
in thepresent
case, the outsidehydrostatic
pressurerespectively
takes the value 3 bars and then the value 10 bars. For each of these values the source VST varies from 0 to 2 barsby
increments of 0.2 bar.The
program’s
listing
corresponding
to this membrane is infigure
2b.THOMAS & MIKULECKY
(1978),
MINTZ et al.(1986)
and THOMAS(1988)
give
otherexamples
of different kinds oftransport
mechanismsinvolving coupled
fluxesusing
SPICE.C. Process
obeying
the Michaelis-Menten law(after
WHITE &MIKULECKY, 1982)
Enzymatic
processes(conversion
of substrate toproduct catalyzed by
anenzyme)
orphysiological
processes
(uptake
of a substanceby
excisedorgan),
frequently obey
the Michaelis-Menten law :v =
velocity
of the reaction or rate ofuptake,
S = concentration of substrateor substance in the outside
solution,
Vmax = maximum
velocity
oftransport
or rate ofuptake
km = Michaelis constant.The
preceding
relation indicates that thevelocity
of formation of theproduct
or substance(e.g.
anion)
is ahyperbolic
function of the substrate or ionconcentra-tion in the medium. Translated into SPICE
language,
thepreceding
relation is theexpression
of avoltage-dependent
current.Unfortunately,
the current versionsof SPICE do not deal
directly
withquotients.
Thus for anyexpression including
aratio,
one must writeusing
anauxiliary
circuit that is not connected to the main circuitrepresenting
thebiological
system
to beinvesti-gated.
Let us assume here that a substrate S is convertedto a
product
P. Twocapacitors
areplaced,
one at each end of the circuit. In thepresent
case, theircapacitance
represents
a volumefollowing
theequation :
C-
amout
of substance(moles) =volume
concentration of substance
(moles/liter)
(liter)
Initially,
compartment
S has a certain volume C andcompartment
P is empty. The rate ofchange
of concen-tration of materialproduced,
as measuredby
theamme-ter
VSP,
willcorrespond
to aconcentration,
since it isgiven by :
Rate of
change
of concen- amount of substance added to or substracted from thecompartment
tration in compartment = .
volume
Capacitors
are used when the volume ofcompar-tments is limited or when this restriction is involved in the
system’s regulation.
Torepresent
anearly
infinitereservoir,
the easiest would be toreplace
thecapacitor
by
anindependent voltage
source.The flow of material
(or
the reactionvelocity)
isgiven
by equation
3. It is a function of the substrateconcen-tration,
i.e. of thevoltage
at note1,
and must therefore berepresented by
avoltage-dependent
current source,hence
by
a G element. Thiscontrolling voltage
will bethat at node 10 of the
auxiliary
circuit(fig. 4b),
thusgiving :
GMM 2 3 10 11 1 1
controlled nodes
controlling
nodesproportionality
coefficient
The current
produced by
GMM islinearly dependent
on the
voltage
between nodes 10 and 11(or
10 and0)
Auxiliary
circuit(fig.
4b).
The purpose of this circuit is to calculate the
quotient
v of
equation
3. To thiseffect,
theequation
must take the form :Each term of this
equation
will be a source G. GN willrepresent
the left term(numerator
of3)
andGQD
theright
term(product
ofquotient
and denominator of3).
If both sources areplaced
inseries,
the currentgenera-ted
by
GN fromground
to node 10 mustequal
thecurrent across
GQD
since there is no accumulation element. Thevoltage
at node 10 will vary as a functionof the current
flowing through. According
toequa-tion
4,
the source GN is a linear function of the concentrationS,
and will be written :GN 0 10 0 1 0 Vmax
controlled nodes
controlling
nodes coefficient The currentflowing
from node 0 to node 10 is Vmax-fold thevoltage
between nodes I and 10(e.g.
substrateconcentration).
TheGQD
source is a function of2 variables : v =
velocity
of formation of theproduct
(voltage
between nodes 10 andI I )
and S = substrate concentration(voltage
at node1
The
GQD
source will therefore be apolynomial
function written as follows :current
GQD -
0 + Km v + OS +O(
V
)
2
+ 1 vS . Hence the coefficients are0, Km, 0, 0,
1. As aresult,
the SPICE
description
of this source is written :GQD
10 11Poly (2)
10 0 1 0 0 Km 0 0 Icontrolled
controlling
polynomial
nodes nodes coefficientsThe order in which the
controlling
nodes are chosendetermines the order of the coefficients. Another form
equivalent
toGQD
may be :GQD
10 11 1POLY(2)
1 0 10 0 0 0 km 0 1Hence the simulation program for this chemical
reac-tion,
in which thedynamics
of substrate formation(or
substance
uptake
by
the excisedorgan)
areinvestigated
as a function of time and valueS,
Km andVmax,
will be written :** PROGRAM : simulation of
transport
according
tothe Michaelis-Menten
equation
* MAIN CIRCUIT
CS 0 1 value of
capacitance
IC : initialvoltage
VSP 1 2 0.0GMM 2 3 10 11 1 1.0
CP 2 0 value of
capacitance
IC: initialvoltage
* AUXILIARY CIRCUIT GN 0 10 0 1 0 Vmax
GQD
10 11POLY(2)
1 0 10 0 0.0 Km 0.0 0.0 1.0VQD
11 1 0 0.0 * SIMULATION.TRAN TSTEP TSTOP UIC
.PLOT TRAN
V(I) V(2) V(3) V(10)
.PLOT TRANI(VSP) I(VQD)
.END
It is also
possible
to obtain the same resultsby directly
incorporating
the sourcecoding
for a Michaelis-Mententype
relationship.
Beside,
the evolution with time of thedifferent substances from the
following enzymatic
reac-tion can also be simulated :E + S <--> ES <--> E + P .
with E =
Enzyme ;
S= Substrate ;
P =Product ;
ES= Enzyme
substratecomplex.
Other more
sophisticated examples
forsimulating
cellularpharmacokinetics
(WHITE
&Mocut,ECKY,
1982 ;
THAKKER etal.,
1982)
or reaction diffusionsystems
(W
YATT
etal., 1980;
MAY &MiKUt.ectcY,
1982)
can befound,
illustrating
thecapabilities
ofSPICE in this domain.
IV. STRENGTHS AND WEAKNESSES OF SPICE
A.
Strengths
1) Equations, particularly
sets of differentialequa-tions,
are easier to formulate than to solve.Many
physiologists
can write and understand certain kinds ofequations,
but often lack thespecific knowledge
of mathematicsespecially
in numericalanalysis required
tosolve them. As mentioned
previously,
SPICE is veryconvenient to use in this
respect,
because itusually
relievesphysiologists
from such tedious work. It may beassumed that a
physiologist
would ratherspend
his timetrying
to better understand hissystem
thanlearning
techniques
ofsolving
differentialequations.
Remark : The
integration
method usedby
SPICE is thetrapezoidal
method. As analternative,
gear’s
method is available.
Concerning
thispoint
the reader may refer toNagel
( 1975).
2)
On the otherhand,
the process ofexpressing
aphysiological
or biochemicalproblem
in thelanguage
of SPICEcompels
one toexplore
the various aspects of thisproblem,
andplace emphasis
upon the structurerepresenting
thissystem.
This is an essentialpoint,
forelementary
equations
arefrequently
mistaken for struc-ture. Forinstance,
mostglobal
models of water and mineraluptake by
the roots are based onequations
I and 2. Someauthors, however,
believe that &dquo; one should use a3-compartment
model rather than theseequa-tions &dquo;. This is not the relevant
point.
Thequantitative
approach
to thefunctioning
of asystem
is obtainedby
applying
basicequations
to aparticular
structure. So the purpose is to define the structure and basicequa-tions rather than to
replace
a structureby
a law. Hence the aboveequations
which are valid at the membrane levelproduce
different effectsdepending
on whether thestructure consists of one or several
compartments.
B. Weaknesses
SPICE has a number of limitations which can be
disappointing
or even deterrent. Yet these weaknesses tend to be remedied in the new versions and should be considered astemporary.
1.
Input
It was shown that the
input
cannot dealdirectly
withquotients
orpolynomials
withnegative
exponents.Like-wise,
exponential, logarithmic
andhyperbolic
functionscannot be written
directly. They require
theconstruc-tion of an
auxiliary
circuit,
for the standard versions of SPICE. Other circuit simulation programs(ASTEC
forinstance)
permit
a more directdescription
of non-linearrelations. That
is,
one enters theequations
for the constitutive relationsdirectly
in a FORTRAN-likeexpression.
2. Simulations
Many
additionaltypes
ofanalysis
can be made onelectrical networks and would also prove useful in
physiological
simulation(e.g. :
parameter
optimization,
statisticalanalysis
forevaluating
circuitproperties
for a certain range ofparameter
values,
etc...).
It isonly
because theseanalyses
werealready
available in the programlibrary
at theUniversity
ofBerkeley
that the authors of SPICE did nottry
to insert them into theirprogram !
So if &dquo;network
thermodynamics
iscomple-tely independent
of electronics and electrical networktheory
&dquo; (M
IKUL
ecKY,
1983),
SPICE is still verydepen-dent on electrical
circuits,
due to itsorigin.
V. CONCLUSION
We have
presented
some verysimple examples
of the use of SPICE forsimulating problems
of transfer ofmatter and energy in
biological
systems.
Thesimplicity
of theseexamples
does notfully exploit
the real advan-tages ofSPICE,
which areonly
realised in much morecomplex problems.
Unliketechniques using higher
mathematicsrequiring
anexplicit
formulation in termsof
equations,
SPICE rests on schematicdepictions
of the system. Thepresent
use of SPICE in such different fields as classicalphysiology,
membranebiophysics,
pharmacokinetics, electrochemistry
of visionprovide
agood
illustration of its usefulness forbiologists.
Theadvantage
of thisapproach
to simulation is that the modeler need knownothing
of numericalanalysis
andcan nonetheless treat
complex,
non-linearsystems.
In thisregard
SPICE is notnecessarily
the easiest simula-tion program to use(ASTEC
is moreuser-friendly)
but it is verypowerful,
isuniversally
available,
has beenadapted
fornearly
all kinds ofmachines, and is very
cheap
or free.Reçu le 18 décembre 1987.
Acceplé le 8 mar.s 1988.
ACKNOWLEDGMENTS
We thank Evelync Ron for the translation and M. Gingold for
rechecking the programs.
REFERENCES
Atlan H., 1976. Les modcles dynamiques en reseaux et les sources
d’information en biologic. In : « Struclures et Iues qi(I/l’//lddes
systè-Ill
es ». Maloine, Paris, 95 131. 1.
Chauvet G., 1987. Ti-ail! f/c phrsiologie théorique. Vol. 1, Masson. 76-83.
Dainty J., 1960. Electrical analogues in Biology. In: &dquo;Model.s and
analogues in BioloRr &dquo;. Symposia of the Society for Experimental
biology, nx XIV, Cambridge Univ. press., 140-151. l .
Fiscus E. L., 1977. Determination of hydraulic and osmotic properties
of soybean root systems. Plant Physinl., 59, 1013-1020.
Kedem 0., Katchalsky A., 1958. Thermodynamic analysis or
permea-bility of biological membranes to non electrolytes. enr. hBioc BioI/ill’.
Acta, vol. 27, 229-246.
Kedem 0., Katchalsky A., 1963a. Permeability of composite
membra-nes. Part 1. Electric current, volume flow and flow solute through
membranes. Trans. Faraday Soc., 59. 1918-1930.
Kedem 0., Katchalsky A., 19631z Permeability of composite
membra-nes. Part 2. Parallel elements. Trans. Faraday Soc., 59, 1931-1940. Kedem 0., Katchalsky A., 1963c. Permeability of composite
membra-nes. Part 3. Series array of elements. Trans. Faraday Soc., 59, 1941-1953.
May J. M., Mikulecky D. C., 1982. The sample model of adipocyte hexose transport kinetic features, effect of insulin and network
thermodynamic computer simulations. J. Biol. Chem., 257, 11601-I 1608.
Mikulecky D. C., 1983. Network thermodynamics : a candidat for a common language for theoretical and experimental biology. Am. J.
Phrsiol., 245 (Regulatory Integrative Comp. Physiol. 14) : RI-R9. Mintz E., Thomas S. R., Mikulecky D. C., 1986. Exploration of apical sodium transport mechanisms in a epithelial model by network
1. Comparison of three different apical sodium permeability expres-sions. J. Theor. Biol., 123, 1-19. II. An apical sodium channel and amidonite blocking. J. Theor. Biol., 123, 21-34.
Moltz F. J., Kerns D. V. Jr, Peterson C. M., Dane I. M., 1979. A circuit analog model for studying quantitative water relations of plant
tissues. Plant Physiol&dquo; 64, 712-716.
Nagel L., 1975. SPICE 2. A computer program to simulate semieon-ductor circuits. Memorandum ERL-M 520. Electronics research labo-ratory, College of Engineering, University of California, Berkeley.
Oster G. F., Perelson A., Katchalsky A., 1973. Network
thermodyna-mics. Q. Rev. Bioi&dquo; 6 (1), 1-134.
Peusner L., 1970. &dquo;The principles of Network Thermodynamics and
biophysical applications. &dquo;
Ph. D. Thesis, Harvard Univ. Cambridge
MA (USA).
Sanders F. E., Tinker P. B., Nye P. H., 1971. Uptake of solutes by
multiple root systems from soil. I. An electrical analog of diffusion to root systems. Plant soil., 34, 453-466.
Thakker K. M., Wood J. M., Mikulecky D. C., 1982. Dynamic
simulation of pharmacokinetic systems using the electrical circuit
analysis program SPICE 2. Comp. Prog. Biomed., 15, 61-72.
Thiery J. M., 1983. Syst!mes thermodynamiques. Applications en
biologie de la thermodynamique en reseaux. A.M.T.B. Ecole
d’Au-tomne de Biologie Théoriqlle, 3’ session, 19 septembre-7 octobre,
Abbaye de Solignac (Haute-Vienne).
Thomas S. R., Mikulecky D. C., 1978. A network thermodynamic model of salt and water flow across the kidney proximal tube. Am. J.
Physiol., 235 (Renal fluid electrolyte physiol 1) : F630-F648. Thomas S. R., 1988. Modele longitudinal du tube proximal du rein par la thermodynamique en reseaux. If&dquo; Seminaire de 1’Ecole de Biologie Théoriqlle de Solignac, 1-3 septembre 1987. A paraitre fin 1988. White J. C., Mikulecky D. C., 1982. Application of network
thermo-dynamics to the computer modeling of the pharmacology of
antican-cer agents : a network model for methotrexate action as a compre-hensive example. Pharmacol. Ther., 15, 251-291.
Wyatt J. L. Jr, Mikulecky D. C., Desimone J. A., 1980. Network
modeling of reaction-diffusion systems and their numerical solution