// MODEL NUMBER: 0067
// MODEL NAME: Compliant_Element
// SHORT DESCRIPTION: The model simulates current flow through a capacitor
// C and is the electrical analog of fluid flowing into
// or out of a compliant vessel with no outlet.
JSim v1.1
import nsrunit; unit conversion on;
math Compliant_Element{ realDomain t sec; t.min = 0; t.max = 60; t.delta = 0.1;
// PARAMETERS
real
C = 1/(2*PI) farad, // Capacitance
f = 2 hz, // Input voltage function frequency
phase = 0 dimensionless; // Phase shift
// VARIABLES
real
V_i(t) volt, // Input voltage function
I_C(t) A; // Current through the capacitor
// ALGEBRAIC AND ODE EQUATIONS
V_i = (1volt)*sin(2*PI*t*f+phase); // Input voltage function
I_C = (V_i:t)*C; // Current through the capacitor
} // END OF MML CODE
/*
FIGURE:
Vi
o



 C





o




DETAILED DESCRIPTION:
This model is the electrical analog of fluid flowing into or
out of a compliant vessel with no outlet. The current, IC,
flowing into or out of the capacitor is given by the change
in the input voltage with respect to time, dVi/dt , multiplied by
the capacitance, C. When the voltage is not changing, the
current is zero and the capacitor is fully charged. The
fluid analogs for voltage (volts), current (coulombs/sec)
and capacitance (farads) are pressure (mmHg), flowrate (
mL/sec) and compliance (mL/mmHg). Note in the fluid analog
that change in pressure is equivalent to the change in
volume divided by the compliance, C.
SHORTCOMINGS/GENERAL COMMENTS:
 Specific inadequacies or next level steps
KEY WORDS: compliant, vessel, fluid, flow, element, no outlet, RC circuit
REFERENCES:
Nilsson JW and Riedel SA: Electric Circuits.
Upper Saddle River, New Jersey, Prentice Hall, 2001, 1018 pp.
REVISION HISTORY:
Original Author : JBB Date: 06/12/08
Revised by: Micah Nicholson Date: 4/2/2009
Revision: 1) Update format
Revised by : BEJ Date: 21/Apr/10
Revision: 1) Correct format
COPYRIGHT AND REQUEST FOR ACKNOWLEDGMENT OF USE:
Copyright (C) 19992010 University of Washington. From the National Simulation Resource,
Director J. B. Bassingthwaighte, Department of Bioengineering, University of Washington, Seattle WA 981955061.
Academic use is unrestricted. Software may be copied so long as this copyright notice is included.
This software was developed with support from NIH grant HL073598.
Please cite this grant in any publication for which this software is used and send an email
with the citation and, if possible, a PDF file of the paper to: staff@physiome.org.
*/