// MODEL NUMBER: 0069
// MODEL NAME: Resistive_Element
// SHORT DESCRIPTION:
// The model simulates current flow through a conductor
// of resistance R. Current is induced by the
// energy potential V_i applied across the conductor.
import nsrunit; unit conversion on;
math Resistive_Element{ realDomain t sec; t.min = 0; t.max = 60; t.delta = 0.1;
// PARAMETERS
real
R = 1e3 ohm; // Resistance
// VARIABLES
extern real V_i(t) volt; // Input voltage function
real
V_o(t) volt, // Voltage across the resistance
I_R(t) coulomb/sec; // Current through the resistance
// ALGEBRAIC AND ODE EQUATIONS
I_R = V_i/R; // Ohm's Law
V_o = I_R*R; //
} // END OF MML CODE
/*
FIGURE:
Vi
o


>
> R
>




o




DETAILED DESCRIPTION:
This model is the electrical analog of fluid flowing down a
single resistive vessel. The input voltage, Vi(t), is used
to calculate the current, IR(t), through the conductor with
a fixed resistance, R. Ohm's Law is used to calculate the
current and then recover the voltage in the form of the
variable Vo(t). The fluid analogs for voltage (volts),
current (coulomb/sec) and resistance (ohms) are pressure
(mmHg), flowrate (mL/sec) and resistance (mmHg*sec/mL)
respectively.
GENERAL RESULTS:
SHORTCOMINGS:
KEY WORDS: resistive, element, vessel, flow, pressure, Ohm's Law
REFERENCES:
Ohm GS. Die galvanische Kette mathematisch bearbeitet, 1827
REVISION HISTORY:
Updated 4/2/2009 by Micah Nicholson
JSim SOFTWARE COPYRIGHT AND REQUEST FOR ACKNOWLEDGMENT OF USE:
JSim software was developed with support from NIH grants HL088516,
and HL073598. Please cite these grants in any publication for which
this software is used and send one reprint of published abstracts or
articles to the address given below. Academic use is unrestricted.
Software may be copied so long as this copyright notice is included.
Copyright (C) 19992008 University of Washington.
Contact Information:
The National Simulation Resource,
Director J. B. Bassingthwaighte,
Department of Bioengineering,
University of Washington, Seattle, WA
981955061
*/