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.2 2000/06/20 22:49:58 Dag Exp $
-
Copyright:
-
Copyright (C) 1998-1999, 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 Modelica.Electrical.Analog.Interfaces.AbsoluteSensor;
SIunits.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 Modelica.Electrical.Analog.Interfaces.RelativeSensor;
SIunits.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 Modelica.Electrical.Analog.Interfaces.RelativeSensor;
SIunits.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 Tue Jun 20 21:51:23 2000
.