Information
This package contains potential, voltage, and current sensors.
-
Main Authors:
-
Christoph Clauß
<clauss@eas.iis.fhg.de>
André Schneider
<schneider@eas.iis.fhg.de>
Fraunhofer Institute for Integrated Circuits
Design Automation Department
Zeunerstraße 38
D-01069 Dresden
-
Version:
-
$Id: Modelica_Electrical_Analog_Sensors.html,v 1.9 2002/12/11 10:23:06 Hans Exp $
-
Copyright:
-
Copyright © 1998-2002, Modelica Association and Fraunhofer-Gesellschaft.
The Modelica package is free software; it can be redistributed and/or modified
under the terms of the Modelica license, see the license conditions
and the accompanying disclaimer in the documentation of package
Modelica in file "Modelica/package.mo".
Sensor to measure the potential
Modelica definition
model PotentialSensor "Sensor to measure the potential"
extends Interfaces.AbsoluteSensor;
SI.ElectricPotential phi "Absolute voltage potential";
equation
p.i = 0;
phi = p.v;
phi = outPort.signal[1];
end PotentialSensor;
Sensor to measure the voltage between two pins
Modelica definition
model VoltageSensor "Sensor to measure the voltage between two pins"
extends Interfaces.RelativeSensor;
SI.Voltage v "Voltage between pin p and n (= p.v - n.v)";
equation
p.i = 0;
n.i = 0;
v = p.v - n.v;
v = outPort.signal[1];
end VoltageSensor;
Sensor to measure the current in a branch
Modelica definition
model CurrentSensor "Sensor to measure the current in a branch"
extends Interfaces.RelativeSensor;
SI.Current i "current in the branch from p to n";
equation
p.v = n.v;
p.i = i;
n.i = -i;
i = outPort.signal[1];
end CurrentSensor;
HTML-documentation generated by Dymola Wed Dec 11 11:13:41 2002
.